|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public TreeModelController
This modifiable interface provides a generic tree model acting as a base class for all concrete tree models
| Method Summary | |
|---|---|
Object |
create(JSON context)
creates a new model object. |
Boolean |
confirmCreate(JSON context)
Confirms whether creating the node is possible. |
void |
insert(Object node,
Object parentNode,
Object nextNode)
Inserts a node into the tree model at the specified location; the node must either be created with the create method of the concrete tree model before, or must exist in the tree model; in this case the existing node is moved to the specified location |
Boolean |
confirmInsert(Object node,
Object parentNode,
Object nextNode)
Confirms whether inserting the node is possible. |
void |
remove(Object node)
Deletes a node from the model. |
Boolean |
confirmRemove(Object node)
Confirms whether removing the node is possible. |
| Methods inherited from interface com.ibm.mashups.enabler.TreeModel |
|---|
getRoot, hasChildren, getChildren, getParent |
| Methods inherited from interface com.ibm.mashups.enabler.model.Model |
|---|
setStrategy, getStrategies, getStrategy, addStrategy, removeStrategy |
| Methods inherited from interface com.ibm.mashups.enabler.Locator |
|---|
find |
| Method Detail |
|---|
Object create(JSON context)
insert method defined on a subinterface of this interface. The node will not appear in the model unless it is inserted.
context -
array of predefined information used for the creation of the node. May be null. Accepted names are defined in the appropriate subinterfaces
Boolean confirmCreate(JSON context)
context -
array of predefined information used for the creation of the node. May be null. Accepted names are defined in the appropriate subinterfaces
void insert(Object node,
Object parentNode,
Object nextNode)
node -
node to insert or move. Must not be null.parentNode -
node object or node uri (without any scope) of the parent node. The given node is inserted/moved underneath the parent node; must not be null.nextNode -
node object or node uri (without any scope) of the successor node before which the node is to be inserted; if null is specified, the node is appended at the end of the existing nodes
Boolean confirmInsert(Object node,
Object parentNode,
Object nextNode)
node -
node to insert or move. Must not be null.parentNode -
node object or node uri (without any scope) of the parent node. The given node is inserted/moved underneath the parent node; must not be null.nextNode -
node object or node uri (without any scope) of the successor node before which the node is to be inserted; if null is specified, the node is appended at the end of the existing nodes
void remove(Object node)
node -
node object or node uri (without any scope) to delete from the model. Must not be null.Boolean confirmRemove(Object node)
node -
node object or node uri (without any scope). Must not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||