|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlpExpansionStrategy
An instance of this interface can be installed on each representation object that is capable of having child objects. It may load or unload the child objects asynchronously, using an adapter to the back end.
IlpDefaultTreeNode,
IlpDefaultNetworkNode,
IlpDefaultNetworkLink,
IlpDefaultEquipmentNode,
IlpDefaultEquipmentLink,
IlpExpansionStrategyFactory| Method Summary | |
|---|---|
boolean |
areChildrenLoaded(IlpRepresentationObject representation)
Indicates whether the child objects are already loaded with this expansion strategy. |
boolean |
isLoadingOnDemand()
Indicates whether this strategy enables loading on demand. |
void |
loadChildren(IlpRepresentationObject representation)
Loads the children objects of the given representation object so that they are added to the model and are visible to the attached views. |
boolean |
mayHaveChild(IlpRepresentationObject representation)
Indicates whether the parameter may have children. |
void |
releaseChildren(IlpRepresentationObject representation)
Signals that the model and the attached views do not need the child objects of the given object anymore. |
| Method Detail |
|---|
void loadChildren(IlpRepresentationObject representation)
This method should load all child objects that are currently available in the back-end. When loading child objects asynchronously, they should all be loaded at once.
This method may be called more than once to a certain representation object.
representation - The representation object with children that are
being queried.void releaseChildren(IlpRepresentationObject representation)
This method may be called more than once to a certain representation object.
representation - The representation object with children that are
being released.boolean areChildrenLoaded(IlpRepresentationObject representation)
true if the child
objects have been queried at least once. This method is used to:
loadChildren.
representation - The representation object.loadChildren(ilog.cpl.model.IlpRepresentationObject)boolean isLoadingOnDemand()
boolean mayHaveChild(IlpRepresentationObject representation)
true.
representation - Representation object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||