Package org.zkoss.stateless.state
Class ISignatureController
- java.lang.Object
-
- org.zkoss.stateless.state.ISignatureController
-
public class ISignatureController extends java.lang.ObjectAnISignaturecontroller 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ISignaturebuild()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 Detail
-
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
public static ISignatureController of(ISignature owner)
Returns the controller instance with the givensignature- Parameters:
owner- The controller to control with
-
build
public ISignature build()
Returns the immutable signature instance that the controller to build with.
-
-