You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/03/18 22:08:53 UTC
svn commit: r755735 - /incubator/pivot/trunk/wtk/src/pivot/wtk/TreeView.java
Author: tvolkert
Date: Wed Mar 18 21:08:53 2009
New Revision: 755735
URL: http://svn.apache.org/viewvc?rev=755735&view=rev
Log:
Changed tree view path comparator to be public
Modified:
incubator/pivot/trunk/wtk/src/pivot/wtk/TreeView.java
Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/TreeView.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/TreeView.java?rev=755735&r1=755734&r2=755735&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/pivot/wtk/TreeView.java (original)
+++ incubator/pivot/trunk/wtk/src/pivot/wtk/TreeView.java Wed Mar 18 21:08:53 2009
@@ -297,8 +297,7 @@
*
* @author tvolkert
*/
- private static class TreeViewPathComparator
- implements Comparator<Sequence<Integer>> {
+ public static final class PathComparator implements Comparator<Sequence<Integer>> {
public int compare(Sequence<Integer> path1, Sequence<Integer> path2) {
int path1Length = path1.getLength();
int path2Length = path2.getLength();
@@ -702,7 +701,7 @@
private static final NodeRenderer DEFAULT_NODE_RENDERER = new TreeViewNodeRenderer();
private static final Comparator<Sequence<Integer>> PATH_COMPARATOR =
- new TreeViewPathComparator();
+ new PathComparator();
/**
* Creates a new <tt>TreeView</tt> with empty tree data.