|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.impl.FormImpl
public class FormImpl
Implementation of the 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 |
---|
public FormImpl()
Method Detail |
---|
public void setField(java.lang.String field, java.lang.Object value)
Form
setField
in interface Form
field
- field namevalue
- the associated valuepublic void resetDirty()
FormExt
resetDirty
in interface FormExt
public java.lang.Object getField(java.lang.String field)
Form
getField
in interface Form
field
- field name
public java.util.Set<java.lang.String> getLoadFieldNames()
FormExt
getLoadFieldNames
in interface FormExt
public java.util.Set<java.lang.String> getSaveFieldNames()
FormExt
getSaveFieldNames
in interface FormExt
public java.util.Set<java.lang.String> getFieldNames()
Form
getFieldNames
in interface Form
public boolean isDirty()
Form
isDirty
in interface Form
public void addLoadFieldName(java.lang.String fieldName)
FormExt
addLoadFieldName
in interface FormExt
fieldName
- field name to be loaded from.public void addSaveFieldName(java.lang.String fieldName)
FormExt
addSaveFieldName
in interface FormExt
fieldName
- field name to be saved into.public java.lang.String toString()
toString
in class java.lang.Object
public FormStatus getStatus()
getStatus
in interface FormExt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |