com.tonbeller.wcf.tree
Interface MutableTreeModel
- All Superinterfaces:
- TreeModel
- All Known Implementing Classes:
- MutableTreeModelDecorator
- public interface MutableTreeModel
- extends TreeModel
a TreeModel that allows to change the parent/child relationship.
- Author:
- av
Method Summary |
void |
change(java.lang.Object parent,
java.lang.Object[] children)
changes the parent / child relationship so that future calls to getChildren(parent) will return children |
change
public void change(java.lang.Object parent,
java.lang.Object[] children)
- changes the parent / child relationship so that future calls to getChildren(parent) will return children
- Parameters:
parent
- the parent node or null to change the root node(s)children
- the new children of parent. If children is an empty array, future calls to hasChildren(parent)
will return true, and getChildren(parent) will return the empty array. If children is null, future calls
to hasChildren(parent) will return false.