public class GanttModelChangedEvent extends IlvPropertyEvent
GanttModelChangedEvent
is fired by a chart
both before and after the gantt model has
been set. Note, that this event does not indicate that some aspect
of the model has changed. Rather, it indicates that the data model has been
replaced by an entirely new one.source
Constructor and Description |
---|
GanttModelChangedEvent(Object source,
IlvGanttModel oldModel,
IlvGanttModel newModel,
boolean aboutToChangeEvent)
Constructs a new
GanttModelChangedEvent generated
by the specified source and with the specified old and new
data models. |
Modifier and Type | Method and Description |
---|---|
IlvGanttConfiguration |
getGanttConfiguration()
Returns the Gantt configuration where this event originated.
|
IlvGanttModel |
getNewGanttModel()
Returns the gantt configuration's new data model.
|
IlvGanttModel |
getOldGanttModel()
Returns the gantt configuration's old data model.
|
void |
setNewGanttModel(IlvGanttModel ganttModel)
Sets the gantt configuration's proposed new data model.
|
getNewValue, getOldValue, isAboutToChangeEvent, isChangedEvent, isVetoed, setNewValue, veto
getSource, toString
public GanttModelChangedEvent(Object source, IlvGanttModel oldModel, IlvGanttModel newModel, boolean aboutToChangeEvent)
GanttModelChangedEvent
generated
by the specified source and with the specified old and new
data models.source
- Where the event originated.oldModel
- The previous data model.newModel
- The new data model.aboutToChangeEvent
- true
if this is an
aboutToChange event or false
if this
is a changed event.public IlvGanttConfiguration getGanttConfiguration()
IlvGanttConfiguration
where this event originated
or null
if the source of the event was not a Gantt
configuration.public IlvGanttModel getOldGanttModel()
IlvGanttModel
.public IlvGanttModel getNewGanttModel()
IlvGanttModel
.public void setNewGanttModel(IlvGanttModel ganttModel)
ganttModel
- the data model© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.