|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.graph.IlpDefaultNodeExpansionStrategyFactory
public class IlpDefaultNodeExpansionStrategyFactory
This class models a default expansion strategy factory for both network and equipment components.
This factory returns specific expansion strategies according to the value of the CSS property expansion in the different business objects. Expansion strategies are shared among all objects with a certain expansion type.
By default, the following expansion types are supported:
IN_PLACE: loads all the children objects present in the
datasource. They are visible according to the filter criteria.
IN_PLACE_MINIMAL_LOADING: loads only the direct children
objects present in the datasource. They are visible according to
the filter criteria. With this expansion strategy, the objects are
loaded according to the view requests when objects are expanded.
NO_EXPANSION: object cannot be expanded, even when there
are children objects in the datasource.
IlpAbstractNodeAdapter,
IlpAbstractHierarchyAdapter.setExpansionStrategyFactory(ilog.cpl.util.IlpExpansionStrategyFactory)| Field Summary | |
|---|---|
protected IlpExpansionStrategy |
inPlaceExpansionStrategy
Expansion strategy for IN_PLACE expansion. |
protected IlpExpansionStrategy |
inPlaceMinimalLoadingExpansionStrategy
Expansion strategy that loads each level at a time. |
| Fields inherited from interface ilog.cpl.util.IlpExpansionStrategyFactory |
|---|
DEFAULT |
| Constructor Summary | |
|---|---|
IlpDefaultNodeExpansionStrategyFactory(IlpAbstractNodeAdapter adapter)
Creates an expansion strategy factory for the given adapter. |
|
| Method Summary | |
|---|---|
IlpExpansionStrategy |
create(IlpObject ilpObject)
Creates an expansion strategy to be used by the representation object that corresponds to the given business object. |
IlpAbstractNodeAdapter |
getAdapter()
Returns the adapter that is associated with this expansion strategy factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IlpExpansionStrategy inPlaceExpansionStrategy
protected IlpExpansionStrategy inPlaceMinimalLoadingExpansionStrategy
| Constructor Detail |
|---|
public IlpDefaultNodeExpansionStrategyFactory(IlpAbstractNodeAdapter adapter)
| Method Detail |
|---|
public IlpAbstractNodeAdapter getAdapter()
public IlpExpansionStrategy create(IlpObject ilpObject)
An expansion strategy defines how the representation object behaves in the component when it is collapsed or expanded.
This method returns a predefined expansion strategy according to the object expansion type:
IN_PLACE: returns an expansion strategy which loads in
the representation model all the nodes that are present in this
object containment subtree and that are visible according to the
filter criteria.
IN_PLACE_MINIMAL_LOADING: returns an expansion strategy
which loads in the representation model only its direct children
objects that are visible according to the filter criteria. With this
expansion strategy, the objects are loaded according to the view
requests when objects are expanded.
NO_EXPANSION: object cannot be expanded, even when
there are children objects in the datasource.
The business object expansion type is customized in the adapter using Cascading Style Sheets (CSS). The following example illustrates this customization:
object {
expansion: IN_PLACE;
}
Expansion strategies are shared among business objects that share
the same expansion type.
create in interface IlpExpansionStrategyFactoryilpObject - Business objectIlpAbstractNodeAdapter.getExpansionType(ilog.cpl.model.IlpObject),
IlpNetworkAdapter.setStyleSheets(java.lang.String[]),
IlpEquipmentAdapter.setStyleSheets(java.lang.String[]),
IlpExpansionType,
IlpExpansionStrategy
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||