org.zkoss.bind
Interface Form

All Known Implementing Classes:
FormImpl, SimpleForm

public interface Form

Virtual Bean that associated with a form.

Author:
henrichen

Method Summary
 void addLoadFieldName(java.lang.String fieldName)
          Add a field name for loading from this Form.
 void addSaveFieldName(java.lang.String fieldName)
          Add a field name for saving into this Form.
 java.lang.Object getField(java.lang.String field)
          Returns the associated value of the specified field name.
 java.util.Set<java.lang.String> getFieldNames()
          Returns all field names taht this Form bean is care about for both read and load.
 java.util.Set<java.lang.String> getLoadFieldNames()
          Returns all field names that this Form bean is care about for loading value from the real bean.
 java.util.Set<java.lang.String> getSaveFieldNames()
          Returns all those field name that this Form bean is care about for saving value into the real bean.
 boolean isDirty()
          Returns whether the form has been modified (Any field is different from those of loadBean)
 void setField(java.lang.String field, java.lang.Object value)
          Sets the associated value of the specified field name.
 

Method Detail

getFieldNames

java.util.Set<java.lang.String> getFieldNames()
Returns all field names taht this Form bean is care about for both read and load.

Returns:
all field names taht this Form bean is care about.

addLoadFieldName

void addLoadFieldName(java.lang.String fieldName)
Add a field name for loading from this Form.

Parameters:
fieldName - field name to be loaded from.

addSaveFieldName

void addSaveFieldName(java.lang.String fieldName)
Add a field name for saving into this Form.

Parameters:
fieldName - field name to be saved into.

getLoadFieldNames

java.util.Set<java.lang.String> getLoadFieldNames()
Returns all field names that this Form bean is care about for loading value from the real bean.

Returns:
all field names that this Form bean is care about for loading value from the real bean.

getSaveFieldNames

java.util.Set<java.lang.String> getSaveFieldNames()
Returns all those field name that this Form bean is care about for saving value into the real bean.

Returns:
all those field name that this Form bean is care about for saving value into the real bean.

setField

void setField(java.lang.String field,
              java.lang.Object value)
Sets the associated value of the specified field name.

Parameters:
field - field name
value - the associated value

getField

java.lang.Object getField(java.lang.String field)
Returns the associated value of the specified field name.

Parameters:
field - field name
Returns:
the associated value

isDirty

boolean isDirty()
Returns whether the form has been modified (Any field is different from those of loadBean)

Returns:
whether the form has been modified.


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo