oracle.dacf.dataset
Class FormatterInfo
java.lang.Object
|
+--oracle.dacf.dataset.FormatterInfo
- public class FormatterInfo
- extends java.lang.Object
FormatterInfo is a helper class that is used by bean property editors to
define how data is formatted on controls. FormatterInfo
identifies a key and a formatter string. The key performs two roles. It
identifies which formatter to use to format the data and it passes the
formatter string to a consumer: typically, an AttributeInfo.
The formatter string identifies the code to define how the raw data should
be formatted. An example of a key would be
DefaultDateFormatter
and an example of a
formatter string would be dd/mm/yyyy.
The oracle.dacf.formatter package defines several default formatters.
You can subclass the Formatter
class
to define you own formatters.
- See Also:
- oracle.dacf.formatter,
FormatManager
,
Formatter
,
AttributeInfo
Constructor Summary |
FormatterInfo(java.lang.Object key,
java.lang.String formatterString)
Constructor requiring a key an a formatter string parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatterInfo
public FormatterInfo(java.lang.Object key,
java.lang.String formatterString)
- Constructor requiring a key an a formatter string parameter.
- Parameters:
key
- name of the formatter to use to format the data.formatterString
- code to define how the raw data should
be formatted.
setKey
public void setKey(java.lang.Object key)
getKey
public java.lang.Object getKey()
setFormatterString
public void setFormatterString(java.lang.String formatterString)
getFormatterString
public java.lang.String getFormatterString()