org.zkoss.bind.proxy
Interface FormProxyObject

All Known Implementing Classes:
AbstractCollectionProxy, 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
 void addFormProxyObjectListener(FormProxyObjectListener l)
          Add listener
 java.lang.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(java.lang.Object owner, FormBinding binding)
          Sets the owner of this form with its binding.
 void submitToOrigin(BindContext ctx)
          Saves all of the changes of this form to the origin object.
 

Method Detail

getOriginObject

java.lang.Object getOriginObject()
Returns the origin object.


resetFromOrigin

void resetFromOrigin()
Resets all of the changes of this form from the origin object.


submitToOrigin

void submitToOrigin(BindContext ctx)
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

void setFormOwner(java.lang.Object owner,
                  FormBinding binding)
Sets the owner of this form with its binding.

Parameters:
owner - the object associated with this form.

addFormProxyObjectListener

void addFormProxyObjectListener(FormProxyObjectListener l)
Add listener



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