public class Signature
extends org.zkoss.zul.impl.XulElement
| Constructor and Description |
|---|
Signature() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the signature.
|
String |
getBackgroundColor()
Returns the background color of the signature pad.
|
String |
getBackgroundImage()
Returns the background image URI of signature pad.
|
String |
getClearLabel()
Returns the label on clear button.
|
String |
getPenColor()
Returns the pen color of the signature pad.
|
int |
getPenSize()
Returns the pen size of the signature pad.
|
String |
getSaveLabel()
Returns the label on save button.
|
String |
getSaveType()
Returns the type for saving signature image.
|
String |
getUndoLabel()
Returns the label on undo button.
|
boolean |
isBackgroundIncluded()
Returns whether the background color and image are included while saved.
|
protected boolean |
isChildable() |
boolean |
isToolbarVisible()
Returns the visibility of the toolbar for signature pad.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
save()
Save the Signature.
|
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError) |
void |
setBackgroundColor(String backgroundColor)
Sets the background color for the signature pad.
|
void |
setBackgroundImage(String backgroundImage)
Sets the background image URI for the signature pad.
|
void |
setBackgroundIncluded(boolean backgroundIncluded)
Sets whether the background color and image are included while saved.
|
void |
setClearLabel(String clearLabel)
Sets the label on clear button.
|
void |
setPenColor(String penColor)
Sets the pen color of the signature pad.
|
void |
setPenSize(int penSize)
Sets the pen size of the signature pad.
|
void |
setSaveLabel(String saveLabel)
Sets the label on save button.
|
void |
setSaveType(String saveType)
Sets the type for saving signature image.
|
void |
setToolbarVisible(boolean toolbarVisible)
Sets the visibility of the toolbar for signature pad.
|
void |
setUndoLabel(String undoLabel)
Sets the label on undo button.
|
void |
undo()
Undo the signature.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, invalidatePartial, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializeprotected boolean isChildable()
isChildable in class org.zkoss.zk.ui.AbstractComponentpublic int getPenSize()
Default: 1.
public void setPenSize(int penSize)
penSize - the pen size for signature pad.public String getPenColor()
Default: black.
public void setPenColor(String penColor)
penColor - the pen color for signature pad.public String getBackgroundColor()
Default: white.
public void setBackgroundColor(String backgroundColor)
backgroundColor - the background color for signature pad.public String getBackgroundImage()
Default: null.
public void setBackgroundImage(String backgroundImage)
backgroundImage - the background image URI of signature pad.public boolean isBackgroundIncluded()
Default: true.
public void setBackgroundIncluded(boolean backgroundIncluded)
backgroundIncluded - whether the background color and image are included while saved.public boolean isToolbarVisible()
Default: true.
public void setToolbarVisible(boolean toolbarVisible)
toolbarVisible - the visibility of the toolbar.public String getSaveType()
public void setSaveType(String saveType)
saveType - type for saving signature image.public String getUndoLabel()
public void setUndoLabel(String undoLabel)
undoLabel - the label on undo button.public String getSaveLabel()
public void setSaveLabel(String saveLabel)
saveLabel - the label on undo button.public String getClearLabel()
public void setClearLabel(String clearLabel)
clearLabel - the label on clear button.public void undo()
public void clear()
public void save()
getSaveType().public void service(org.zkoss.zk.au.AuRequest request,
boolean everError)
service in interface org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentprotected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zul.impl.XulElementIOExceptionCopyright © 2026. All rights reserved.