public class GanttChartModelEvent extends EventObject
IGanttChartModelListener
instances about changes in the model that they are observing.Modifier and Type | Class and Description |
---|---|
static class |
GanttChartModelEvent.ID
An event identifier used to indicate what kind of event has taken place.
|
source
Modifier and Type | Method and Description |
---|---|
GanttChartModelEvent.ID |
getId()
Returns the event's identifier that can be used by model observers to
find out what has changed in the model.
|
ILayer |
getLayer()
Returns the layer where the event occured.
|
IGanttChartModel |
getModel()
Returns the source model of the event.
|
Object |
getNode()
Returns the tree table node that was affected by the change.
|
Collection<IRelationship> |
getRelationships()
Returns the relationships that were added to or removed from the model.
|
ISpreadsheet |
getSpreadsheet()
Returns the spreadsheet that was added / removed, or where
a value was changed.
|
Object |
getSpreadsheetValue()
Returns the value that was entered into a spreadsheet cell.
|
Object |
getTimelineObject()
Returns the timeline object that was affected by a change in the model.
|
TimelineObjectPath[] |
getTimelineObjectPaths()
Returns the timeline objects that were affected by the change.
|
ITimeSpan |
getTimeSpan()
Returns the time span that was affected by the change.
|
getSource, toString
public GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, ILayer layer)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventslayer
- the layer that was affected by some kind of change in the
modelpublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, ISpreadsheet spreadsheet)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventsspreadsheet
- the layer that was affected by some kind of change in the
modelpublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, Collection<IRelationship> relationships)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventsrelationships
- the relationships that were removed or added to the modelpublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, ITimeSpan timeSpan)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventstimeSpan
- the time span that was affected by some kind of change in the
modelpublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, Object timelineObject, ITimeSpan timeSpan)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventstimelineObject
- the modified timeline objecttimeSpan
- the time span that was affected by some kind of change in the
modelpublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, TimelineObjectPath path)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventspath
- the timeline object path that was affected by some kind of
change in the modelpublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, Object node, ILayer layer, TimelineObjectPath[] timelineObjects)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventsnode
- the node that was affected by some kind of change in the modellayer
- the layer that was affected by some kind of change in the
modeltimelineObjects
- the timeline objects affected by some kind of change in the
modelpublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventspublic GanttChartModelEvent(IGanttChartModel model, GanttChartModelEvent.ID id, Object node, ITimeSpan timeSpan, Object spreadsheeetValue)
model
- the source of the eventid
- the identifier used to distinguish between different types of
eventsnode
- the tree node of the row where the cell was editedtimeSpan
- the time span for which a value was entered into the cellspreadsheeetValue
- the value that was entered into the cellpublic ILayer getLayer()
public ISpreadsheet getSpreadsheet()
public ITimeSpan getTimeSpan()
public IGanttChartModel getModel()
public GanttChartModelEvent.ID getId()
public Object getNode()
public Object getTimelineObject()
public TimelineObjectPath[] getTimelineObjectPaths()
public Collection<IRelationship> getRelationships()
public Object getSpreadsheetValue()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.