Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class FormatterInfo

java.lang.Object
  extended byoracle.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.
 
Method Summary
 java.lang.String getFormatterString()
           
 java.lang.Object getKey()
           
 void setFormatterString(java.lang.String formatterString)
           
 void setKey(java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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()

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.