|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--ilog.ds.adapter.IlAbstractAdapter
|
+--ilog.ds.adapter.IlAbstractGanttModelAdapter
This class adapts the events from the IlGanttDataSource to a JViews IlvGanttModel. It does not implement how elements are created or updated, that is, how the properties from the data source are mapped to the IlvActivity, IlvResource, IlvConstraint, IlvReservation themselves. This class supports the mapping between the data source objects and the model objects. It stores the data source reference.
IlGanttDataSource,
IlGanttDataSourceEditor,
IlvActivity,
IlvResource,
IlvConstraint,
IlvReservation| Field Summary | |
protected java.util.Map |
_ds2model
|
protected IlGanttDataSource |
_gds
|
protected IlGanttDataSourceEditor |
_gdse
|
protected ilog.views.gantt.IlvGanttModel |
_gm
|
protected java.util.Map |
_model2ds
|
protected ilog.views.gantt.IlvActivity |
_rootActivity
|
protected ilog.views.gantt.IlvResource |
_rootResource
|
protected long |
_timeConstant
|
protected long |
_timeFactor
|
| Fields inherited from class ilog.ds.adapter.IlAbstractAdapter |
_dispatchListeners, _events, _frozenEvents, _inBatchedEvents, _inTransaction, _isFrozen, _syncStrategy |
| Constructor Summary | |
IlAbstractGanttModelAdapter()
|
|
| Method Summary | |
void |
activitiesInserted(ilog.views.gantt.event.ActivitiesInsertedEvent evt)
|
void |
activitiesRemoved(ilog.views.gantt.event.ActivitiesRemovedEvent evt)
|
void |
activityChange(ActivityEvent e)
This method is invoked when an activity has been added, removed, or updated in the GanttDataSource. |
void |
activityChanged(ilog.views.gantt.event.ActivityEvent evt)
|
void |
activityMoved(ilog.views.gantt.event.ActivityMovedEvent evt)
|
void |
activityPropertyChange(ilog.views.gantt.event.ActivityPropertyEvent evt)
|
void |
constraintChange(ConstraintEvent e)
This method is invoked when a constraint has been added, removed, or updated in the GanttDataSource. |
void |
constraintChanged(ilog.views.gantt.event.ConstraintEvent evt)
|
void |
constraintInserted(ilog.views.gantt.event.ConstraintInsertedEvent evt)
|
void |
constraintRemoved(ilog.views.gantt.event.ConstraintRemovedEvent evt)
|
void |
ConstraintTypeChange(ilog.views.gantt.event.ConstraintTypeEvent evt)
|
protected abstract ilog.views.gantt.IlvActivity |
createActivity(java.util.Map properties)
Method called to create an activity in the gantt model. |
protected abstract ilog.views.gantt.IlvConstraint |
createConstraint(ilog.views.gantt.IlvActivity fromActivity,
ilog.views.gantt.IlvActivity toActivity,
java.util.Map properties)
Method called to create a constraint in the gantt model. |
protected abstract ilog.views.gantt.IlvReservation |
createReservation(ilog.views.gantt.IlvResource resource,
ilog.views.gantt.IlvActivity activity,
java.util.Map properties)
Method called to create a reservation in the gantt model. |
protected abstract ilog.views.gantt.IlvResource |
createResource(java.util.Map properties)
Method called to create a resource in the gantt model. |
void |
dataSourceChange(DataSourceEvent e)
DataSourceListener implementation |
protected void |
dispatchBatchedEvent(java.util.EventObject event)
|
protected void |
dispatchBatchedEvents(java.util.ArrayList batchedEvents)
|
ilog.views.gantt.IlvActivity |
getActivity(java.lang.Object dsActivity)
|
ilog.views.gantt.IlvConstraint |
getConstraint(java.lang.Object dsConstraint)
|
java.lang.Object |
getDSActivity(ilog.views.gantt.IlvActivity activity)
|
java.lang.Object |
getDSConstraint(ilog.views.gantt.IlvConstraint constraint)
|
java.lang.Object |
getDSReservation(ilog.views.gantt.IlvReservation reservation)
|
java.lang.Object |
getDSResource(ilog.views.gantt.IlvResource resource)
|
IlGanttDataSource |
getGanttDataSource()
Gets the IlGanttDataSource in use by this adapter. |
IlGanttDataSourceEditor |
getGanttDataSourceEditor()
Gets the IlGanttDataSourceEditor in use by this adapter. |
ilog.views.gantt.IlvGanttModel |
getModel()
Gets the IlvGanttModel in use by this adapter. |
ilog.views.gantt.IlvReservation |
getReservation(java.lang.Object dsReservation)
|
ilog.views.gantt.IlvResource |
getResource(java.lang.Object dsResource)
|
protected java.lang.Object |
getSynchronizationObject()
|
long |
getTimeConstant()
|
long |
getTimeFactor()
|
protected void |
internalActivityAdded(ActivityEvent evt)
|
protected void |
internalActivityRemoved(ActivityEvent evt)
|
protected void |
internalActivityUpdated(ActivityEvent evt)
|
protected void |
internalConstraintAdded(ConstraintEvent evt)
|
protected void |
internalConstraintRemoved(ConstraintEvent evt)
|
protected void |
internalConstraintUpdated(ConstraintEvent evt)
|
protected void |
internalDataSourceChange(DataSourceEvent evt)
Internal code called in the Swing event thread |
protected void |
internalReservationAdded(ReservationEvent evt)
|
protected void |
internalReservationRemoved(ReservationEvent evt)
|
protected void |
internalReservationUpdated(ReservationEvent evt)
|
protected void |
internalResourceAdded(ResourceEvent evt)
|
protected void |
internalResourceRemoved(ResourceEvent evt)
|
protected void |
internalResourceUpdated(ResourceEvent evt)
|
protected void |
internalRootActivitySet(ActivityEvent evt)
|
protected void |
internalRootResourceSet(ResourceEvent evt)
|
void |
reservationChange(ReservationEvent e)
This method is invoked when a reservation has been added, removed, or updated in the GanttDataSource. |
void |
reservationChanged(ilog.views.gantt.event.ReservationEvent evt)
|
void |
reservationInserted(ilog.views.gantt.event.ReservationInsertedEvent evt)
|
void |
reservationRemoved(ilog.views.gantt.event.ReservationRemovedEvent evt)
|
void |
reservedResourceChange(ilog.views.gantt.event.ReservedResourceEvent evt)
|
void |
resourceChange(ResourceEvent e)
This method is invoked when a resource has been added, removed, or updated in the GanttDataSource. |
void |
resourceChanged(ilog.views.gantt.event.ResourceEvent evt)
|
void |
resourceMoved(ilog.views.gantt.event.ResourceMovedEvent evt)
|
void |
resourcePropertyChange(ilog.views.gantt.event.ResourcePropertyEvent evt)
|
void |
resourcesInserted(ilog.views.gantt.event.ResourcesInsertedEvent evt)
|
void |
resourcesRemoved(ilog.views.gantt.event.ResourcesRemovedEvent evt)
|
void |
setGanttDataSource(IlGanttDataSource gds)
Sets the IlGanttDataSource to use. |
void |
setGanttDataSourceEditor(IlGanttDataSourceEditor gdse)
Sets the IlGanttDataSourceEditor to use. |
void |
setModel(ilog.views.gantt.IlvGanttModel gm)
Sets the IlvGanttModel to use |
void |
setTimeConstant(long timeConstant)
|
void |
setTimeFactor(long timeFactor)
|
protected abstract void |
updateActivity(ilog.views.gantt.IlvActivity activity,
java.util.Map properties)
Method called to update an activity in the gantt model. |
protected abstract void |
updateConstraint(ilog.views.gantt.IlvConstraint constraint,
java.util.Map properties)
Method called to update a constraint in the gantt model. |
protected abstract void |
updateReservation(ilog.views.gantt.IlvReservation reservation,
java.util.Map properties)
Method called to update a reservation in the gantt model. |
protected abstract void |
updateResource(ilog.views.gantt.IlvResource resource,
java.util.Map properties)
Method called to update a resource in the gantt model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected long _timeFactor
protected long _timeConstant
protected ilog.views.gantt.IlvActivity _rootActivity
protected ilog.views.gantt.IlvResource _rootResource
protected java.util.Map _model2ds
protected java.util.Map _ds2model
protected IlGanttDataSource _gds
protected IlGanttDataSourceEditor _gdse
protected ilog.views.gantt.IlvGanttModel _gm
| Constructor Detail |
public IlAbstractGanttModelAdapter()
| Method Detail |
protected java.lang.Object getSynchronizationObject()
IlAbstractAdaptergetSynchronizationObject in class IlAbstractAdapterilog.ds.adapter.IlAbstractAdapterpublic final java.lang.Object getDSActivity(ilog.views.gantt.IlvActivity activity)
public final java.lang.Object getDSResource(ilog.views.gantt.IlvResource resource)
public final java.lang.Object getDSConstraint(ilog.views.gantt.IlvConstraint constraint)
public final java.lang.Object getDSReservation(ilog.views.gantt.IlvReservation reservation)
public final ilog.views.gantt.IlvActivity getActivity(java.lang.Object dsActivity)
public final ilog.views.gantt.IlvResource getResource(java.lang.Object dsResource)
public final ilog.views.gantt.IlvConstraint getConstraint(java.lang.Object dsConstraint)
public final ilog.views.gantt.IlvReservation getReservation(java.lang.Object dsReservation)
public long getTimeFactor()
public long getTimeConstant()
public void setTimeFactor(long timeFactor)
public void setTimeConstant(long timeConstant)
protected abstract ilog.views.gantt.IlvActivity createActivity(java.util.Map properties)
properties - The properties from the data source
protected abstract void updateActivity(ilog.views.gantt.IlvActivity activity,
java.util.Map properties)
activity - the IlvActivity to updateproperties - The updated properties from the data sourceprotected abstract ilog.views.gantt.IlvResource createResource(java.util.Map properties)
properties - The properties from the data source
protected abstract void updateResource(ilog.views.gantt.IlvResource resource,
java.util.Map properties)
resource - the IlvResource to updateproperties - The updated properties from the data source
protected abstract ilog.views.gantt.IlvConstraint createConstraint(ilog.views.gantt.IlvActivity fromActivity,
ilog.views.gantt.IlvActivity toActivity,
java.util.Map properties)
properties - The properties from the data source
protected abstract void updateConstraint(ilog.views.gantt.IlvConstraint constraint,
java.util.Map properties)
constraint - the IlvConstraint to updateproperties - The updated properties from the data source
protected abstract ilog.views.gantt.IlvReservation createReservation(ilog.views.gantt.IlvResource resource,
ilog.views.gantt.IlvActivity activity,
java.util.Map properties)
properties - The properties from the data source
protected abstract void updateReservation(ilog.views.gantt.IlvReservation reservation,
java.util.Map properties)
reservation - the IlvReservation to updateproperties - The updated properties from the data sourcepublic void setModel(ilog.views.gantt.IlvGanttModel gm)
public ilog.views.gantt.IlvGanttModel getModel()
public IlGanttDataSource getGanttDataSource()
public IlGanttDataSourceEditor getGanttDataSourceEditor()
public void setGanttDataSource(IlGanttDataSource gds)
public void setGanttDataSourceEditor(IlGanttDataSourceEditor gdse)
public void dataSourceChange(DataSourceEvent e)
ilog.ds.DataSourceListenere - The eventDataSourceEventpublic void activityChange(ActivityEvent e)
GanttDataSource.activityChange in interface GanttDSListenere - The eventActivityEvent,
IlGanttDataSourcepublic void resourceChange(ResourceEvent e)
GanttDataSource.resourceChange in interface GanttDSListenere - The eventResourceEvent,
IlGanttDataSourcepublic void constraintChange(ConstraintEvent e)
GanttDataSource.constraintChange in interface GanttDSListenere - The eventConstraintEvent,
IlGanttDataSourcepublic void reservationChange(ReservationEvent e)
GanttDataSource.reservationChange in interface GanttDSListenere - The eventReservationEvent,
IlGanttDataSourceprotected void internalDataSourceChange(DataSourceEvent evt)
internalDataSourceChange in class IlAbstractAdapterprotected void internalRootActivitySet(ActivityEvent evt)
protected void internalActivityAdded(ActivityEvent evt)
protected void internalActivityUpdated(ActivityEvent evt)
protected void internalActivityRemoved(ActivityEvent evt)
protected void internalRootResourceSet(ResourceEvent evt)
protected void internalResourceAdded(ResourceEvent evt)
protected void internalResourceUpdated(ResourceEvent evt)
protected void internalResourceRemoved(ResourceEvent evt)
protected void internalConstraintAdded(ConstraintEvent evt)
protected void internalConstraintUpdated(ConstraintEvent evt)
protected void internalConstraintRemoved(ConstraintEvent evt)
protected void internalReservationAdded(ReservationEvent evt)
protected void internalReservationUpdated(ReservationEvent evt)
protected void internalReservationRemoved(ReservationEvent evt)
protected void dispatchBatchedEvent(java.util.EventObject event)
dispatchBatchedEvent in class IlAbstractAdapterprotected void dispatchBatchedEvents(java.util.ArrayList batchedEvents)
dispatchBatchedEvents in class IlAbstractAdapterpublic void activityChanged(ilog.views.gantt.event.ActivityEvent evt)
activityChanged in interface ilog.views.gantt.event.ActivityListenerpublic void activitiesInserted(ilog.views.gantt.event.ActivitiesInsertedEvent evt)
activitiesInserted in interface ilog.views.gantt.event.ActivityHierarchyListenerpublic void activitiesRemoved(ilog.views.gantt.event.ActivitiesRemovedEvent evt)
activitiesRemoved in interface ilog.views.gantt.event.ActivityHierarchyListenerpublic void activityMoved(ilog.views.gantt.event.ActivityMovedEvent evt)
activityMoved in interface ilog.views.gantt.event.ActivityHierarchyListenerpublic void activityPropertyChange(ilog.views.gantt.event.ActivityPropertyEvent evt)
public void resourceChanged(ilog.views.gantt.event.ResourceEvent evt)
resourceChanged in interface ilog.views.gantt.event.ResourceListenerpublic void resourcesInserted(ilog.views.gantt.event.ResourcesInsertedEvent evt)
resourcesInserted in interface ilog.views.gantt.event.ResourceHierarchyListenerpublic void resourcesRemoved(ilog.views.gantt.event.ResourcesRemovedEvent evt)
resourcesRemoved in interface ilog.views.gantt.event.ResourceHierarchyListenerpublic void resourceMoved(ilog.views.gantt.event.ResourceMovedEvent evt)
resourceMoved in interface ilog.views.gantt.event.ResourceHierarchyListenerpublic void resourcePropertyChange(ilog.views.gantt.event.ResourcePropertyEvent evt)
public void constraintChanged(ilog.views.gantt.event.ConstraintEvent evt)
constraintChanged in interface ilog.views.gantt.event.ConstraintListenerpublic void ConstraintTypeChange(ilog.views.gantt.event.ConstraintTypeEvent evt)
public void constraintInserted(ilog.views.gantt.event.ConstraintInsertedEvent evt)
public void constraintRemoved(ilog.views.gantt.event.ConstraintRemovedEvent evt)
public void reservationChanged(ilog.views.gantt.event.ReservationEvent evt)
reservationChanged in interface ilog.views.gantt.event.ReservationListenerpublic void reservedResourceChange(ilog.views.gantt.event.ReservedResourceEvent evt)
public void reservationInserted(ilog.views.gantt.event.ReservationInsertedEvent evt)
public void reservationRemoved(ilog.views.gantt.event.ReservationRemovedEvent evt)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||