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, setValue
public 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 IlvAbstractStringProperty
formatter
- The duration formatter.IllegalArgumentException
- if formatter
is not an
IlvDurationFormat
.IlvAbstractStringProperty.getFormat()
protected Object getValueImpl(Object activity)
IlvActivity
's duration.getValueImpl
in class IlvAbstractStringProperty
activity
- The activity.IlvAbstractStringProperty.getValue(java.lang.Object)
protected void setValueImpl(Object activity, Object duration)
IlvActivity
's duration.setValueImpl
in class IlvAbstractStringProperty
activity
- 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 IlvProperty
isPropertyChangedEvent
in class IlvAbstractStringProperty
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.