public class Signature extends XulElement
HtmlBasedComponent.ExtraCtrlAbstractComponent.Children_zclassAPPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEAFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE| Constructor and Description |
|---|
Signature() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the signature.
|
java.lang.String |
getBackgroundColor()
Returns the background color of the signature pad.
|
java.lang.String |
getBackgroundImage()
Returns the background image URI of signature pad.
|
java.lang.String |
getClearLabel()
Returns the label on clear button.
|
java.lang.String |
getPenColor()
Returns the pen color of the signature pad.
|
int |
getPenSize()
Returns the pen size of the signature pad.
|
java.lang.String |
getSaveLabel()
Returns the label on save button.
|
java.lang.String |
getSaveType()
Returns the type for saving signature image.
|
java.lang.String |
getUndoLabel()
Returns the label on undo button.
|
boolean |
isBackgroundIncluded()
Returns whether the background color and image are included while saved.
|
protected boolean |
isChildable()
Returns whether this component can have a child.
|
boolean |
isToolbarVisible()
Returns the visibility of the toolbar for signature pad.
|
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing
tags and children.
|
void |
save()
Save the Signature.
|
void |
service(AuRequest request,
boolean everError)
Processes an AU request.
|
void |
setBackgroundColor(java.lang.String backgroundColor)
Sets the background color for the signature pad.
|
void |
setBackgroundImage(java.lang.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(java.lang.String clearLabel)
Sets the label on clear button.
|
void |
setPenColor(java.lang.String penColor)
Sets the pen color of the signature pad.
|
void |
setPenSize(int penSize)
Sets the pen size of the signature pad.
|
void |
setSaveLabel(java.lang.String saveLabel)
Sets the label on save button.
|
void |
setSaveType(java.lang.String saveType)
Sets the type for saving signature image.
|
void |
setToolbarVisible(boolean toolbarVisible)
Sets the visibility of the toolbar for signature pad.
|
void |
setUndoLabel(java.lang.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, willSerializeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinvalidatePartialprotected boolean isChildable()
AbstractComponentDefault: return true (means it can have children).
isChildable in class AbstractComponentpublic int getPenSize()
Default: 1.
public void setPenSize(int penSize)
penSize - the pen size for signature pad.public java.lang.String getPenColor()
Default: black.
public void setPenColor(java.lang.String penColor)
penColor - the pen color for signature pad.public java.lang.String getBackgroundColor()
Default: white.
public void setBackgroundColor(java.lang.String backgroundColor)
backgroundColor - the background color for signature pad.public java.lang.String getBackgroundImage()
Default: null.
public void setBackgroundImage(java.lang.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 java.lang.String getSaveType()
public void setSaveType(java.lang.String saveType)
saveType - type for saving signature image.public java.lang.String getUndoLabel()
public void setUndoLabel(java.lang.String undoLabel)
undoLabel - the label on undo button.public java.lang.String getSaveLabel()
public void setSaveLabel(java.lang.String saveLabel)
saveLabel - the label on undo button.public java.lang.String getClearLabel()
public void setClearLabel(java.lang.String clearLabel)
clearLabel - the label on clear button.public void undo()
public void clear()
public void save()
getSaveType().public void service(AuRequest request, boolean everError)
HtmlBasedComponentDefault: it handles onClick, onDoubleClick, onRightClick onMove, onSize, onZIndex.
service in interface ComponentCtrlservice in class HtmlBasedComponenteverError - whether any error ever occurred before
processing this request.AbstractComponent.setAuService(org.zkoss.zk.au.AuService)protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponentrenderProperties in class XulElementjava.io.IOExceptionCopyright © 2005-2024 Potix Corporation. All Rights Reserved.