org.zkoss.bind.impl
Class FormImpl

java.lang.Object
  extended by org.zkoss.bind.impl.FormImpl
All Implemented Interfaces:
java.io.Serializable, Form, FormExt
Direct Known Subclasses:
SimpleForm

public class FormImpl
extends java.lang.Object
implements Form, FormExt, java.io.Serializable

Implementation of the Form.

Since:
6.0.0
Author:
henrichen, dennis
See Also:
Serialized Form

Constructor Summary
FormImpl()
           
 
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 that 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.
 FormStatus getStatus()
           
 boolean isDirty()
          Returns whether the form has been modified (Any field is different from those of loadBean)
 void resetDirty()
          Reset the dirty data, reload initValue value from field
 void setField(java.lang.String field, java.lang.Object value)
          Sets the associated value of the specified field name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormImpl

public FormImpl()
Method Detail

setField

public void setField(java.lang.String field,
                     java.lang.Object value)
Description copied from interface: Form
Sets the associated value of the specified field name.

Specified by:
setField in interface Form
Parameters:
field - field name
value - the associated value

resetDirty

public void resetDirty()
Description copied from interface: FormExt
Reset the dirty data, reload initValue value from field

Specified by:
resetDirty in interface FormExt

getField

public java.lang.Object getField(java.lang.String field)
Description copied from interface: Form
Returns the associated value of the specified field name.

Specified by:
getField in interface Form
Parameters:
field - field name
Returns:
the associated value

getLoadFieldNames

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

Specified by:
getLoadFieldNames in interface FormExt
Returns:
all field names that this Form bean is care about for loading value from the real bean.

getSaveFieldNames

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

Specified by:
getSaveFieldNames in interface FormExt
Returns:
all those field name that this Form bean is care about for saving value into the real bean.

getFieldNames

public java.util.Set<java.lang.String> getFieldNames()
Description copied from interface: Form
Returns all field names that this Form bean is care about for both read and load.

Specified by:
getFieldNames in interface Form
Returns:
all field names that this Form bean is care about.

isDirty

public boolean isDirty()
Description copied from interface: Form
Returns whether the form has been modified (Any field is different from those of loadBean)

Specified by:
isDirty in interface Form
Returns:
whether the form has been modified.

addLoadFieldName

public void addLoadFieldName(java.lang.String fieldName)
Description copied from interface: FormExt
Add a field name for loading from this Form.

Specified by:
addLoadFieldName in interface FormExt
Parameters:
fieldName - field name to be loaded from.

addSaveFieldName

public void addSaveFieldName(java.lang.String fieldName)
Description copied from interface: FormExt
Add a field name for saving into this Form.

Specified by:
addSaveFieldName in interface FormExt
Parameters:
fieldName - field name to be saved into.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStatus

public FormStatus getStatus()
Specified by:
getStatus in interface FormExt
Returns:
the status object of this form


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