Package org.zkoss.stateless.state
Class ISignatureController
java.lang.Object
org.zkoss.stateless.state.ISignatureController
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 Summary
Modifier and TypeMethodDescriptionbuild()Returns the immutable signature instance that the controller to build with.voidclear()Clears the signature.static ISignatureControllerof(ISignature owner) Returns the controller instance with the givensignaturevoidsave()Saves the Signature.voidundo()Undoes the signature.
-
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 toISignature.getSaveType(). -
of
Returns the controller instance with the givensignature- Parameters:
owner- The controller to control with
-
build
Returns the immutable signature instance that the controller to build with.
-