|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--ilog.server.jsds.IlsDataSource
|
+--ilog.server.jsds.tree.IlsTreeDataSource
Tree data source. How to define a dynamic view specification in order to open a tree data source :
view DomainsTreeView (any containerIndex=0, string containerClass="tree.DomainsTreeFrame"):
represent IlsDSRepresentation repres:
any containerIndex = view.containerIndex;
string containerClass = view.containerClass;
string title = "A network tree view";
subscribe Node:
represent IlsRpTreeItem node:
# Predefined attribute "parent" for the item parent
mandatory ref<IlsRpTreeItem> parent = domain->domain;
# Property
string label = name;
subscribe Domain:
represent IlsRpTreeItem domain:
# Predefined attribute "parent" for the item parent
mandatory ref<IlsRpTreeItem> parent = network->root;
# Specifie that the item can have childrens
boolean allowChildren = true;
# Property
href label = {DomainTableView, name};
propagate nodes when (rpStatus == 2);
subscribe origin Network:
# The origin data source object representation
represent IlsRpTree tree:
# The predefined "root" attribute for the tree root
ref<IlsRpRootItem> root = view.origin->root;
# Property
string label = identifier;
# Predefined attribute to expand and collapse.
boolean expandOnDemand = true;
boolean collapseOnDemand = false;
# The root object representation
represent IlsRpRootItem root:
# The predefined attribute "tree" for the root owner
mandatory ref<IlsRpTree> tree = view.origin->tree;
# Specifie that the root can have childrens
boolean allowChildren = true;
# Property
href label = {MultipleView, identifier};
propagate domains;
| Fields inherited from class ilog.server.jsds.IlsDataSource |
_properties, _propertyChangeListeners |
| Constructor Summary | |
IlsTreeDataSource()
Instantiate a new IlsTableDataSource |
|
| Method Summary | |
void |
addTreeDSListener(TreeDSListener l)
Adds a listener for all tree events |
void |
dataSourceConnected(IlsDSMainObject dso)
Implements DSConnectionListener.dataSourceConnected(ilog.server.jsds.DSConnectionEvent). |
void |
dataSourceDisconnected()
Implements DSConnectionListener.dataSourceDisconnected(ilog.server.jsds.DSConnectionEvent). |
java.lang.Object |
dsAddItem(java.lang.Object parent,
java.util.Map properties)
Creates a new item in the tree |
void |
dsCollapseItem(java.lang.Object item)
Collapses an item |
void |
dsExpandItem(java.lang.Object item)
Expands an item Its children have to be loaded |
void |
dsMoveItem(java.lang.Object item,
java.lang.Object newParent)
Moves an existing item to a new position in the tree. |
void |
dsRemoveItem(java.lang.Object item)
Removes an item from the tree |
void |
dsUpdateItem(java.lang.Object item,
java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of an item |
IlsDSMainObject |
getDSMainObject()
|
boolean |
isItemEditable(java.lang.Object item)
Returns false if the item is a read only. |
boolean |
isItemPropertyEditable(java.lang.Object item,
java.lang.String propertyName)
|
boolean |
isItemPropertyHRef(java.lang.Object item,
java.lang.String propertyName)
|
void |
removeTreeDSListener(TreeDSListener l)
Removes a listener for all tree events |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.ds.IlDataSource |
addBatchListener, addDataSourceListener, getDSProperties, getDSProperty, removeBatchListener, removeDataSourceListener |
| Methods inherited from interface ilog.ds.IlDataSourceEditor |
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable |
| Constructor Detail |
public IlsTreeDataSource()
IlsTableDataSource| Method Detail |
public void addTreeDSListener(TreeDSListener l)
addTreeDSListener in interface IlTreeDataSourcel - the listenerpublic void removeTreeDSListener(TreeDSListener l)
removeTreeDSListener in interface IlTreeDataSourcel - the listenerpublic void dataSourceConnected(IlsDSMainObject dso)
DSConnectionListener.dataSourceConnected(ilog.server.jsds.DSConnectionEvent).dataSourceConnected in class IlsDataSourceilog.server.jsds.IlsDataSourceDSConnectionListenerpublic void dataSourceDisconnected()
DSConnectionListener.dataSourceDisconnected(ilog.server.jsds.DSConnectionEvent).dataSourceDisconnected in class IlsDataSourceilog.server.jsds.IlsDataSourceDSConnectionListener
public java.lang.Object dsAddItem(java.lang.Object parent,
java.util.Map properties)
dsAddItem in interface IlTreeDataSourceEditorparent - item. The owner of the new item. It can be null
for the root item.properties - properties of the node to createnull may be returned if the item takes a long time
to be created.public void dsRemoveItem(java.lang.Object item)
dsRemoveItem in interface IlTreeDataSourceEditoritem - item to be removed
public void dsMoveItem(java.lang.Object item,
java.lang.Object newParent)
dsMoveItem in interface IlTreeDataSourceEditoritem - the item to movenewParent - the new parent item. It can not be null
public void dsUpdateItem(java.lang.Object item,
java.lang.String propertyName,
java.lang.Object propertyValue)
dsUpdateItem in interface IlTreeDataSourceEditoritem - the item to updatepropertyName - name of the property to be updatedpropertyValue - new value of the propertypublic void dsCollapseItem(java.lang.Object item)
dsCollapseItem in interface IlTreeDataSourceilog.ds.IlTreeDataSourceitem - The item whose children can be unloadedpublic void dsExpandItem(java.lang.Object item)
dsExpandItem in interface IlTreeDataSourceitem - item which children have to be loadedpublic IlsDSMainObject getDSMainObject()
getDSMainObject in class IlsDataSourceilog.server.jsds.IlsDataSourcepublic boolean isItemEditable(java.lang.Object item)
isItemEditable in interface IlTreeDataSourceEditorobj - -
The object to test.
public boolean isItemPropertyEditable(java.lang.Object item,
java.lang.String propertyName)
true if the item property is editable.
public boolean isItemPropertyHRef(java.lang.Object item,
java.lang.String propertyName)
true if the item is a hyper reference.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||