|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FormatManager interface manages a list of Formatters.
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 specifying a key. |
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 thisKey,
Formatter withThisFormatter)
replace a Formatter. |
void |
setLocale(java.util.Locale thisLocale)
define locale to be used. |
Method Detail |
public void setLocale(java.util.Locale thisLocale) throws UnknownLocaleException
thisLocale
- locale to be used
UnknownLocaleException
- if the formatter does'nt support the
specified Locale.public java.util.Locale getLocale()
public java.lang.Object addFormatter(java.lang.String formatterPathName) throws java.lang.IllegalArgumentException
formatterPathName
- fully qualified path name of the formatter class.
java.lang.IllegalArgumentException
- when unable to dynamically load a class
identified by 'formatterPathName'.public void replaceFormatter(java.lang.Object thisKey, Formatter withThisFormatter) throws java.lang.IllegalArgumentException
thisKey
- value returned by addFormatterwithThisFormatter
- new Formatter to use
java.lang.IllegalArgumentException
public void removeFormatter(java.lang.Object key) throws java.lang.IllegalArgumentException
key
- identify which object to remove
java.lang.IllegalArgumentException
- when unable to find Formatter with this
keypublic void removeAllFormatters()
public Formatter getFormatter(java.lang.Object key) throws UnknownFormatterException
key
- key to retrieve the formatter object.
UnknownFormatterException
- when requested Formatter object not
found.public Formatter getFormatter(java.lang.Class forThisClassType) throws UnknownFormatterException
forThisClassType
- retrieve a formatter object to format data of this
class type.
UnknownFormatterException
- when requested Formatter object not
found.
|
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.