|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.essbase.eas.ui.tree.Utilities
public class Utilities
static tree utility methods.
Constructor Summary | |
---|---|
Utilities() |
Method Summary | |
---|---|
static void |
expandBranch(javax.swing.JTree tree, javax.swing.tree.TreeNode node) expands an entire branch of a tree. |
static void |
expandEntireTree(javax.swing.JTree tree) expands an entire tree hierarchy. |
static void |
expandToNode(javax.swing.JTree tree, javax.swing.tree.TreeNode node) expands tree to a particular node |
static java.awt.Color |
getBorderColor() |
static java.awt.Color |
getDefaultBackground() returns the default background color for a tree control. |
static java.awt.Color |
getDefaultForeground() returns the default foreground color for a tree control. |
static java.awt.Color |
getDefaultSelectedBackground() returns the default selected background color for a tree control. |
static java.awt.Color |
getDefaultSelectedForeground() returns the default selected foreground color for a tree control. |
static java.lang.Object |
getNodeForUserObject(javax.swing.JTree tree, java.lang.Object userObj) Finds the node in a tree that matches the provided user object. |
static javax.swing.tree.TreeNode[] |
getPath(javax.swing.tree.TreeNode node) |
static javax.swing.tree.TreeNode[] |
getPathToRoot(javax.swing.tree.TreeNode aNode, int depth) |
static int[] |
organizeChildNodes(javax.swing.tree.TreeNode parentNode, javax.swing.tree.TreeNode[] childNodes) sorts an array of child nodes and an associated array of indices in a way that the array of indices and the child nodes can be passed to a tree model's nodesWereInserted(), nodesWereDeleted(), nodesChanged() methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static java.awt.Color getBorderColor()
public static java.awt.Color getDefaultBackground()
public static java.awt.Color getDefaultForeground()
public static java.awt.Color getDefaultSelectedBackground()
public static java.awt.Color getDefaultSelectedForeground()
public static void expandBranch(javax.swing.JTree tree, javax.swing.tree.TreeNode node)
public static javax.swing.tree.TreeNode[] getPath(javax.swing.tree.TreeNode node)
public static javax.swing.tree.TreeNode[] getPathToRoot(javax.swing.tree.TreeNode aNode, int depth)
public static void expandEntireTree(javax.swing.JTree tree)
public static void expandToNode(javax.swing.JTree tree, javax.swing.tree.TreeNode node)
public static java.lang.Object getNodeForUserObject(javax.swing.JTree tree, java.lang.Object userObj)
public static int[] organizeChildNodes(javax.swing.tree.TreeNode parentNode, javax.swing.tree.TreeNode[] childNodes)
parentNode
- the TreeNode
object that is the parent of the other nodes.childNodes
- array of TreeNode
objects that need to be organized.comparator
- a Comparator object that can be passes to Arrays.sort(Object[]).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |