public class IlvActivityFormattedDurationProperty extends IlvAbstractStringProperty
IlvActivityFormattedDurationProperty is an adapter that allows
the time duration of an IlvActivity to be accessed via the generic
IlvStringProperty interface._formatter| Constructor and Description |
|---|
IlvActivityFormattedDurationProperty()
Creates an
IlvActivityFormattedDurationProperty with a default
duration format of IlvDurationFormat.LARGEST_UNIT_MEDIUM. |
IlvActivityFormattedDurationProperty(IlvDurationFormat durationFormat)
Creates an
IlvActivityFormattedDurationProperty with the
specified duration format. |
| Modifier and Type | Method and Description |
|---|---|
Class |
getEventClass()
Returns the class of events that are triggered by
activities when their duration changes value.
|
protected Object |
getValueImpl(Object activity)
Returns the specified
IlvActivity's duration. |
boolean |
isPropertyChangedEvent(EventObject event)
Returns whether the specified event is a changed event for
this property.
|
void |
setFormat(Format formatter)
Sets the formatter that will be used to convert the duration property
represented by this adapter to/from a string.
|
protected void |
setValueImpl(Object activity,
Object duration)
Sets the specified
IlvActivity's duration. |
changedRowsIterator, getFormat, getValue, setValuepublic IlvActivityFormattedDurationProperty(IlvDurationFormat durationFormat)
IlvActivityFormattedDurationProperty with the
specified duration format.durationFormat - The duration format.public IlvActivityFormattedDurationProperty()
IlvActivityFormattedDurationProperty with a default
duration format of IlvDurationFormat.LARGEST_UNIT_MEDIUM.public void setFormat(Format formatter)
formatter
must be an IlvDurationFormat instance.setFormat in class IlvAbstractStringPropertyformatter - The duration formatter.IllegalArgumentException - if formatter is not an
IlvDurationFormat.IlvAbstractStringProperty.getFormat()protected Object getValueImpl(Object activity)
IlvActivity's duration.getValueImpl in class IlvAbstractStringPropertyactivity - The activity.IlvAbstractStringProperty.getValue(java.lang.Object)protected void setValueImpl(Object activity, Object duration)
IlvActivity's duration.setValueImpl in class IlvAbstractStringPropertyactivity - The activity.duration - The activity's new duration.IlvAbstractStringProperty.setValue(java.lang.Object, java.lang.String)public Class getEventClass()
public boolean isPropertyChangedEvent(EventObject event)
isPropertyChangedEvent in interface IlvPropertyisPropertyChangedEvent in class IlvAbstractStringProperty© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.