public interface FormProxyObject
Note: To avoid the method naming conflict with the origin object, we declare those long method names, getOriginObject, resetFormOrigin, submitToOrigin, and isDirtyForm
| Modifier and Type | Method and Description |
|---|---|
void |
cacheSavePropertyBinding(String property,
SavePropertyBinding savePropertyBinding)
Cache save property binding by property string
|
Set<org.zkoss.util.Pair<String,SavePropertyBinding>> |
collectCachedSavePropertyBinding()
Collect all of collect cached save property bindings
|
Object |
getOriginObject()
Returns the origin object.
|
boolean |
isFormDirty()
Returns whether the form proxy object is dirty or not, including all
of its attributes.
|
void |
resetFromOrigin()
Resets all of the changes of this form from the origin object.
|
void |
setFormOwner(Object owner,
FormBinding binding)
Sets the owner of this form with its binding.
|
void |
setPath(String property,
ProxyNode parent)
Set the property of current form proxy object and it's creator
|
void |
submitToOrigin(BindContext ctx)
Saves all of the changes of this form to the origin object.
|
Object getOriginObject()
void resetFromOrigin()
void submitToOrigin(BindContext ctx)
ctx - boolean isFormDirty()
void setFormOwner(Object owner, FormBinding binding)
owner - the object associated with this form.void setPath(String property, ProxyNode parent)
property - p the propertyparent - parent the parent proxy nodevoid cacheSavePropertyBinding(String property, SavePropertyBinding savePropertyBinding)
property - the property of save property bindingsavePropertyBinding - the save property bindingSet<org.zkoss.util.Pair<String,SavePropertyBinding>> collectCachedSavePropertyBinding()
Copyright © 2020. All rights reserved.