|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Tree data source editor interface Provides methods to request a tree data
source to update its back-end. This class is a companion to
IlTreeDataSource
. The execution of all the methods
prefixed with ds
may be asynchronous and, therefore, may not
be immediately reflected in the local model. Each method has a version that
takes an AsyncInvocationListener
. Use this to track the
progress of the asynchronous method call.
IlTreeDataSource
Method Summary | |
abstract Object |
dsAddItem(Object parent,
Map properties)
Creates a new item in the tree. |
abstract void |
dsMoveItem(Object item,
Object newParent)
Moves an existing item to a new position in the tree. |
abstract void |
dsRemoveItem(Object item)
Removes an item from the tree. |
abstract void |
dsUpdateItem(Object item,
String propertyName,
Object propertyValue)
Updates a property of a tree item. |
abstract boolean |
isItemEditable(Object obj)
Checks whether the item is editable or not. |
Methods inherited from interface ilog.ds.IlDataSourceEditor |
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable |
Method Detail |
public boolean isItemEditable(Object obj)
obj
- The item to test.false
if the item is not editable.public Object dsAddItem(Object parent, Map properties)
parent
- item The owner of the new item. Cannot be null
.properties
- The properties of the node to createnull
if the item takes a long
time to be created.public void dsRemoveItem(Object item)
item
- The item to be removedpublic void dsMoveItem(Object item, Object newParent)
item
- The item to movenewParent
- The new parent item. Cannot be null
.public void dsUpdateItem(Object item, String propertyName, Object propertyValue)
item
- The item to updatepropertyName
- The name of the property to be updatedpropertyValue
- The new value of the property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |