public class IlvActivityReservationsProperty extends Object implements IlvStringProperty
IlvActivityReservationsProperty
is an adapter that allows an
IlvActivity's
list of reserved resources to be accessed
via the generic IlvStringProperty
interface.Constructor and Description |
---|
IlvActivityReservationsProperty(IlvHierarchyChart chart)
Creates a new
IlvActivityReservationsProperty that will
format a comma-separated list of reserved resource IDs for an activity. |
IlvActivityReservationsProperty(IlvHierarchyChart chart,
IlvStringProperty resourceProperty)
Creates a new
IlvActivityReservationsProperty that will
format a comma-separated list of reserved resources for an activity. |
Modifier and Type | Method and Description |
---|---|
Iterator<IlvHierarchyNode> |
changedRowsIterator(EventObject event)
Returns an iterator over the activities that the specified
event reports have changed with respect to this property.
|
Class |
getEventClass()
Returns the class of events that are triggered when an activity's list
of reserved resources changes value.
|
IlvListFormat |
getListFormat()
Returns the list formatter used to format the list of resources for an
activity.
|
Comparator<IlvReservation> |
getSortingCriterion()
Returns the sorting criterion for the reservations belonging to a single
activity.
|
String |
getValue(Object activity)
Returns the specified
IlvActivity 's list of reserved resources. |
boolean |
isPropertyChangedEvent(EventObject event)
Returns whether the specified event is a changed event for
this property.
|
void |
setListFormat(IlvListFormat listFormat)
Sets the list formatter used to format the list of resources for an
activity.
|
void |
setSortingCriterion(Comparator<IlvReservation> sortingCriterion)
Sets the sorting criterion for the reservations belonging to a single
activity, as reported by
getValue(Object) . |
void |
setValue(Object activity,
String s)
Sets the specified
IlvActivity 's list of reserved resources. |
public IlvActivityReservationsProperty(IlvHierarchyChart chart, IlvStringProperty resourceProperty)
IlvActivityReservationsProperty
that will
format a comma-separated list of reserved resources for an activity. Each
resource in the list is formatted using the specified resourceProperty
.chart
- The chart that will be using this property.resourceProperty
- The format of each resource in the list.public IlvActivityReservationsProperty(IlvHierarchyChart chart)
IlvActivityReservationsProperty
that will
format a comma-separated list of reserved resource IDs for an activity.chart
- The chart that will be using this property.public Comparator<IlvReservation> getSortingCriterion()
setSortingCriterion(Comparator)
,
getValue(Object)
public void setSortingCriterion(Comparator<IlvReservation> sortingCriterion)
getValue(Object)
.
The default sorting criterion sorts the strings produced by the
resourceProperty
in ascending order.
sortingCriterion
- A sorting criterion that compares two
reservations, or null
for no sorting
at all (random order of resources).getSortingCriterion()
public IlvListFormat getListFormat()
setListFormat(IlvListFormat)
,
getValue(Object)
public void setListFormat(IlvListFormat listFormat)
getListFormat()
public String getValue(Object activity)
IlvActivity
's list of reserved resources.getValue
in interface IlvProperty
getValue
in interface IlvStringProperty
activity
- The activity.getSortingCriterion()
,
getListFormat()
public void setValue(Object activity, String s) throws ParseException
IlvActivity
's list of reserved resources.setValue
in interface IlvStringProperty
activity
- the activitys
- the new name for the activityParseException
- if the specified string is invalidpublic Class getEventClass()
getEventClass
in interface IlvProperty
public boolean isPropertyChangedEvent(EventObject event)
isPropertyChangedEvent
in interface IlvProperty
event
- The event.public Iterator<IlvHierarchyNode> changedRowsIterator(EventObject event)
changedRowsIterator
in interface IlvProperty
event
- The event.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.