You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2011/03/18 23:55:29 UTC

[jira] Commented: (PIVOT-718) TreeViewSelectionListener not invoked

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

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

Hi Laurent, thank you very much for the test case, but I'm sorry I have to ask you another small thing:
can you re-attach both files granting the usage in ASF work (or by Apache constraints we aren't able to use them) ?

I have already started to look at it, and seems a simple thing to fix :-) .

I wait your re-attach of files (and probably should be better to delete currently attached files, to avoid confusion).

Thank you again,
Sandro


> 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
>             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