pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel Grandin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-724) Problem with TreeView and Comparator
Date Tue, 05 Apr 2011 13:05:06 GMT

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

Noel Grandin commented on PIVOT-724:
------------------------------------

The problem here is as follows:

TerraTreeViewSkin#mouseDown()
calls TerraTreeViewSkin.NodeInfo#getPath()
calls TreeBranch#indexOf
calls ArrayList#indexOf
which use the comparator to do a binary search, and comes up with the wrong answer because
it considers the first 2 nodes to be the same.
 

> Problem with TreeView and Comparator
> ------------------------------------
>
>                 Key: PIVOT-724
>                 URL: https://issues.apache.org/jira/browse/PIVOT-724
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Fedora 12, NetBeans 8.9, java 1.6.0_18
>            Reporter: Stefano Sancese
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: Main.java
>
>
> If two TreeNode have the same text AND a comparator is defined for the TreeBranch they
belong, then is impossible to select (by mouse o by arrow key) one of them.

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

Mime
View raw message