Package org.zkoss.bind.proxy
Interface FormProxyObject
- All Known Implementing Classes:
AbstractCollectionProxy,ListModelArrayProxy,ListModelListProxy,ListModelMapProxy,ListModelSetProxy,ListProxy,MapProxy,SetProxy
public interface FormProxyObject
The interface implemented by proxy classes.
Note: To avoid the method naming conflict with the origin object, we declare those long method names, getOriginObject, resetFormOrigin, submitToOrigin, and isDirtyForm
- Since:
- 8.0.0
- Author:
- jumperchen
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheSavePropertyBinding(String property, SavePropertyBinding savePropertyBinding) Cache save property binding by property stringSet<org.zkoss.util.Pair<String,SavePropertyBinding>> Collect all of collect cached save property bindingsReturns the origin object.booleanReturns whether the form proxy object is dirty or not, including all of its attributes.voidResets all of the changes of this form from the origin object.voidsetFormOwner(Object owner, FormBinding binding) Sets the owner of this form with its binding.voidSet the property of current form proxy object and it's creatorvoidSaves all of the changes of this form to the origin object.
-
Method Details
-
getOriginObject
Object getOriginObject()Returns the origin object. -
resetFromOrigin
void resetFromOrigin()Resets all of the changes of this form from the origin object. -
submitToOrigin
Saves all of the changes of this form to the origin object.- Parameters:
ctx-
-
isFormDirty
boolean isFormDirty()Returns whether the form proxy object is dirty or not, including all of its attributes. -
setFormOwner
Sets the owner of this form with its binding.- Parameters:
owner- the object associated with this form.
-
setPath
Set the property of current form proxy object and it's creator- Parameters:
property- p the propertyparent- parent the parent proxy node- Since:
- 8.0.2
-
cacheSavePropertyBinding
Cache save property binding by property string- Parameters:
property- the property of save property bindingsavePropertyBinding- the save property binding- Since:
- 8.0.2
-
collectCachedSavePropertyBinding
Set<org.zkoss.util.Pair<String,SavePropertyBinding>> collectCachedSavePropertyBinding()Collect all of collect cached save property bindings- Since:
- 8.0.2
-