Save This Page
Home » openjdk-7 » java » text » [javadoc | source]
java.text
interface: Format.FieldDelegate [javadoc | source]

All Known Implementing Classes:
    Delegate, CharacterIteratorFieldDelegate

FieldDelegate is notified by the various Format implementations as they are formatting the Objects. This allows for storage of the individual sections of the formatted String for later use, such as in a FieldPosition or for an AttributedCharacterIterator.

Delegates should NOT assume that the Format will notify the delegate of fields in any particular order.

Method from java.text.Format$FieldDelegate Summary:
formatted,   formatted
Method from java.text.Format$FieldDelegate Detail:
 public  void formatted(Format.Field attr,
    Object value,
    int start,
    int end,
    StringBuffer buffer)
    Notified when a particular region of the String is formatted. This method will be invoked if there is no corresponding integer field id matching attr.
 public  void formatted(int fieldID,
    Format.Field attr,
    Object value,
    int start,
    int end,
    StringBuffer buffer)
    Notified when a particular region of the String is formatted.