Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary

Fields inherited from interface com.tonbeller.wcf.tree.TreeModel
`EMPTY_MODEL`

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

Methods inherited from interface com.tonbeller.wcf.tree.TreeModel
`addTreeModelChangeListener, fireModelChanged, getChildren, getParent, getRoots, hasChildren, removeTreeModelChangeListener`

Method Detail

### 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD