|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.extremecomponents.tree.model.TreeModelUtils
org.extremecomponents.tree.model.TreeModelUtils.java -
Constructor Summary | |
TreeModelUtils()
|
Method Summary | |
static void |
addChildren(TreeModel model,
java.util.List displayList,
TreeNode node)
Recursive call used by the filter function to add back the filtered out children but keeps them collapsed unless they have been openned manually be the open parameter. |
static void |
addClosedChildren(TreeModel model,
java.util.List displayList)
Used by the filter function to add back the filtered out children. |
static void |
findBeanParents(TreeModel model,
java.util.List parents,
java.lang.Object bean)
Recursive call used by the filter function to add back the filtered out parents. |
static java.util.List |
findParents(TreeModel model,
java.util.List searchList)
Used by the filter function to add back the filtered out parents. |
static java.lang.Object |
getBeanId(TreeModel model,
java.lang.Object bean)
|
static java.lang.String |
getNodeKey(TreeModel model,
java.lang.Object id)
|
static boolean |
isOpen(TreeModel model,
TreeNode node,
boolean filterControlled)
Find out if the node and all parents are open. |
static void |
loadChildren(TreeModel model,
java.util.List displayList,
java.util.List searchList,
TreeNode node,
int currentDepth)
|
static java.util.List |
loadTreeStructure(TreeModel model,
java.util.List inputList)
Recursively loads the tree structure into the treeList attribute and sets the treeList as the collection to use. |
static boolean |
nodeIsBeanParent(TreeModel model,
TreeNode node,
java.lang.Object bean)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeModelUtils()
Method Detail |
public static java.util.List loadTreeStructure(TreeModel model, java.util.List inputList) throws java.lang.Exception
model
- inputList
-
java.lang.Exception
public static void loadChildren(TreeModel model, java.util.List displayList, java.util.List searchList, TreeNode node, int currentDepth) throws java.lang.Exception
model
- displayList
- searchList
- node
- currentDepth
-
java.lang.Exception
public static java.util.List findParents(TreeModel model, java.util.List searchList) throws java.lang.Exception
model
- searchList
-
java.lang.Exception
public static void findBeanParents(TreeModel model, java.util.List parents, java.lang.Object bean) throws java.lang.Exception
model
- parents
- bean
-
java.lang.Exception
public static void addClosedChildren(TreeModel model, java.util.List displayList) throws java.lang.Exception
model
- displayList
-
java.lang.Exception
public static void addChildren(TreeModel model, java.util.List displayList, TreeNode node) throws java.lang.Exception
model
- displayList
- node
-
java.lang.Exception
public static boolean nodeIsBeanParent(TreeModel model, TreeNode node, java.lang.Object bean) throws java.lang.Exception
model
- node
- bean
-
java.lang.Exception
public static java.lang.Object getBeanId(TreeModel model, java.lang.Object bean) throws java.lang.Exception
model
- bean
-
java.lang.Exception
public static boolean isOpen(TreeModel model, TreeNode node, boolean filterControlled)
model
- node
- filterControlled
-
public static java.lang.String getNodeKey(TreeModel model, java.lang.Object id)
model
- id
- value of the node.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |