public class IlvTableReservation extends IlvAbstractReservation implements IlvUserPropertyHolder
IlvAbstractReservation
implementation that
works with an IlvTableGanttModel
.IlvTableGanttModel.configureHierarchyChart(IlvHierarchyChart)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
ACTIVITY_ID_PROPERTY
Identifies the activity ID property of the reservation.
|
static String |
ACTIVITY_PROPERTY
Identifies the activity property of the reservation.
|
static String |
RESOURCE_ID_PROPERTY
Identifies the resource ID property of the reservation.
|
static String |
RESOURCE_PROPERTY
Identifies the resource property of the reservation.
|
Constructor and Description |
---|
IlvTableReservation(IlvResource resource,
IlvActivity activity)
Creates a new
IlvTableReservation from the specified activity
and resource. |
Modifier and Type | Method and Description |
---|---|
IlvActivity |
getActivity()
Returns the activity for this reservation.
|
Object |
getProperty(String property)
Returns the value of a user-defined property or
null if the
property does not exist. |
IlvResource |
getResource()
Returns the resource for this reservation.
|
boolean |
isUserProperty(String name)
Returns
true if the property is a user-defined property. |
Iterator<String> |
propertyNameIterator()
Returns an iterator over all the property names of the object.
|
Object |
setProperty(String property,
Object value)
Stores a user-defined property in the property table of this resource.
|
void |
setResource(IlvResource resource)
Sets the resource of this reservation.
|
fireEvent, fireReservedResourceAboutToChange, fireReservedResourceChanged, getGanttModel, paramString, setGanttModelImpl, toString
public static final String ACTIVITY_PROPERTY
activity
.public static final String RESOURCE_PROPERTY
resource
.public static final String ACTIVITY_ID_PROPERTY
activityID
.public static final String RESOURCE_ID_PROPERTY
resourceID
.public IlvTableReservation(IlvResource resource, IlvActivity activity)
IlvTableReservation
from the specified activity
and resource.resource
- The resource of the reservation.activity
- The activity of the reservation.public IlvActivity getActivity()
getActivity
in interface IlvReservation
public IlvResource getResource()
getResource
in interface IlvReservation
public void setResource(IlvResource resource)
setResource
in interface IlvReservation
resource
- The resource.ReservationEvent
,
ReservationListener.reservationChanged(ilog.views.gantt.event.ReservationEvent)
public Object getProperty(String property)
null
if the
property does not exist.getProperty
in interface IlvUserPropertyHolder
property
- The name of the property.null
if the property
does not exist.setProperty(java.lang.String, java.lang.Object)
,
propertyNameIterator()
public Object setProperty(String property, Object value)
setProperty
in interface IlvUserPropertyHolder
property
- The name of the property.value
- The value of the property. If the value is
null
then the property is removed.getProperty(java.lang.String)
,
propertyNameIterator()
public Iterator<String> propertyNameIterator()
propertyNameIterator
in interface IlvUserPropertyHolder
public boolean isUserProperty(String name)
true
if the property is a user-defined property.isUserProperty
in interface IlvUserPropertyHolder
name
- The name of the property.true
if the property is a user-defined property,
false
otherwise.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.