public class IlpDefaultNodeExpansionStrategyFactory extends Object implements IlpExpansionStrategyFactory
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.
Modifier and Type | Field and Description |
---|---|
protected IlpExpansionStrategy |
inPlaceExpansionStrategy
Expansion strategy for IN_PLACE expansion.
|
protected IlpExpansionStrategy |
inPlaceMinimalLoadingExpansionStrategy
Expansion strategy that loads each level at a time.
|
DEFAULT
Constructor and Description |
---|
IlpDefaultNodeExpansionStrategyFactory(IlpAbstractNodeAdapter adapter)
Creates an expansion strategy factory for the given adapter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected IlpExpansionStrategy inPlaceExpansionStrategy
protected IlpExpansionStrategy inPlaceMinimalLoadingExpansionStrategy
public IlpDefaultNodeExpansionStrategyFactory(IlpAbstractNodeAdapter adapter)
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 IlpExpansionStrategyFactory
ilpObject
- Business objectIlpAbstractNodeAdapter.getExpansionType(ilog.cpl.model.IlpObject)
,
IlpNetworkAdapter.setStyleSheets(java.lang.String[])
,
IlpEquipmentAdapter.setStyleSheets(java.lang.String[])
,
IlpExpansionType
,
IlpExpansionStrategy
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.