On Wed, Jul 23, 2008 at 9:27 AM, Szántai Péter <[EMAIL PROTECTED]> wrote:

>
> 2008/7/23 Derrell Lipman <[EMAIL PROTECTED]>:
>
> On Wed, Jul 23, 2008 at 8:05 AM, Szántai Péter <[EMAIL PROTECTED]>
>> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to