public abstract class IlvFormattedTimeProperty extends IlvAbstractStringProperty
IlvFormattedTimeProperty
is an abstract adapter, whose
subclasses allow a Date
property of arbitrary objects
to be accessed as a String
through the generic
IlvStringProperty
interface._formatter
Constructor and Description |
---|
IlvFormattedTimeProperty()
Constructs a new
IlvFormattedTimeProperty with a
default DateFormat in the current locale. |
IlvFormattedTimeProperty(DateFormat dateFormatter)
Constructs a new
IlvFormattedTimeProperty with the
specified date formatter. |
IlvFormattedTimeProperty(Locale locale)
Deprecated.
This method ignores the calendar specification in the
ULocale . Please use
IlvFormattedTimeProperty(ULocale) instead. |
IlvFormattedTimeProperty(String pattern)
Constructs a new
IlvFormattedTimeProperty with
a SimpleDateFormat that uses the specified
formatting string in the current locale. |
IlvFormattedTimeProperty(String pattern,
Locale locale)
Deprecated.
This method ignores the calendar specification in the
ULocale . Please use
IlvFormattedTimeProperty(String, ULocale) instead. |
IlvFormattedTimeProperty(String pattern,
ULocale locale)
Constructs a new
IlvFormattedTimeProperty with
a SimpleDateFormat that uses the specified
formatting string in the current locale. |
IlvFormattedTimeProperty(ULocale locale)
Constructs a new
IlvFormattedTimeProperty with a
default DateFormat in the given locale. |
Modifier and Type | Method and Description |
---|---|
void |
setFormat(Format formatter)
Sets the formatter that will be used to convert the property represented
by this adapter to/from a string.
|
void |
setFormat(String pattern)
Sets the adapter formatter to be a date format that uses the specified
SimpleDateFormat formatting string in the
current locale. |
void |
setFormat(String pattern,
Locale locale)
Deprecated.
This method ignores the calendar specification in the
ULocale . Please use
setFormat(String, ULocale) instead. |
void |
setFormat(String pattern,
ULocale locale)
Sets the adapter formatter to be a date format that uses the specified
SimpleDateFormat formatting string in the
given locale. |
changedRowsIterator, getFormat, getValue, getValueImpl, isPropertyChangedEvent, setValue, setValueImpl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventClass
public IlvFormattedTimeProperty()
IlvFormattedTimeProperty
with a
default DateFormat
in the current locale.@Deprecated public IlvFormattedTimeProperty(Locale locale)
ULocale
. Please use
IlvFormattedTimeProperty(ULocale)
instead.IlvFormattedTimeProperty
with a
default DateFormat
in the given locale.locale
- A locale.public IlvFormattedTimeProperty(ULocale locale)
IlvFormattedTimeProperty
with a
default DateFormat
in the given locale.locale
- A locale.public IlvFormattedTimeProperty(DateFormat dateFormatter)
IlvFormattedTimeProperty
with the
specified date formatter.dateFormatter
- The date formatter.public IlvFormattedTimeProperty(String pattern)
IlvFormattedTimeProperty
with
a SimpleDateFormat
that uses the specified
formatting string in the current locale.
Note: Not all locales support SimpleDateFormat
. For
full generality it is preferable to explicitly create a DateFormat
using one of the IlvDateFormatFactory
factory methods.
pattern
- The SimpleDateFormat
formatting pattern.@Deprecated public IlvFormattedTimeProperty(String pattern, Locale locale)
ULocale
. Please use
IlvFormattedTimeProperty(String, ULocale)
instead.IlvFormattedTimeProperty
with
a SimpleDateFormat
that uses the specified
formatting string in the current locale.
Note: Not all locales support SimpleDateFormat
. For
full generality it is preferable to explicitly create a DateFormat
using one of the IlvDateFormatFactory
factory methods.
pattern
- The SimpleDateFormat
formatting pattern.locale
- A locale.public IlvFormattedTimeProperty(String pattern, ULocale locale)
IlvFormattedTimeProperty
with
a SimpleDateFormat
that uses the specified
formatting string in the current locale.
Note: Not all locales support SimpleDateFormat
. For
full generality it is preferable to explicitly create a DateFormat
using one of the IlvDateFormatFactory
factory methods.
pattern
- The SimpleDateFormat
formatting pattern.locale
- A locale.public void setFormat(Format formatter)
formatter
must be a DateFormat
instance.setFormat
in class IlvAbstractStringProperty
formatter
- The date formatter.IllegalArgumentException
- if formatter
is not a
DateFormat
.IlvAbstractStringProperty.getFormat()
public void setFormat(String pattern)
SimpleDateFormat
formatting string in the
current locale.pattern
- The SimpleDateFormat
formatting pattern.@Deprecated public void setFormat(String pattern, Locale locale)
ULocale
. Please use
setFormat(String, ULocale)
instead.SimpleDateFormat
formatting string in the
given locale.pattern
- The SimpleDateFormat
formatting pattern.locale
- A locale.public void setFormat(String pattern, ULocale locale)
SimpleDateFormat
formatting string in the
given locale.pattern
- The SimpleDateFormat
formatting pattern.locale
- A locale.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.