public class IlvActivityEndTimeProperty extends Object implements IlvTimeProperty
IlvActivityEndTimeProperty is an adapter that allows the
end time of an IlvActivity to be accessed via the generic
IlvTimeProperty interface.| Constructor and Description |
|---|
IlvActivityEndTimeProperty()
Constructs a new
IlvActivityEndTimeProperty. |
| Modifier and Type | Method and Description |
|---|---|
Iterator<IlvHierarchyNode> |
changedRowsIterator(EventObject event)
Returns an iterator over the activities or resources that the specified
event reports have changed with respect to this property.
|
Class |
getEventClass()
Returns the class of events that are triggered by
activities when their end time changes value. |
static IlvActivityEndTimeProperty |
getInstance()
Returns a singleton instance of this class.
|
Date |
getValue(Object activity)
Returns the specified
IlvActivity's end time. |
boolean |
isPropertyChangedEvent(EventObject event)
Returns whether the specified event is a changed event for
this property.
|
void |
setValue(Object activity,
Object t)
Sets the specified
IlvActivity's end time. |
public IlvActivityEndTimeProperty()
IlvActivityEndTimeProperty.public static IlvActivityEndTimeProperty getInstance()
public Date getValue(Object activity)
IlvActivity's end time.getValue in interface IlvPropertygetValue in interface IlvTimePropertyactivity - The activity.public void setValue(Object activity, Object t)
IlvActivity's end time. The end time
can be any of the types supported by the IlvTimeUtil.coerce(java.lang.Object) method.setValue in interface IlvTimePropertyactivity - The activity.t - The activity's new end time. t must be coercible
to a Date, otherwise an IllegalArgumentException
will be thrown.IllegalArgumentException - if t cannot be coerced
to a Date according to the IlvTimeUtil.coerce(java.lang.Object) method.IlvTimeUtil.coerce(java.lang.Object)public Class getEventClass()
activities when their end time changes value.getEventClass in interface IlvPropertypublic boolean isPropertyChangedEvent(EventObject event)
isPropertyChangedEvent in interface IlvPropertypublic Iterator<IlvHierarchyNode> changedRowsIterator(EventObject event)
IlvActivityNameProperty and event is an
ActivityNameEvent, then
this method returns an iterator over the single activity that fired the
event.
The default implementation returns an iterator over event's
source if event is a property changed event. This
implementation is suitable for an activity or resource property that fires
a specific IlvPropertyEvent subclass when its value changes.
Subclasses should override this method as necessary.
changedRowsIterator in interface IlvProperty© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.