public class Signature extends Widget
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the signature.
|
void |
drawBackground()
Draws the background color and image of 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 MIME 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.
|
boolean |
isToolbarVisible()
Returns the visibility of the toolbar for signature pad.
|
void |
save()
Save the Signature.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color for the signature pad.
|
void |
setBackgroundImage(String backgroundImage)
Sets the background image for the signature pad.
|
void |
setBackgroundIncluded(boolean whether)
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 MIME 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.
|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
$, $f, $f, $f, $init, $n, $n, $o, $s, $service, afterAnima_, afterParentChanged_, appendChild, appendChild, beforeParentChanged_, beforeSendAU_, bind_, bind, bindChildren_, bindDoubleTap_, bindMissingAncestors, bindSwipe_, bindTapHold_, canActivate, cleanDrag_, clearCache, cloneDrag_, deferRedraw_, deferRedrawHTML_, detach, doBlur_, doClick_, doDoubleClick_, doFocus_, doKeyDown_, doKeyPress_, doKeyUp_, domAttrs_, domClass_, domListen_, doMouseDown_, doMouseMove_, doMouseOut_, doMouseOver_, doMouseUp_, domStyle_, domTextStyleAttr_, domTooltiptext_, domUnlisten_, doPaste_, doResizeScroll_, doRightClick_, doSelect_, doSwipe_, doTooltipOut_, doTooltipOver_, dropEffect_, extraBind_, fire, fireX, focus_, focus, forcerender, fromPageCoord, get, getAction, getCaveNode, getChildAt, getChildIndex, getClass, getCssflex, getDraggable, getDragMessage_, getDragNode, getDragOptions_, getDrop_, getDroppable, getElementsById, getElementsByName, getFirstNode_, getFloatZIndex_, getHeight, getHflex, getId, getLeft, getMold, getOldWidget_, getPage, getRenderdefer, getSclass, getScrollLeft, getScrollTop, getStyle, getTabindex, getTextNode, getTooltiptext, getTop, getTopWidget, getVflex, getWidth, getZclass, getZIndex, hide, ignoreDescendantFloatUp_, ignoreDrag_, initDrag_, insertBefore, insertChildHTML_, isAutoId, isBinding, isFloating_, isListen, isRealElement, isRealVisible, isRealVisible, isVisible, isVisible, isWatchable_, listen, listenOnFitSize_, mimicMouseDown_, newInstance, nextUuid, onAfterSize, onChildAdded_, onChildRemoved_, onChildRenderDefer_, onChildReplaced_, onChildVisible_, onDrop_, redraw, redrawHTML_, register, removeChild, removeChild, removeChildHTML_, removeHTML_, replaceCavedChildren_, replaceChildHTML_, replaceHTML, replaceWidget, rerender, rerender, rerenderLater_, rerenderNow_, scrollIntoView, sendAU_, set, set, setAction, setChildren, setCssflex, setDomVisible_, setDraggable, setDroppable, setFloating_, setFloatZIndex_, setHeight, setHflex, setId, setLeft, setListener, setListener, setListeners, setMold, setRenderdefer, setSclass, setScrollLeft, setScrollTop, setStyle, setTabindex, setTooltiptext, setTop, setTopmost, setVflex, setVisible, setWidth, setZclass, setZIndex, shallChildROD_, shallFireSizedLaterWhenAddChd_, shallIgnoreClick_, show, smartUpdate, unbind_, unbind, unbindChildren_, unbindDoubleTap_, unbindSwipe_, unbindTapHold_, uncloneDrag_, unlisten, unlistenOnFitSize_, updateDomClass_, updateDomStyle_, uuid, zsync
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public void setPenColor(String penColor)
penColor
- the pen color for signature pad.public String getPenColor()
Default: black.
public void setPenSize(int penSize)
penSize
- the pen size for signature pad.public int getPenSize()
Default: 1.
public void setBackgroundColor(String backgroundColor)
backgroundColor
- the background color for signature pad.public String getBackgroundColor()
Default: white.
public void setBackgroundImage(String backgroundImage)
backgroundImage
- the background image URI of signature pad.public String getBackgroundImage()
Default: null.
public void setBackgroundIncluded(boolean whether)
whether
- the background color and image are included while saved.public boolean isBackgroundIncluded()
Default: true.
public void setToolbarVisible(boolean toolbarVisible)
toolbarVisible
- the visibility of the toolbar.public boolean isToolbarVisible()
Default: true.
public void setSaveType(String saveType)
saveType
- type for saving signature image.public String getSaveType()
public void setUndoLabel(String undoLabel)
undoLabel
- the label on undo button.public String getUndoLabel()
public void setSaveLabel(String saveLabel)
saveLabel
- the label on undo button.public String getSaveLabel()
public void setClearLabel(String clearLabel)
clearLabel
- the label on clear button.public String getClearLabel()
public void undo()
public void drawBackground()
public void save()
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.