pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Bartlett (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-718) TreeViewSelectionListener not invoked
Date Fri, 27 May 2011 12:54:47 GMT

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

Chris Bartlett commented on PIVOT-718:
--------------------------------------

Sandro,

I am having a look at 718 & 734 now as well as other open tickets.
If I come up with anything and have time to implement fixes I will assign them to myself.

Chris

> 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
>            Priority: Minor
>             Fix For: 2.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

Mime
View raw message