ilog.server.jsds.adapter
Class IlsGanttDS2IlvHierarchyChartStrategy

java.lang.Object
  |
  +--ilog.server.jsds.adapter.IlsGanttDS2IlvHierarchyChartStrategy
All Implemented Interfaces:
java.util.EventListener

public class IlsGanttDS2IlvHierarchyChartStrategy
extends java.lang.Object
implements java.util.EventListener

Base class for gantt adapter strategies, enhanced listeners for gantt adapters.

Strategies are notified of main events occuring on the attached adapter: creation, deletion, updates from the corresponding data source, events dispatching in the adapter, and setting of the data model and of the graphic component.

Events from the data source are simply notified to the strategy and are generally used to manage user defined properties.
Events dispatching and setting of the data model and of the graphic component are cascaded through all strategies to allow events filtering or data model wrapping.

See Also:
IlsGanttDS2IlvHierarchyChartAdapter

Field Summary
 IlsGanttDS2IlvHierarchyChartAdapter _adapter
           
 
Constructor Summary
IlsGanttDS2IlvHierarchyChartStrategy(IlsGanttDS2IlvHierarchyChartAdapter adapter)
          Defines an empty strategy for IlsSDMDS2IlvSDMViewAdapter adapters.
 
Method Summary
 void internalActivityAdded(ActivityEvent e)
          Called after an activity added event dispatching in the adapter.
 void internalActivityRemoved(ActivityEvent e)
          Called after an activity removed event dispatching in the adapter.
 void internalActivityUpdated(ActivityEvent e)
          Called after an activity updated event dispatching in the adapter.
 void internalConstraintAdded(ConstraintEvent e)
          Called after a constraint added event dispatching in the adapter.
 void internalConstraintRemoved(ConstraintEvent e)
          Called after a constraint removed event dispatching in the adapter.
 void internalConstraintUpdated(ConstraintEvent e)
          Called after a constraint updated event dispatching in the adapter.
 void internalDataSourceChange(DataSourceEvent e)
          Called after data source change notification in the adapter.
 void internalDataSourceConnected(DSConnectionEvent e)
          Called after the data source connection event.
 void internalDataSourceDisconnected(DSConnectionEvent e)
          Called after the data source disconnection event.
 void internalReservationAdded(ReservationEvent e)
          Called after a reservation added event dispatching in the adapter.
 void internalReservationRemoved(ReservationEvent e)
          Called after a reservation removed event dispatching in the adapter.
 void internalReservationUpdated(ReservationEvent e)
          Called after a reservation updated event dispatching in the adapter.
 void internalResourceAdded(ResourceEvent e)
          Called after a resource added event dispatching in the adapter.
 void internalResourceRemoved(ResourceEvent e)
          Called after a resource removed event dispatching in the adapter.
 void internalResourceUpdated(ResourceEvent e)
          Called after a resource updated event dispatching in the adapter.
 void internalRootActivitySet(ActivityEvent e)
          Called after root activity set event dispatching in the adapter.
 void internalRootResourceSet(ResourceEvent e)
          Called after root activity set event dispatching in the adapter.
 java.awt.Component plugComponent(java.awt.Component component)
          Called before graphic component is connected to the adapter.
 java.util.ArrayList postDispatchBatchedEvents(java.util.ArrayList events)
          Called before postdispatch events in the adapter.
 java.util.ArrayList preDispatchBatchedEvents(java.util.ArrayList events)
          Called before predispatch events in the adapter.
 ilog.views.gantt.IlvGanttModel setModel(ilog.views.gantt.IlvGanttModel gm)
          Called before data model setting in the adapter.
 java.awt.Component unplugComponent(java.awt.Component component)
          Called before graphic component is disconnected from the adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_adapter

public IlsGanttDS2IlvHierarchyChartAdapter _adapter
Constructor Detail

IlsGanttDS2IlvHierarchyChartStrategy

public IlsGanttDS2IlvHierarchyChartStrategy(IlsGanttDS2IlvHierarchyChartAdapter adapter)
Defines an empty strategy for IlsSDMDS2IlvSDMViewAdapter adapters.
Parameters:
adapter - the adapter managing this strategy.
Method Detail

preDispatchBatchedEvents

public java.util.ArrayList preDispatchBatchedEvents(java.util.ArrayList events)
Called before predispatch events in the adapter. Allow events filtering in returning a modified events list.
Returns:
events unmodified.

postDispatchBatchedEvents

public java.util.ArrayList postDispatchBatchedEvents(java.util.ArrayList events)
Called before postdispatch events in the adapter. Allow events filtering in returning a modified events list.
Returns:
events unmodified.

internalDataSourceChange

public void internalDataSourceChange(DataSourceEvent e)
Called after data source change notification in the adapter.
Parameters:
e - the data source event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalDataSourceChange(DataSourceEvent)

setModel

public ilog.views.gantt.IlvGanttModel setModel(ilog.views.gantt.IlvGanttModel gm)
Called before data model setting in the adapter. Allow for example data model wrapping.
Parameters:
gm - the gantt data model.
Returns:
gm unmodified.
See Also:
IlAbstractGanttModelAdapter.setModel(IlvGanttModel)

internalRootActivitySet

public void internalRootActivitySet(ActivityEvent e)
Called after root activity set event dispatching in the adapter.
Parameters:
e - the activity event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalRootActivitySet(ActivityEvent)

internalActivityAdded

public void internalActivityAdded(ActivityEvent e)
Called after an activity added event dispatching in the adapter.
Parameters:
e - the activity event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalActivityAdded(ActivityEvent)

internalActivityUpdated

public void internalActivityUpdated(ActivityEvent e)
Called after an activity updated event dispatching in the adapter.
Parameters:
e - the activity event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalActivityUpdated(ActivityEvent)

internalActivityRemoved

public void internalActivityRemoved(ActivityEvent e)
Called after an activity removed event dispatching in the adapter.
Parameters:
e - the activity event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalActivityRemoved(ActivityEvent)

internalRootResourceSet

public void internalRootResourceSet(ResourceEvent e)
Called after root activity set event dispatching in the adapter.
Parameters:
e - the resource event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalRootResourceSet(ResourceEvent)

internalResourceAdded

public void internalResourceAdded(ResourceEvent e)
Called after a resource added event dispatching in the adapter.
Parameters:
e - the resource event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalResourceAdded(ResourceEvent)

internalResourceUpdated

public void internalResourceUpdated(ResourceEvent e)
Called after a resource updated event dispatching in the adapter.
Parameters:
e - the resource event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalResourceUpdated(ResourceEvent)

internalResourceRemoved

public void internalResourceRemoved(ResourceEvent e)
Called after a resource removed event dispatching in the adapter.
Parameters:
e - the resource event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalResourceRemoved(ResourceEvent)

internalConstraintAdded

public void internalConstraintAdded(ConstraintEvent e)
Called after a constraint added event dispatching in the adapter.
Parameters:
e - the constraint event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalConstraintAdded(ConstraintEvent)

internalConstraintUpdated

public void internalConstraintUpdated(ConstraintEvent e)
Called after a constraint updated event dispatching in the adapter.
Parameters:
e - the constraint event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalConstraintUpdated(ConstraintEvent)

internalConstraintRemoved

public void internalConstraintRemoved(ConstraintEvent e)
Called after a constraint removed event dispatching in the adapter.
Parameters:
e - the constraint event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalConstraintRemoved(ConstraintEvent)

internalReservationAdded

public void internalReservationAdded(ReservationEvent e)
Called after a reservation added event dispatching in the adapter.
Parameters:
e - the reservation event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalReservationAdded(ReservationEvent)

internalReservationUpdated

public void internalReservationUpdated(ReservationEvent e)
Called after a reservation updated event dispatching in the adapter.
Parameters:
e - the reservation event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalReservationUpdated(ReservationEvent)

internalReservationRemoved

public void internalReservationRemoved(ReservationEvent e)
Called after a reservation removed event dispatching in the adapter.
Parameters:
e - the reservation event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.internalReservationRemoved(ReservationEvent)

internalDataSourceConnected

public void internalDataSourceConnected(DSConnectionEvent e)
Called after the data source connection event.
Parameters:
e - the data source connection event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.dataSourceConnected(DSConnectionEvent)

internalDataSourceDisconnected

public void internalDataSourceDisconnected(DSConnectionEvent e)
Called after the data source disconnection event.
Parameters:
e - the data source disconnection event.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.dataSourceDisconnected(DSConnectionEvent)

plugComponent

public java.awt.Component plugComponent(java.awt.Component component)
Called before graphic component is connected to the adapter.
Parameters:
component - generally a JTable instance.
Returns:
component unmodified.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.plugComponent(Component)

unplugComponent

public java.awt.Component unplugComponent(java.awt.Component component)
Called before graphic component is disconnected from the adapter.
Parameters:
component - generally a IlvHierarchyChart instance.
Returns:
component unmodified.
See Also:
IlsGanttDS2IlvHierarchyChartAdapter.unplugComponent(Component)