|
|||||||||
| 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.sdm.IlsSDMDataSource
SDM data source. How to define a dynamic view specification in order to open a sdm data source :
view SDMView (any containerIndex= 0, string containerClass= ""): represent IlsDSRepresentation repres: any containerIndex = view.containerIndex; string containerClass = view.containerClass; string title = "a sdm view"; subscribe origin Network: represent IlsRpSDMModel sdm: string identifier = identifier; # SDMView properties string styleSheets = "data/expandWithLayout.css"; boolean dragEnabled = false; boolean dropEnabled = false; boolean isLinkReconnectionEnabled = false; # IlvManagerView properties boolean antialiasing = true; boolean autoFitToContents = false; boolean doubleBuffering = true; string background = "white"; boolean tooltips = true; # SDMEngine properties boolean linkLayoutEnabled = true; boolean nodeLayoutEnabled = false; string interactor = "ilog.views.interactor.IlvSelectInteractor"; # nodes and links propagate nodes; propagate links; subscribe Node: # parent propagate parent; represent IlsRpSDMNode node: mandatory ref<IlsRpSDMModel> SDM = view.origin->sdm; mandatory string tag = "node"; string ID = ID; ref<IlsRpSDMNode> parent = parent->node; # additional properties string label = label; double x = x; double y = y; subscribe Link: # parent, from and to propagate parent; propagate from; propagate to; represent IlsRpSDMLink link: mandatory ref<IlsRpSDMModel> SDM = view.origin->sdm; mandatory string tag = "link"; string ID = ID; ref<IlsRpSDMNode> parent = parent->node; ref<IlsRpSDMNode> from = from->node; ref<IlsRpSDMNode> to = to->node; #boolean isLink = true;
| Fields inherited from class ilog.server.jsds.IlsDataSource |
_properties, _propertyChangeListeners |
| Constructor Summary | |
IlsSDMDataSource()
Instanciate a new IlsSDMDataSource |
|
| Method Summary | |
void |
addSDMDSListener(SDMDSListener l)
Adds a listener for all sdm events |
void |
dataSourceConnected(IlsDSMainObject dso)
Implements DSConnectionListener.dataSourceConnected(ilog.server.jsds.DSConnectionEvent). |
void |
dataSourceDisconnected()
Implements DSConnectionListener.dataSourceDisconnected(ilog.server.jsds.DSConnectionEvent). |
java.lang.Object |
dsAddLink(java.lang.String tag,
java.lang.Object parent,
java.lang.Object from,
java.lang.Object to,
java.util.Map properties)
Creates a new link in the sdm |
java.lang.Object |
dsAddNode(java.lang.String tag,
java.lang.Object parent,
java.util.Map properties)
Creates a new node in the sdm |
void |
dsRemoveLink(java.lang.Object link)
Removes a link from the sdm |
void |
dsRemoveNode(java.lang.Object node)
Removes a node from the sdm |
void |
dsUpdateLink(java.lang.Object link,
java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of a link |
void |
dsUpdateNode(java.lang.Object node,
java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of a node |
IlsDSMainObject |
getDSMainObject()
|
boolean |
isLinkEditable(java.lang.Object link)
Returns false if the link is a read only. |
boolean |
isLinkPropertyEditable(java.lang.Object link,
java.lang.String propertyName)
|
boolean |
isLinkPropertyHRef(java.lang.Object link,
java.lang.String propertyName)
|
boolean |
isNodeEditable(java.lang.Object node)
Returns false if the node is a read only. |
boolean |
isNodePropertyEditable(java.lang.Object node,
java.lang.String propertyName)
|
boolean |
isNodePropertyHRef(java.lang.Object node,
java.lang.String propertyName)
|
void |
removeSDMDSListener(SDMDSListener l)
Removes a listener for all sdm 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 IlsSDMDataSource()
IlsSDMDataSource| Method Detail |
public 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.IlsDataSourceDSConnectionListenerpublic IlsDSMainObject getDSMainObject()
getDSMainObject in class IlsDataSourceilog.server.jsds.IlsDataSourcepublic void addSDMDSListener(SDMDSListener l)
addSDMDSListener in interface IlSDMDataSourcel - the listenerpublic void removeSDMDSListener(SDMDSListener l)
removeSDMDSListener in interface IlSDMDataSourcel - the listenerpublic boolean isNodeEditable(java.lang.Object node)
isNodeEditable in interface IlSDMDataSourceEditornode - -
The object to test.
public java.lang.Object dsAddNode(java.lang.String tag,
java.lang.Object parent,
java.util.Map properties)
dsAddNode in interface IlSDMDataSourceEditorproperties - properties of the node to createnull may be returned if the node takes a long time
to be created.
public void dsUpdateNode(java.lang.Object node,
java.lang.String propertyName,
java.lang.Object propertyValue)
dsUpdateNode in interface IlSDMDataSourceEditornode - the node to updatepropertyName - name of the property to be updatedpropertyValue - new value of the propertypublic void dsRemoveNode(java.lang.Object node)
dsRemoveNode in interface IlSDMDataSourceEditornode - node to be removedpublic boolean isLinkEditable(java.lang.Object link)
isLinkEditable in interface IlSDMDataSourceEditorlink - -
The object to test.
public java.lang.Object dsAddLink(java.lang.String tag,
java.lang.Object parent,
java.lang.Object from,
java.lang.Object to,
java.util.Map properties)
dsAddLink in interface IlSDMDataSourceEditorfrom - origin node of the linkto - destination node of the linkproperties - properties of the link to createnull may be returned if the link takes a long time
to be created.
public void dsUpdateLink(java.lang.Object link,
java.lang.String propertyName,
java.lang.Object propertyValue)
dsUpdateLink in interface IlSDMDataSourceEditorlink - the link to updatepropertyName - name of the property to be updatedpropertyValue - new value of the propertypublic void dsRemoveLink(java.lang.Object link)
dsRemoveLink in interface IlSDMDataSourceEditorlink - link to be removed
public boolean isNodePropertyEditable(java.lang.Object node,
java.lang.String propertyName)
node - The node representation.propertyName - The property name.true if property node is editable.
public boolean isNodePropertyHRef(java.lang.Object node,
java.lang.String propertyName)
node - The node representation.propertyName - The property name.true if property node is a hyper reference.
public boolean isLinkPropertyEditable(java.lang.Object link,
java.lang.String propertyName)
node - The link representation.propertyName - The property name.true if property link is editable.
public boolean isLinkPropertyHRef(java.lang.Object link,
java.lang.String propertyName)
node - The node representation.propertyName - The property name.true if property link is a hyper reference.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||