public class SignatureWidget extends ControlEntity<SignatureConfig> implements Signature
BaseEntity.CharsPixelsALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHTgroupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| Constructor and Description |
|---|
SignatureWidget()
The default constructor
|
SignatureWidget(boolean dynamic)
The parameterized constructor.
|
SignatureWidget(boolean dynamic,
SignatureConfig ctrl)
The parameterized constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearSignatureWindow(integer inside)
Erases data either inside or outside of sig window based on value of inside parameter.
|
void |
clearTablet()
Clears the signature object of ink.
|
memptr |
getSignatureImage(character imgFormat,
character pixelFormat)
Get the signature image.
|
void |
keypadAddHotSpot(integer keyCode,
integer coordToUse,
integer xPos,
integer yPos,
integer xSize,
integer ySize)
Defines the location of a tablet hot spot area which is used to detect user pen taps.
|
void |
keypadClearHotSpotList()
Clears the controls internal list of HotSpots created using KeyPadAddHotSpot command.
|
integer |
keypadQueryHotSpot(integer keyCode)
Queries whether the specified HotSpot has been tapped by the user.
|
void |
lcdRefresh(integer mode,
integer xPos,
integer yPos,
integer xSize,
integer ySize)
Sends tablet a refresh command with 4 possible modes.
|
void |
lcdSetWindow(integer xPos,
integer yPos,
integer xSize,
integer ySize)
Sets a signature window that restricts the ink of the signature device to said window on the LCD itself.
|
void |
lcdWriteString(integer dest,
integer mode,
integer xPos,
integer yPos,
character font,
character text)
Used to write the image data to the LCD Display.
|
integer |
numberOfTabletPoints()
Returns the total number of points in the current signature, can be used to detect if a signature is
present or not.
|
void |
setImageFileFormat(integer fileFormat)
Sets the current format to use for Image files.
|
void |
setImagePenWidth(integer imagePenWidth)
Sets the pen ink width.
|
void |
setImageXSize(integer imageXSize)
Set the number of X pixels in the image provided by getSignatureImage.
|
void |
setImageYSize(integer imageYSize)
Set the number of Y pixels in the image provided by getSignatureImage.
|
void |
setJustifyMode(integer mode)
Sets the current justification mode- how the signature is sized and positioned in the signature box.
|
void |
setJustifyX(integer justifyX)
Sets the buffer size in Logical Tablet Coordinates of "dead space" of left and right edge of
the signature device if the justification mode is 1-5.
|
void |
setJustifyY(integer justifyY)
Sets the buffer size in Logical Tablet Coordinates of "dead space" of top and bottom edge of
the signature device if the justification mode is 1-5.
|
void |
setLCDCaptureMode(integer mode)
Sets the current LCD Capture Mode for the tablet.
|
void |
setSignatureWindow(integer coords,
integer newXPos,
integer newYPos,
integer newXSize,
integer newYSize)
This function sets a window in the logical tablet space that restricts the operation of some
functions to the specified window.
|
void |
setTabletState(integer state)
Enables tablet to access the COM or USB port to capture signatures or not.
|
void |
setTranslateBitmapEnable(logical enable)
Enable the bitmap translation.
|
character |
tabletModelNumber()
Returns the model number as string value.
|
changeFontWorker, delete, firstChild, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getPreviousTabItem, getPrevSibling, getSideLabelHandleWorker, getSizeAttrs, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, lastChild, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDataType, setDataType, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setSideLabelHandleWorker, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFont, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline, setGroup, setHeightChars, setHeightChars, setHeightImpl, setHeightPixels, setHeightPixels, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setSystemParent, setTabStop, setTabStop, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthImpl, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _name, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, canPushWidgetAttr, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, editUndo, enable, finishConfigProcessing, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getScreenValue, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTabItem, moveAfterTabItem, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, setAutoReturn, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setFromOCX, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, setWidth, truncatePixelSize, type, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetNamefirstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, resolveChainType, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, resourceType, setInstantiatingProcedure, toString, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitendFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTargetgetIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypeid, id, unknownsetDisableRedrawsetReadOnlyallowDeletepublic SignatureWidget()
public SignatureWidget(boolean dynamic)
dynamic - The dynamic flag, it is supposed to be true.public SignatureWidget(boolean dynamic,
SignatureConfig ctrl)
dynamic - The dynamic flag, it is supposed to be true.ctrl - The container for all state to be transferred to the client.public void clearTablet()
clearTablet in interface Signaturepublic integer numberOfTabletPoints()
numberOfTabletPoints in interface Signaturepublic void lcdRefresh(integer mode, integer xPos, integer yPos, integer xSize, integer ySize)
lcdRefresh in interface Signaturemode - The given mode as above (0-4)xPos - The X location in LCD Coordinates (upper left-0,0)yPos - The Y location in LCD Coordinates (upper left-0,0)xSize - The X size in LCD pixelsySize - The Y size in LCD pixelspublic void lcdWriteString(integer dest, integer mode, integer xPos, integer yPos, character font, character text)
lcdWriteString in interface Signaturedest - 0 = Foreground, 1 = Background memory in tabletmode - The given mode -0, 1, 2, 3 as defined abovexPos - The X location in LCD coords to draw atyPos - The Y location in LCD coords to draw atfont - The font string in this form: "Arial Rounded MT, size=11, bold" or
"Arial, size=8.0"text - The ASCII hex string valuepublic void keypadAddHotSpot(integer keyCode, integer coordToUse, integer xPos, integer yPos, integer xSize, integer ySize)
keypadAddHotSpot in interface SignaturekeyCode - The integer value defining the hot spot area on the device.coordToUse - The coordinate system used for this hot spot area.xPos - The X location (upper left- 0,0)yPos - The Y location (upper left- 0,0)xSize - The X size in pixels.ySize - The Y size in pixels.public void lcdSetWindow(integer xPos, integer yPos, integer xSize, integer ySize)
lcdSetWindow in interface SignaturexPos - The X location in LCD coordinates (upper left – 0,0)yPos - The Y location in LCD coordinates (upper left – 0,0)xSize - The X size in LCD pixelsySize - The Y size in LCD pixelspublic void setSignatureWindow(integer coords, integer newXPos, integer newYPos, integer newXSize, integer newYSize)
setSignatureWindow in interface Signaturecoords - Coordinate system used for this hot spot, 0 = Logical tablet coordinates, 1 = LCD Coordinates.newXPos - The X location in logical tablet coordinates (upper left - 0,0).newYPos - The Y location in logical tablet coordinates (upper left - 0,0).newXSize - The X size in logical tablet pixelsnewYSize - The Y size in logical tablet pixelspublic void setLCDCaptureMode(integer mode)
setLCDCaptureMode in interface Signaturemode - The LCD capture mode:
Mode 0=no LCD commands are sent to the tablet
Mode 1=sets capture mode to be active with Autoerase in the tablet
Mode 2=sets the tablet to persistent ink capture without autoerase
Mode 3=signature ink is displayed inverted on a suitable dark background set
using the Graphic functions.public void setTabletState(integer state)
setTabletState in interface Signaturestate - Setting to 1 enables the tablet to capture signatures as above, setting to 0 disables
signature capture.public character tabletModelNumber()
tabletModelNumber in interface Signaturepublic void setTranslateBitmapEnable(logical enable)
SignaturesetTranslateBitmapEnable in interface Signatureenable - true to enable translation.public void setImageFileFormat(integer fileFormat)
setImageFileFormat in interface SignaturefileFormat - The image file format type. Valid values are from 0 to 11.public void setImageXSize(integer imageXSize)
setImageXSize in interface SignatureimageXSize - The image width size in X pixels.public void setImageYSize(integer imageYSize)
setImageYSize in interface SignatureimageYSize - The image height size in Y pixels.public void setImagePenWidth(integer imagePenWidth)
setImagePenWidth in interface SignatureimagePenWidth - The pen ink width for image.public void setJustifyMode(integer mode)
setJustifyMode in interface Signaturemode - The justification mode:
0-normal no justification,
1-justify and zoom signature (upper left corner)
2-justify and zoom signature (upper right corner)
3-justify and zoom signature (lower left corner)
4-justify and zoom signature (lower right corner)
5-justify and zoom signature (center of control).public void setJustifyX(integer justifyX)
setJustifyX in interface SignaturejustifyX - The justification X buffer size in pixels to be setpublic void setJustifyY(integer justifyY)
setJustifyY in interface SignaturejustifyY - The justification Y buffer size in pixels to be setpublic memptr getSignatureImage(character imgFormat, character pixelFormat)
SignaturegetSignatureImage in interface SignatureimgFormat - The image format (BMP, JPEG, etc).pixelFormat - The pixel format (i.e. Format1bppIndexed).public integer keypadQueryHotSpot(integer keyCode)
keypadQueryHotSpot in interface SignaturekeyCode - The given key code that defines the target hot spot area.public void clearSignatureWindow(integer inside)
clearSignatureWindow in interface Signatureinside - The flag indicating the data to erasepublic void keypadClearHotSpotList()
keypadClearHotSpotList in interface Signature