public class IlpStaticExpansionStrategy extends Object implements IlpExpansionStrategy
STATIC
Modifier and Type | Field and Description |
---|---|
static IlpExpansionStrategy |
STATIC
This is an expansion strategy suitable when no load on demand is
necessary.
|
Constructor and Description |
---|
IlpStaticExpansionStrategy() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final IlpExpansionStrategy STATIC
loadChildren
call.public void loadChildren(IlpRepresentationObject representation)
IlpExpansionStrategy
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.
loadChildren
in interface IlpExpansionStrategy
representation
- The representation object with children that are
being queried.public void releaseChildren(IlpRepresentationObject representation)
IlpExpansionStrategy
This method may be called more than once to a certain representation object.
releaseChildren
in interface IlpExpansionStrategy
representation
- The representation object with children that are
being released.public boolean areChildrenLoaded(IlpRepresentationObject representation)
IlpExpansionStrategy
true
if the child
objects have been queried at least once. This method is used to:
loadChildren
.
areChildrenLoaded
in interface IlpExpansionStrategy
representation
- The representation object.IlpExpansionStrategy.loadChildren(ilog.cpl.model.IlpRepresentationObject)
public boolean isLoadingOnDemand()
IlpExpansionStrategy
isLoadingOnDemand
in interface IlpExpansionStrategy
public boolean mayHaveChild(IlpRepresentationObject representation)
IlpExpansionStrategy
true
.mayHaveChild
in interface IlpExpansionStrategy
representation
- Representation object© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.