|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlpRepresentationNode
Objects implementing this interface build up a container hierarchy. Each such object may be a container and have child objects, and each such object can have a parent object.
This class is used by the network model and the equipment model.
IlpGraphModel| Field Summary |
|---|
| Fields inherited from interface ilog.cpl.model.IlpAttributeValueHolder |
|---|
VALUE_NOT_SET |
| Method Summary | |
|---|---|
void |
addRepresentationNodeListener(RepresentationNodeListener listener)
Adds a listener that is notified each time a change to this container occurs. |
boolean |
getAllowsChildren()
Returns true if this node allows children. |
List |
getChildren()
Returns a list of the child objects of this object. |
IlpExpansionStrategy |
getExpansionStrategy()
Returns the child object loader that was passed to this object at construction time. |
IlpRepresentationNode |
getParent()
Returns the parent object of this object. |
boolean |
isLeaf()
Returns true if this object, by its nature, has no children. |
void |
removeRepresentationNodeListener(RepresentationNodeListener listener)
Removes a listener previously added with addRepresentationNodeListener(ilog.cpl.model.container.RepresentationNodeListener). |
| Methods inherited from interface ilog.cpl.model.IlpRepresentationObject |
|---|
getEditor, getIlpObject |
| Methods inherited from interface ilog.cpl.model.IlpAttributeValueHolder |
|---|
addAttributeValueListener, fireEvent, getAttributeGroup, getAttributeValue, getAttributeValue, hasAttributeValue, removeAttributeValueListener, setAttributeValue, setAttributeValue |
| Method Detail |
|---|
boolean isLeaf()
true if this object, by its nature, has no children.
When this method returns false, there may or may not be some
children attached to the object; children can be added or removed
dynamically.
Note: The result of this method must not change while
this node is (directly or indirectly) accessible in an
IlpGraphModel.
List getChildren()
Note: The order of this list is important as follows:
RepresentationNodeEvent events, which indicate the
children added (after addition) or removed (before removal).
IlpRepresentationNodevoid addRepresentationNodeListener(RepresentationNodeListener listener)
void removeRepresentationNodeListener(RepresentationNodeListener listener)
addRepresentationNodeListener(ilog.cpl.model.container.RepresentationNodeListener).
IlpRepresentationNode getParent()
Note: The result of this method must not change while
this node is (directly or indirectly) accessible in an
IlpGraphModel.
boolean getAllowsChildren()
true if this node allows children.
IlpExpansionStrategy getExpansionStrategy()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||