public class IlvActivityFormattedStartTimeProperty extends IlvFormattedTimeProperty
IlvActivityFormattedStartTimeProperty
is an adapter that allows
the start time of an IlvActivity
to be accessed via the generic
IlvStringProperty
interface._formatter
Constructor and Description |
---|
IlvActivityFormattedStartTimeProperty()
Constructs a new
IlvActivityFormattedStartTimeProperty with a
default DateFormat in the current locale. |
IlvActivityFormattedStartTimeProperty(DateFormat dateFormatter)
Constructs a new
IlvActivityFormattedStartTimeProperty with
the specified date formatter. |
IlvActivityFormattedStartTimeProperty(String pattern)
Constructs a new
IlvActivityFormattedStartTimeProperty with
a SimpleDateFormat which uses the specified formatting
string in the current locale. |
Modifier and Type | Method and Description |
---|---|
Class |
getEventClass()
Returns the class of events that are triggered by
activities when their start time changes value.
|
protected Object |
getValueImpl(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.
|
protected void |
setValueImpl(Object activity,
Object t)
Sets the specified
IlvActivity 's start time. |
setFormat, setFormat, setFormat, setFormat
changedRowsIterator, getFormat, getValue, setValue
public IlvActivityFormattedStartTimeProperty()
IlvActivityFormattedStartTimeProperty
with a
default DateFormat
in the current locale.public IlvActivityFormattedStartTimeProperty(DateFormat dateFormatter)
IlvActivityFormattedStartTimeProperty
with
the specified date formatter.dateFormatter
- The date formatter.public IlvActivityFormattedStartTimeProperty(String pattern)
IlvActivityFormattedStartTimeProperty
with
a SimpleDateFormat
which uses the specified formatting
string in the current locale.
Note: Not all locales support SimpleDateFormat
. For
for full generality it is preferable to explicitly create a DateFormat
using one of its factory methods.
pattern
- The SimpleDateFormat
formatting pattern.protected Object getValueImpl(Object activity)
IlvActivity
's start time.getValueImpl
in class IlvAbstractStringProperty
activity
- The activity.IlvAbstractStringProperty.getValue(java.lang.Object)
protected void setValueImpl(Object activity, Object t)
IlvActivity
's start time.setValueImpl
in class IlvAbstractStringProperty
activity
- The activity.t
- The activity's new start time.IlvAbstractStringProperty.setValue(java.lang.Object, java.lang.String)
public Class getEventClass()
public boolean isPropertyChangedEvent(EventObject event)
isPropertyChangedEvent
in interface IlvProperty
isPropertyChangedEvent
in class IlvAbstractStringProperty
event
- The event.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.