|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a generalized form. The form can be anything from an HTML web page form to a set of controls displayed on a Swing JPanel. The abstraction works in both cases and also supports field values as indexed properties.
Method Summary | |
java.lang.Object |
getValue(java.lang.String name)
This overloaded method is used to optimize the retrieval of the first value in forms which don't have indexed field values. |
java.lang.Object |
getValue(java.lang.String name,
int idx)
This method returns the field value at the specified index. |
java.lang.Object[] |
getValues(java.lang.String name)
This method returns all of the field values of the named field. |
void |
setValue(java.lang.String name,
int idx,
java.lang.Object value)
This method sets the field value at the specified index. |
void |
setValue(java.lang.String name,
java.lang.Object value)
This overloaded method is used to optimize the setting of the first value in forms which don't have indexed field values. |
void |
setValues(java.lang.String name,
java.lang.Object[] values)
This method allows the setting of all of the field values for the named field at once. |
Method Detail |
public java.lang.Object[] getValues(java.lang.String name)
name
- the name of the field
public void setValues(java.lang.String name, java.lang.Object[] values)
name
- the name of the fieldvalues
- the values arraypublic java.lang.Object getValue(java.lang.String name, int idx) throws java.lang.IndexOutOfBoundsException
name
- the name of the fieldidx
- the index to retrieve
java.lang.IndexOutOfBoundsException
- if the index is not within the bounds of the field
values.public java.lang.Object getValue(java.lang.String name)
name
- the field name
public void setValue(java.lang.String name, int idx, java.lang.Object value) throws java.lang.IndexOutOfBoundsException
name
- the name of the fieldidx
- the index to retrievevalue
- the value of the field at the specified index
java.lang.IndexOutOfBoundsException
- if the index is not within the bounds of the field
values.public void setValue(java.lang.String name, java.lang.Object value)
name
- the field namevalue
- the field value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |