pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anton dos santos <adsan...@free.fr>
Subject Re: TreeView & TreeViewSelectionListener
Date Wed, 16 Mar 2011 21:00:45 GMT
with debugger:
in TreeView#itemsRemoved(), clearAndDecrementPaths() is invoked and returns 0. Listeners are
invoked 
when > 0 is returned.
but I could not understand what clearAndDecrementPaths() is doing :(

On 16/03/2011 21:43, Greg Brown wrote:
> The listener should be invoked. Sounds like a potential bug.
>
> On Mar 16, 2011, at 4:38 PM, anton dos santos wrote:
>
>> Hi
>> I have a TreeView with a TreeViewSelectionListener, but the listener doesn't get
invoked when a item is removed from the tree.
>> I do : tree.getTreeData().remove( tree.getSelectedNode());
>> tree is refreshed : the removed node is no longer shown, no node is selected but
the listener is not invoked.
>> Am I missing something ?
>> ps: The same strategy works fine with ListView.
>>
>> Regards
>> Anton
>
>


Mime
View raw message