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 Details

    • getOriginObject

      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(Object owner, FormBinding binding)
      Sets the owner of this form with its binding.
      Parameters:
      owner - the object associated with this form.
    • setPath

      void setPath(String property, ProxyNode parent)
      Set the property of current form proxy object and it's creator
      Parameters:
      property - p the property
      parent - parent the parent proxy node
      Since:
      8.0.2
    • cacheSavePropertyBinding

      void cacheSavePropertyBinding(String property, SavePropertyBinding savePropertyBinding)
      Cache save property binding by property string
      Parameters:
      property - the property of save property binding
      savePropertyBinding - 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