| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeModelController<T,M extends Modifiable>
This interface provides a controller for tree models which allows updating a model. The insert(Object, Object, Object) method inserts the specified node according to these rules:
null
, the specified
node becomes the new root node of the model; the old root node will be the
sole child of the new root node. All nodes of the model controller are
preserved.null
and "aParent" is not null
,
the node is appended as the last child of "aParent"null
, the node is inserted as
a child of the given parent before the specified sibling.
Method Summary | |
---|---|
boolean | confirmDelete(T aNode)
Indicates if the specified node may be deleted. |
boolean | confirmInsert(T aNode,
T aParent,
T aNext)
Indicates if the specified node may be inserted into the location specified by a parent node and a next node. |
void | delete(T aNode)
Deletes a node from the model. |
void | insert(T aNode,
T aParent,
T aNext)
Inserts the node at the specified location in the tree model controller. |
Methods inherited from interface com.ibm.portal.TreeModel |
---|
getChildren, getParent, getRoot, hasChildren |
Methods inherited from interface com.ibm.portal.ModelController |
---|
confirmCreate, create, getModifiableNode, resolve |
Method Detail |
---|
void insert(T aNode, T aParent, T aNext) throws ObjectNotFoundException, CannotInsertNodeException
null
;
if specified it must be part of the topology of the controllernull
. "aNext" must be a child of "aParent".
void delete(T aNode) throws ObjectNotFoundException, CannotDeleteNodeException
boolean confirmInsert(T aNode, T aParent, T aNext) throws ObjectNotFoundException
null
.null
, "aNext" must be a
child of "aParent".
true
if the node may be inserted,
false
otherwise
boolean confirmDelete(T aNode) throws ObjectNotFoundException
true
if the node may be deleted,
false
otherwise
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |