TreeVirtual, open-close button eventhandling

View: New views
5 Messages — Rating Filter:   Alert me  

TreeVirtual, open-close button eventhandling

by Szántai Péter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

 I just want to figure out how the eventhandling works with the open-close buttons at Branch cells and how it is registered to the images(cross-minus).
Hope someone can help me.


Thanks for your help,

Peter

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: TreeVirtual, open-close button eventhandling

by Derrell Lipman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 23, 2008 at 8:05 AM, Szántai Péter <szantaikis@...> wrote:
I just want to figure out how the eventhandling works with the open-close buttons at Branch cells and how it is registered to the images(cross-minus).

You haven't provided a specific enough question for me to provide any type of detailed answer.  It sounds, though, like you'll find what you're looking for in the source file qooxdoo/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataCellRenderer.js

Cheers,

Derrell
 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: TreeVirtual, open-close button eventhandling

by Szántai Péter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



2008/7/23 Derrell Lipman <derrell.lipman@...>:
On Wed, Jul 23, 2008 at 8:05 AM, Szántai Péter <szantaikis@...> wrote:
I just want to figure out how the eventhandling works with the open-close buttons at Branch cells and how it is registered to the images(cross-minus).

You haven't provided a specific enough question for me to provide any type of detailed answer.  It sounds, though, like you'll find what you're looking for in the source file qooxdoo/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataCellRenderer.js

Cheers,

Derrell

I know about Stdcr class and yes i want to ask about it. I saw that the cross-minus symbols are added in _getIndentSymbol( ) function still do not know how the eventhandler attached to these symbols( .gif ).
For Example: Write a CustomCellRenderer which only put an image into the cell. And want to execute a function when the user clicks on this image.

Thanks, Peter

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: TreeVirtual, open-close button eventhandling

by Derrell Lipman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 23, 2008 at 9:27 AM, Szántai Péter <szantaikis@...> wrote:

2008/7/23 Derrell Lipman <derrell.lipman@...>:

On Wed, Jul 23, 2008 at 8:05 AM, Szántai Péter <szantaikis@...> wrote:
I just want to figure out how the eventhandling works with the open-close buttons at Branch cells and how it is registered to the images(cross-minus).

You haven't provided a specific enough question for me to provide any type of detailed answer.  It sounds, though, like you'll find what you're looking for in the source file qooxdoo/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataCellRenderer.js

Cheers,

Derrell

I know about Stdcr class and yes i want to ask about it. I saw that the cross-minus symbols are added in _getIndentSymbol( ) function still do not know how the eventhandler attached to these symbols( .gif ).
For Example: Write a CustomCellRenderer which only put an image into the cell. And want to execute a function when the user clicks on this image.

Ah, ok.  Then the places to look are in treevirtual/SelectionManager.js beginning around line 139, near the comment "Was this a mouse event?".  That code decides where the event occurred (i.e. whether it was on an open/close button) and if so, it sets the state of the node in the data model by calling tableModel.setState().  You'll find the setState() implementation in treevirtual/SimpleTreeDataModel.js

Hope that helps.

Cheers,

Derrell


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: TreeVirtual, open-close button eventhandling

by Szántai Péter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



2008/7/23 Derrell Lipman <derrell.lipman@...>:
On Wed, Jul 23, 2008 at 9:27 AM, Szántai Péter <szantaikis@...> wrote:

2008/7/23 Derrell Lipman <derrell.lipman@...>:

On Wed, Jul 23, 2008 at 8:05 AM, Szántai Péter <szantaikis@...> wrote:
I just want to figure out how the eventhandling works with the open-close buttons at Branch cells and how it is registered to the images(cross-minus).

You haven't provided a specific enough question for me to provide any type of detailed answer.  It sounds, though, like you'll find what you're looking for in the source file qooxdoo/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataCellRenderer.js

Cheers,

Derrell

I know about Stdcr class and yes i want to ask about it. I saw that the cross-minus symbols are added in _getIndentSymbol( ) function still do not know how the eventhandler attached to these symbols( .gif ).
For Example: Write a CustomCellRenderer which only put an image into the cell. And want to execute a function when the user clicks on this image.

Ah, ok.  Then the places to look are in treevirtual/SelectionManager.js beginning around line 139, near the comment "Was this a mouse event?".  That code decides where the event occurred (i.e. whether it was on an open/close button) and if so, it sets the state of the node in the data model by calling tableModel.setState().  You'll find the setState() implementation in treevirtual/SimpleTreeDataModel.js

Hope that helps.

Thanks for your help. This was exactly what i needed.

Peter

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
LightInTheBox - Buy quality products at wholesale price