public class ReservationRemovedEvent extends EventObject implements ReservationEvent
ReservationRemovedEvent is used to notify
ReservationListeners when a reservation has been removed
from an IlvGanttModel.| Modifier and Type | Field and Description |
|---|---|
static int |
REMOVING_ACTIVITY
Indicates that the reservation was removed as a side effect of an
activity removal.
|
static int |
REMOVING_NONE
Indicates that the reservation was not removed as a side effect of an
activity or resource removal.
|
static int |
REMOVING_RESOURCE
Indicates that the reservation was removed as a side effect of a
resource removal.
|
source| Constructor and Description |
|---|
ReservationRemovedEvent(IlvGanttModel model,
IlvReservation reservation)
Constructs a new
ReservationRemovedEvent generated by the
specified data model that can be used to notify listeners when a
reservation has been removed from a Gantt data model. |
ReservationRemovedEvent(IlvGanttModel model,
IlvReservation reservation,
int removingEntity)
Constructs a new
ReservationRemovedEvent generated by the
specified data model that can be used to notify listeners when a
reservation has been removed from a Gantt data model. |
| Modifier and Type | Method and Description |
|---|---|
IlvGanttModel |
getGanttModel()
Returns the data model where the event originated.
|
IlvReservation |
getReservation()
Returns the reservation that was removed.
|
boolean |
isRemovingActivity()
Returns whether the reservation was removed as the side effect of removing
an activity from the data model.
|
boolean |
isRemovingResource()
Returns whether the reservation was removed as the side effect of removing
a resource from the data model.
|
getSource, toStringpublic static final int REMOVING_NONE
public static final int REMOVING_ACTIVITY
public static final int REMOVING_RESOURCE
public ReservationRemovedEvent(IlvGanttModel model, IlvReservation reservation, int removingEntity)
ReservationRemovedEvent generated by the
specified data model that can be used to notify listeners when a
reservation has been removed from a Gantt data model.model - The data model where the event originated.reservation - The reservation that was removed from model.removingEntity - Indicates whether the reservation was removed as the
side effect of removing an activity or resource from the data model. The
value should be set to REMOVING_ACTIVITY when reservations are
removed by the
IlvGanttModel.setRootActivity(ilog.views.gantt.IlvActivity),
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity), or
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity,int)
methods.
The value should be REMOVING_RESOURCE when reservations are
removed by the
IlvGanttModel.setRootResource(ilog.views.gantt.IlvResource),
IlvGanttModel.removeResource(ilog.views.gantt.IlvResource), or
IlvGanttModel.removeResource(ilog.views.gantt.IlvResource,int)
methods.
The value should be REMOVING_NONE at all other times.public ReservationRemovedEvent(IlvGanttModel model, IlvReservation reservation)
ReservationRemovedEvent generated by the
specified data model that can be used to notify listeners when a
reservation has been removed from a Gantt data model. The event indicates
that the reservation was not removed as a side effect of an activity or
resource removal.model - The data model where the event originated.reservation - The reservation that was removed from model.public IlvGanttModel getGanttModel()
IlvGanttModel where this event originated.public IlvReservation getReservation()
getReservation in interface ReservationEventIlvReservation which was removed.public boolean isRemovingActivity()
true if the
reservation was removed by the
IlvGanttModel.setRootActivity(ilog.views.gantt.IlvActivity),
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity), or
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity,int)
methods.
The value will be false at all other times.public boolean isRemovingResource()
true if the
reservation was removed by the
IlvGanttModel.setRootResource(ilog.views.gantt.IlvResource),
IlvGanttModel.removeResource(ilog.views.gantt.IlvResource), or
IlvGanttModel.removeResource(ilog.views.gantt.IlvResource,int)
methods. The value will be false at all other times.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.