|
Oracle Data-aware Controls Reference | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.dacf.formatter.DefaultFormatManager
This class manages a set of data formatter's.
| Field Summary | |
static java.lang.Object |
CURRENCY_VALUE
format currency values |
static java.lang.Object |
DATE_VALUE
format Date values |
static java.lang.Object |
MESSAGE_FORMATTER
generic formatter |
static java.lang.Object |
NUMERIC_VALUE
format numeric values |
static java.lang.Object |
PERCENTAGE_VALUE
format percentage values |
| Method Summary | |
java.lang.Object |
addFormatter(java.lang.String formatterPathName)
adds a Formatter object to the list of formatter's maintained. |
Formatter |
getFormatter(java.lang.Class forThisClassType)
retrieve a Formatter by class type |
Formatter |
getFormatter(java.lang.Object key)
retrieve a Formatter by key name. |
java.lang.Object |
getFormatterKey(Formatter theFormatter)
get Key used for a particular Formatter |
static DefaultFormatManager |
getInstance()
DefaultFormatManager is implemented as a singleton and cannot be instantiated directly. |
static DefaultFormatManager |
getInstance(java.util.Locale thisLocale)
return an instance of Formatter to format data in a locale specific manner |
java.util.Locale |
getLocale()
get Locale currently in use |
void |
removeAllFormatters()
remove all Formatter objects maintained by this manager |
void |
removeFormatter(java.lang.Object key)
remove a Formatter object. |
void |
replaceFormatter(java.lang.Object forThisKey,
Formatter withThisFormatter)
replace a Formatter. |
void |
setLocale(java.util.Locale thisLocale)
define locale to be used. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.Object DATE_VALUE
public static final java.lang.Object NUMERIC_VALUE
public static final java.lang.Object CURRENCY_VALUE
public static final java.lang.Object PERCENTAGE_VALUE
public static final java.lang.Object MESSAGE_FORMATTER
| Method Detail |
public static DefaultFormatManager getInstance()
public static DefaultFormatManager getInstance(java.util.Locale thisLocale)
public void setLocale(java.util.Locale thisLocale)
throws UnknownLocaleException
setLocale in interface FormatManagerthisLocale - locale to be used
UnknownLocaleException - if the formatter does'nt support the
specified Locale.public java.util.Locale getLocale()
getLocale in interface FormatManager
public Formatter getFormatter(java.lang.Object key)
throws UnknownFormatterException
getFormatter in interface FormatManagerkey - This could be one of the following values or value returned
by an earlier addFormatter call
UnknownFormatterException - when requested Formatter object not
found.
public Formatter getFormatter(java.lang.Class forThisClassType)
throws UnknownFormatterException
getFormatter in interface FormatManagerforThisClassType - retrieve a formatter object to format data of this
class type.
UnknownFormatterException - when requested Formatter object not
found.
public java.lang.Object addFormatter(java.lang.String formatterPathName)
throws java.lang.IllegalArgumentException
addFormatter in interface FormatManagerformatterPathName - fully qualified path name of the formatter class.
java.lang.IllegalArgumentException - when unable to dynamically load a
class identified by 'formatterPathName'.
public void removeFormatter(java.lang.Object key)
throws java.lang.IllegalArgumentException
removeFormatter in interface FormatManagerkey - identify which object to remove
java.lang.IllegalArgumentException - when unable to dynamically load a
class identified by 'formatterPathName'.public void removeAllFormatters()
removeAllFormatters in interface FormatManager
public void replaceFormatter(java.lang.Object forThisKey,
Formatter withThisFormatter)
throws java.lang.IllegalArgumentException
replaceFormatter in interface FormatManagerforThisKey - value returned by addFormatterwithThisFormatter - new Formatter to use
java.lang.IllegalArgumentExceptionpublic java.lang.Object getFormatterKey(Formatter theFormatter)
|
Oracle Data-aware Controls Reference | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2003, Oracle. All rights reserved.