|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is a base interface for objects that contain Fields.
| Method Summary | |
BinaryField |
addBinaryField(String name,
String type,
byte[] value,
UndoableEditListener undoListener)
Add a binary field. |
BinaryListField |
addBinaryListField(String name,
UndoableEditListener undoListener)
Add a binary list field. |
StringField |
addStringField(String name,
String str,
UndoableEditListener undoListener)
Add a string field. |
StringListField |
addStringListField(String name,
UndoableEditListener undoListener)
Add a string list field. |
int |
getFieldCount()
Get the number of fields. |
Field |
getNamedField(String name)
Search for the field with the given name. |
Field |
getNextField(Field reference)
Get the next field following reference. |
Field |
getNthField(int n)
Get the nth field |
Field |
getPreviousField(Field reference)
Get the previous field preceding reference. |
void |
removeField(Field field,
UndoableEditListener undoListener)
Remove a Field. |
| Method Detail |
public int getFieldCount()
public Field getNthField(int n)
n - index
public Field getNextField(Field reference)
reference - reference Field
IllegalArgumentException - reference is not a memberpublic Field getPreviousField(Field reference)
reference - reference Field
IllegalArgumentException - reference is not a memberpublic Field getNamedField(String name)
name - name to search for
NullPointerException - name is null
public StringField addStringField(String name,
String str,
UndoableEditListener undoListener)
name - name String. The empty string is not an acceptable name.str - value String. The empty string is acceptable.undoListener - listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
NullPointerException - name or str was null
IllegalArgumentException - name was the empty string
public StringListField addStringListField(String name,
UndoableEditListener undoListener)
name - name String. The empty string is not an acceptable name.undoListener - listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
NullPointerException - name or str was null
IllegalArgumentException - name was the empty string
public BinaryField addBinaryField(String name,
String type,
byte[] value,
UndoableEditListener undoListener)
name - name String. The empty string is not an acceptable name.type - data type String. The empty string is acceptable.value - initial value of the field. May be null, in which case the value will be
set to the empty array.undoListener - listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
NullPointerException - name, str or type was null
IllegalArgumentException - name was the empty string
public BinaryListField addBinaryListField(String name,
UndoableEditListener undoListener)
name - name String. The empty string is not an acceptable name.undoListener - listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
NullPointerException - name or str was null
IllegalArgumentException - name was the empty string
public void removeField(Field field,
UndoableEditListener undoListener)
field - Field to removeundoListener - listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
IllegalArgumentException - field is not present
NullPointerException - field was null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||