public class IlvActivityStartTimeProperty extends Object implements IlvTimeProperty
IlvActivityStartTimeProperty is an adapter that allows the
start time of an IlvActivity to be accessed via the generic
IlvTimeProperty interface.| Constructor and Description |
|---|
IlvActivityStartTimeProperty()
Creates an
IlvActivityStartTimeProperty. |
| 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 start time changes value.
|
static IlvActivityStartTimeProperty |
getInstance()
Returns a singleton instance of this class.
|
Date |
getValue(Object activity)
Returns the specified
IlvActivity's start 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 start time. |
public IlvActivityStartTimeProperty()
IlvActivityStartTimeProperty.public static IlvActivityStartTimeProperty getInstance()
public Date getValue(Object activity)
IlvActivity's start time.getValue in interface IlvPropertygetValue in interface IlvTimePropertyactivity - the activitypublic void setValue(Object activity, Object t)
IlvActivity's start time. The start time
can be any of the types supported by IlvTimeUtil.coerce().setValue in interface IlvTimePropertyactivity - the activityt - the activity's new start time. t must be coercible
to a Date, otherwise an IllegalArgumentException
will be thrown.IlvTimeUtil.coerce(java.lang.Object)public Class getEventClass()
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.