Class ISignatureController

java.lang.Object
org.zkoss.stateless.state.ISignatureController

public class ISignatureController extends Object
An ISignature controller to control undo, clear, save, and some status with the given signature instance.

Note: this class is not thread-safe, so when it's used in multi-threading environment, the developer should handle the threading issue.

Author:
katherine
  • Method Details

    • undo

      public void undo()
      Undoes the signature.
    • clear

      public void clear()
      Clears the signature.
    • save

      public void save()
      Saves the Signature. It will upload a file and fire an onSave event to server, upload file type is according to ISignature.getSaveType().
    • of

      public static ISignatureController of(ISignature owner)
      Returns the controller instance with the given signature
      Parameters:
      owner - The controller to control with
    • build

      public ISignature build()
      Returns the immutable signature instance that the controller to build with.