ilog.cpl.graph
Class IlpDefaultNodeExpansionStrategyFactory

java.lang.Object
  extended by ilog.cpl.graph.IlpDefaultNodeExpansionStrategyFactory
All Implemented Interfaces:
IlpExpansionStrategyFactory

public class IlpDefaultNodeExpansionStrategyFactory
extends Object
implements IlpExpansionStrategyFactory

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:

Since:
JTGO 4.0
See Also:
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

inPlaceExpansionStrategy

protected IlpExpansionStrategy inPlaceExpansionStrategy
Expansion strategy for IN_PLACE expansion.


inPlaceMinimalLoadingExpansionStrategy

protected IlpExpansionStrategy inPlaceMinimalLoadingExpansionStrategy
Expansion strategy that loads each level at a time.

Constructor Detail

IlpDefaultNodeExpansionStrategyFactory

public IlpDefaultNodeExpansionStrategyFactory(IlpAbstractNodeAdapter adapter)
Creates an expansion strategy factory for the given adapter.

Since:
JTGO 4.0
Method Detail

getAdapter

public IlpAbstractNodeAdapter getAdapter()
Returns the adapter that is associated with this expansion strategy factory.

Since:
JTGO 4.0

create

public IlpExpansionStrategy create(IlpObject ilpObject)
Creates an expansion strategy to be used by the representation object that corresponds to the given business object.

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:

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.

Specified by:
create in interface IlpExpansionStrategyFactory
Parameters:
ilpObject - Business object
Since:
JTGO 4.0
See Also:
IlpAbstractNodeAdapter.getExpansionType(ilog.cpl.model.IlpObject), IlpNetworkAdapter.setStyleSheets(java.lang.String[]), IlpEquipmentAdapter.setStyleSheets(java.lang.String[]), IlpExpansionType, IlpExpansionStrategy


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.