public class Signature extends XulElement
HtmlBasedComponent.ExtraCtrl
AbstractComponent.Children
_zclass
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
AFTER_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 |
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.
|
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 |
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, setTooltipAttributes
addSclass, 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, setZIndexDirectly
addAnnotation, 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, willSerialize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invalidatePartial
protected boolean isChildable()
AbstractComponent
Default: return true (means it can have children).
isChildable
in class AbstractComponent
public 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 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)
HtmlBasedComponent
Default: it handles onClick, onDoubleClick, onRightClick onMove, onSize, onZIndex.
service
in interface ComponentCtrl
service
in class HtmlBasedComponent
everError
- 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
HtmlBasedComponent
renderProperties
in class XulElement
java.io.IOException
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.