[ 
https://issues.apache.org/jira/browse/PIVOT-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028488#comment-13028488
 ] 

Sandro Martini commented on PIVOT-718:
--------------------------------------

Raffaele, thanks for the info, I was thinking at something like this, ans I'll 
try to look even at it ... but on Trees I have to see what Greg and Todd say 
(they wrote the original version of it, and I know little this class, I fear to 
make some damage with a fix). 
So at the moment I have to freeze this issue until some info will come ... but 
at the moment I'll keep it for the 2.0.1, and see later if move to 2.1 (only if 
impossible to fix in next weeks).


> TreeViewSelectionListener not invoked
> -------------------------------------
>
>                 Key: PIVOT-718
>                 URL: https://issues.apache.org/jira/browse/PIVOT-718
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0
>         Environment: jkd1.6,linux
>            Reporter: laurent Gebus
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: TreeSelect.bxml, TreeSelect.java
>
>
> 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. 
> Looked at the code :
> in TreeView#itemsRemoved(), clearAndDecrementPaths() is invoked and returns 
> 0. But Listeners are only invoked when > 0 is returned. 
> see attached example comparing a TreeView to a ListView

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to