|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
FieldPosition.Delegate
,
CharacterIteratorFieldDelegate
Method Summary | |
void |
formatted(Format.Field attr,
Object value,
int start,
int end,
StringBuffer buffer)
Notified when a particular region of the String is formatted. |
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. |
Method Detail |
public void formatted(Format.Field attr, Object value, int start, int end, StringBuffer buffer)
attr
.
attr
- Identifies the field matchedvalue
- Value associated with the fieldstart
- Beginning location of the field, will be >= 0end
- End of the field, will be >= start and <= buffer.length()buffer
- Contains current formatted value, receiver should
NOT modify it.public void formatted(int fieldID, Format.Field attr, Object value, int start, int end, StringBuffer buffer)
fieldID
- Identifies the field by integerattr
- Identifies the field matchedvalue
- Value associated with the fieldstart
- Beginning location of the field, will be >= 0end
- End of the field, will be >= start and <= buffer.length()buffer
- Contains current formatted value, receiver should
NOT modify it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |