com.metamatrix.console.util
Class StaticTreeSortUtilities
java.lang.Object
com.metamatrix.console.util.StaticTreeSortUtilities
public class StaticTreeSortUtilities
- extends java.lang.Object
Method Summary |
static boolean |
sortChildrenAlphabetically(javax.swing.tree.MutableTreeNode node)
|
static boolean |
sortChildrenAlphabetically(javax.swing.tree.MutableTreeNode node,
boolean useUserObjectToString)
Sort the child nodes into alphabetic order by value of toString(). |
static boolean |
sortChildrenNumerically(javax.swing.tree.MutableTreeNode node)
|
static boolean |
sortChildrenNumerically(javax.swing.tree.MutableTreeNode node,
boolean useUserObjectToString)
Sort the child nodes into ascending numeric order based on numeric value of toString(). |
static void |
sortTreeAlphabetically(javax.swing.tree.TreeNode root,
boolean useUserObjectToString)
|
static void |
sortTreeNumerically(javax.swing.tree.TreeNode root,
boolean useUserObjectToString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticTreeSortUtilities
public StaticTreeSortUtilities()
sortChildrenAlphabetically
public static boolean sortChildrenAlphabetically(javax.swing.tree.MutableTreeNode node,
boolean useUserObjectToString)
- Sort the child nodes into alphabetic order by value of toString(). Returns true if
sorting changed the order.
sortChildrenAlphabetically
public static boolean sortChildrenAlphabetically(javax.swing.tree.MutableTreeNode node)
sortChildrenNumerically
public static boolean sortChildrenNumerically(javax.swing.tree.MutableTreeNode node,
boolean useUserObjectToString)
- Sort the child nodes into ascending numeric order based on numeric value of toString().
Revert to alphabetic sort if any toString() value was not numeric. Returns true if
sorting changed the order.
sortChildrenNumerically
public static boolean sortChildrenNumerically(javax.swing.tree.MutableTreeNode node)
sortTreeAlphabetically
public static void sortTreeAlphabetically(javax.swing.tree.TreeNode root,
boolean useUserObjectToString)
throws java.lang.Exception
- Throws:
java.lang.Exception
sortTreeNumerically
public static void sortTreeNumerically(javax.swing.tree.TreeNode root,
boolean useUserObjectToString)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2009. All Rights Reserved.