public abstract class IlvAbstractReservation extends Object implements IlvReservation, Serializable
IlvAbstractReservation
is the superclass of all
IlvReservation
implementations. It provides a basic
framework of event and property support that can be used by all concrete
subclasses. All reservation events are routed to the Gantt data model where
interested listeners can register. Reservations do not handle
listener subscription and notification directly. Subclasses should always use
the method fireEvent(ilog.views.gantt.event.ReservationEvent)
to fire ReservationEvent
instances so
that generated events will be routed properly.Constructor and Description |
---|
IlvAbstractReservation()
Creates a new
IlvAbstractReservation . |
Modifier and Type | Method and Description |
---|---|
protected void |
fireEvent(ReservationEvent event)
Fires an event from this reservation.
|
protected ReservedResourceEvent |
fireReservedResourceAboutToChange(IlvResource newResource)
Fires a
reservedResourceAboutToChange event and returns the
event after dispatching it to all listeners. |
protected void |
fireReservedResourceChanged(IlvResource oldResource)
Fires a
reservedResourceChanged event. |
protected IlvGanttModel |
getGanttModel()
Returns the data model that is managing this reservation.
|
protected String |
paramString()
Returns a parameter string that represents the state of this reservation.
|
void |
setGanttModelImpl(IlvGanttModel model)
This method is invoked by the
IlvGanttModel when the reservation
is added or removed. |
String |
toString()
Returns a string representation of this reservation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActivity, getResource, setResource
public IlvAbstractReservation()
IlvAbstractReservation
.protected IlvGanttModel getGanttModel()
null
if this reservation has not been added to a
data model yet.public void setGanttModelImpl(IlvGanttModel model)
IlvGanttModel
when the reservation
is added or removed.
Warning: This method is considered to be part of an
IlvReservation
's internal implementation and is not a public
API.
You should only invoke this method directly if you have created your own
IlvGanttModel
implementation.
setGanttModelImpl
in interface IlvReservation
model
- The data model that this reservation has been added to, or
null
if this reservation has been removed from the data model.protected final void fireEvent(ReservationEvent event)
event
- The reservation event.protected ReservedResourceEvent fireReservedResourceAboutToChange(IlvResource newResource)
reservedResourceAboutToChange
event and returns the
event after dispatching it to all listeners.newResource
- The new resource reserved for the activity.ReservedResourceEvent
protected void fireReservedResourceChanged(IlvResource oldResource)
reservedResourceChanged
event.oldResource
- The resource previously reserved for the activity.ReservedResourceEvent
protected String paramString()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.