|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.wcf.tree.TreeModelDecorator
com.tonbeller.wcf.tree.SimpleOptimizingTreeModelDecorator
If the root of the tree consists of a single node and all the user can do with that node is expand it, then the root is replaced with its contents.
Field Summary |
Fields inherited from interface com.tonbeller.wcf.tree.TreeModel |
EMPTY_MODEL |
Constructor Summary | |
SimpleOptimizingTreeModelDecorator(NodeFilter filter,
TreeModel decoree)
creates a reduced view on a tree model that uses a HashMap for implementation |
Method Summary | |
java.lang.Object |
getParent(java.lang.Object node)
|
java.lang.Object[] |
getRoots()
returns the root members of the tree. |
Methods inherited from class com.tonbeller.wcf.tree.TreeModelDecorator |
addTreeModelChangeListener, fireModelChanged, getChildren, getDecoree, hasChildren, removeTreeModelChangeListener, setDecoree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleOptimizingTreeModelDecorator(NodeFilter filter, TreeModel decoree)
filter
- accepted nodes are considered "significant"Method Detail |
public java.lang.Object[] getRoots()
TreeModel
getRoots
in interface TreeModel
getRoots
in class TreeModelDecorator
public java.lang.Object getParent(java.lang.Object node)
getParent
in interface TreeModel
getParent
in class TreeModelDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |