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 |
addFormProxyObjectListener(FormProxyObjectListener l)
Add listener
|
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 |
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 addFormProxyObjectListener(FormProxyObjectListener l)
Copyright © 2015. All rights reserved.