|
|||||||||
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 Map |
_ds2model
|
protected IlGanttDataSource |
_gds
|
protected IlGanttDataSourceEditor |
_gdse
|
protected ilog.views.gantt.IlvGanttModel |
_gm
|
protected 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(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,
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,
Map properties)
Method called to create a reservation in the gantt model. |
protected abstract ilog.views.gantt.IlvResource |
createResource(Map properties)
Method called to create a resource in the gantt model. |
void |
dataSourceChange(DataSourceEvent e)
DataSourceListener implementation |
protected void |
dispatchBatchedEvent(EventObject event)
|
protected void |
dispatchBatchedEvents(ArrayList batchedEvents)
|
ilog.views.gantt.IlvActivity |
getActivity(Object dsActivity)
|
ilog.views.gantt.IlvConstraint |
getConstraint(Object dsConstraint)
|
Object |
getDSActivity(ilog.views.gantt.IlvActivity activity)
|
Object |
getDSConstraint(ilog.views.gantt.IlvConstraint constraint)
|
Object |
getDSReservation(ilog.views.gantt.IlvReservation reservation)
|
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(Object dsReservation)
|
ilog.views.gantt.IlvResource |
getResource(Object dsResource)
|
protected 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,
Map properties)
Method called to update an activity in the gantt model. |
protected abstract void |
updateConstraint(ilog.views.gantt.IlvConstraint constraint,
Map properties)
Method called to update a constraint in the gantt model. |
protected abstract void |
updateReservation(ilog.views.gantt.IlvReservation reservation,
Map properties)
Method called to update a reservation in the gantt model. |
protected abstract void |
updateResource(ilog.views.gantt.IlvResource resource,
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 Map _model2ds
protected Map _ds2model
protected IlGanttDataSource _gds
protected IlGanttDataSourceEditor _gdse
protected ilog.views.gantt.IlvGanttModel _gm
Constructor Detail |
public IlAbstractGanttModelAdapter()
Method Detail |
protected Object getSynchronizationObject()
IlAbstractAdapter
getSynchronizationObject
in class IlAbstractAdapter
ilog.ds.adapter.IlAbstractAdapter
public final Object getDSActivity(ilog.views.gantt.IlvActivity activity)
public final Object getDSResource(ilog.views.gantt.IlvResource resource)
public final Object getDSConstraint(ilog.views.gantt.IlvConstraint constraint)
public final Object getDSReservation(ilog.views.gantt.IlvReservation reservation)
public final ilog.views.gantt.IlvActivity getActivity(Object dsActivity)
public final ilog.views.gantt.IlvResource getResource(Object dsResource)
public final ilog.views.gantt.IlvConstraint getConstraint(Object dsConstraint)
public final ilog.views.gantt.IlvReservation getReservation(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(Map properties)
properties
- The properties from the data sourceprotected abstract void updateActivity(ilog.views.gantt.IlvActivity activity, Map properties)
activity
- the IlvActivity to updateproperties
- The updated properties from the data sourceprotected abstract ilog.views.gantt.IlvResource createResource(Map properties)
properties
- The properties from the data sourceprotected abstract void updateResource(ilog.views.gantt.IlvResource resource, Map properties)
resource
- the IlvResource to updateproperties
- The updated properties from the data sourceprotected abstract ilog.views.gantt.IlvConstraint createConstraint(ilog.views.gantt.IlvActivity fromActivity, ilog.views.gantt.IlvActivity toActivity, Map properties)
properties
- The properties from the data sourceprotected abstract void updateConstraint(ilog.views.gantt.IlvConstraint constraint, Map properties)
constraint
- the IlvConstraint to updateproperties
- The updated properties from the data sourceprotected abstract ilog.views.gantt.IlvReservation createReservation(ilog.views.gantt.IlvResource resource, ilog.views.gantt.IlvActivity activity, Map properties)
properties
- The properties from the data sourceprotected abstract void updateReservation(ilog.views.gantt.IlvReservation reservation, 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.DataSourceListener
e
- The eventDataSourceEvent
public void activityChange(ActivityEvent e)
GanttDataSource
.activityChange
in interface GanttDSListener
e
- The eventActivityEvent
,
IlGanttDataSource
public void resourceChange(ResourceEvent e)
GanttDataSource
.resourceChange
in interface GanttDSListener
e
- The eventResourceEvent
,
IlGanttDataSource
public void constraintChange(ConstraintEvent e)
GanttDataSource
.constraintChange
in interface GanttDSListener
e
- The eventConstraintEvent
,
IlGanttDataSource
public void reservationChange(ReservationEvent e)
GanttDataSource
.reservationChange
in interface GanttDSListener
e
- The eventReservationEvent
,
IlGanttDataSource
protected void internalDataSourceChange(DataSourceEvent evt)
internalDataSourceChange
in class IlAbstractAdapter
protected 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(EventObject event)
dispatchBatchedEvent
in class IlAbstractAdapter
protected void dispatchBatchedEvents(ArrayList batchedEvents)
dispatchBatchedEvents
in class IlAbstractAdapter
public void activityChanged(ilog.views.gantt.event.ActivityEvent evt)
activityChanged
in interface ilog.views.gantt.event.ActivityListener
public void activitiesInserted(ilog.views.gantt.event.ActivitiesInsertedEvent evt)
activitiesInserted
in interface ilog.views.gantt.event.ActivityHierarchyListener
public void activitiesRemoved(ilog.views.gantt.event.ActivitiesRemovedEvent evt)
activitiesRemoved
in interface ilog.views.gantt.event.ActivityHierarchyListener
public void activityMoved(ilog.views.gantt.event.ActivityMovedEvent evt)
activityMoved
in interface ilog.views.gantt.event.ActivityHierarchyListener
public void activityPropertyChange(ilog.views.gantt.event.ActivityPropertyEvent evt)
public void resourceChanged(ilog.views.gantt.event.ResourceEvent evt)
resourceChanged
in interface ilog.views.gantt.event.ResourceListener
public void resourcesInserted(ilog.views.gantt.event.ResourcesInsertedEvent evt)
resourcesInserted
in interface ilog.views.gantt.event.ResourceHierarchyListener
public void resourcesRemoved(ilog.views.gantt.event.ResourcesRemovedEvent evt)
resourcesRemoved
in interface ilog.views.gantt.event.ResourceHierarchyListener
public void resourceMoved(ilog.views.gantt.event.ResourceMovedEvent evt)
resourceMoved
in interface ilog.views.gantt.event.ResourceHierarchyListener
public void resourcePropertyChange(ilog.views.gantt.event.ResourcePropertyEvent evt)
public void constraintChanged(ilog.views.gantt.event.ConstraintEvent evt)
constraintChanged
in interface ilog.views.gantt.event.ConstraintListener
public 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.ReservationListener
public 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 |