public class ReservationUserPropertyEvent extends ReservationPropertyEvent
ReservationUserPropertyEvent
is fired by an
IlvGeneralReservation
both before and after a
user-defined property is modified
.
Immediately before a property is modified, an
IlvGeneralReservation
fires an aboutToChange
ReservationUserPropertyEvent
to all
listeners
registered with the Gantt data model
.
Listeners can modify or constrain the proposed property change by calling
setNewValue(java.lang.Object)
. Alternatively, a listener can veto the proposed change
by calling IlvPropertyEvent.veto()
. If the property change is not vetoed, then
IlvGeneralReservation
will apply the change and fire a
changed ReservationUserPropertyEvent
to all listeners
registered with the Gantt data model.source
Constructor and Description |
---|
ReservationUserPropertyEvent(IlvReservation reservation,
String property,
Object oldValue,
Object newValue,
boolean aboutToChangeEvent)
Creates a new
ReservationUserPropertyEvent generated by the
specified reservation. |
Modifier and Type | Method and Description |
---|---|
Object |
getNewValue()
Returns the new value of the property.
|
Object |
getOldValue()
Returns the old value of the property.
|
String |
getPropertyName()
Returns the name of the property that has been modified.
|
void |
setNewValue(Object newValue)
Sets the proposed new value of the property.
|
getReservation
isAboutToChangeEvent, isChangedEvent, isVetoed, veto
getSource, toString
public ReservationUserPropertyEvent(IlvReservation reservation, String property, Object oldValue, Object newValue, boolean aboutToChangeEvent)
ReservationUserPropertyEvent
generated by the
specified reservation.reservation
- The reservation where the event originated.property
- The name of the property.oldValue
- The property's previous value.newValue
- The property's new value.aboutToChangeEvent
- true
if this is a property
aboutToChange event or false
if this is a property
changed event.public String getPropertyName()
public final Object getOldValue()
getOldValue
in class IlvPropertyEvent
public Object getNewValue()
getNewValue
in class IlvPropertyEvent
public void setNewValue(Object newValue)
setNewValue
in class IlvPropertyEvent
newValue
- The new value of the property.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.