public class FillInWidget extends ControlTextWidget<FillInConfig> implements AutoReturnElement, AutoZapElement, SelectableText, PasswordFieldInterface, BlankInterface, DeblankInterface, Hoverable, Labels, SubTypeAttribute
BaseEntity.CharsPixelsALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHTgroupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| Constructor and Description |
|---|
FillInWidget()
Default constructor.
|
FillInWidget(boolean dynamic)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
logical |
clearSelection()
Clears text selection
|
logical |
editCopy()
Copy the currently selected text into system Clipboard.
|
logical |
editCut()
Copy the currently selected text into system Clipboard and remove the currently selected
text.
|
logical |
editPaste()
Paste the system Clipboard content into current cursor position.
|
logical |
editUndo()
Undo the last changes in text editable widget if possible.
|
void |
focusAndSelect()
Sets focus to widget and selects all current text
|
integer |
getCursorOffset()
Get value of the CURSOR-OFFSET attribute.
|
private static FillInWidget |
getFocusedFillIn()
Get focused fill-in.
|
java.lang.String |
getMousePointerImpl()
Get the MOUSE-POINTER attribute
|
character |
getScreenValue()
Obtain the current value in the screen buffer of the backing data for
this widget and return it as a
character type. |
integer |
getSelectionEnd()
Get SELECTION-END attribute.
|
integer |
getSelectionStart()
Get SELECTION-START attribute.
|
character |
getSelectionText()
Get SELECTION-TEXT attribute.
|
handle |
getSideLabelHandle()
Obtains the text widget that is used as the side label for this widget.
|
character |
getSubType()
Returns the subtype of the handle.
|
logical |
isAutoReturn()
Get value of the AUTO-RETURN attribute.
|
logical |
isAutoZap()
Get value of the AUTO-ZAP attribute.
|
logical |
isBlank()
Get value of the BLANK attribute.
|
logical |
isDeblank()
Get value of the DEBLANK attribute.
|
logical |
isDisableAutoZap()
Get value of the DISABLE-AUTO-ZAP attribute.
|
logical |
isEditCanPaste()
Checks if the Clipboard has data to paste from.
|
logical |
isEditCanUndo()
Checks if the widget can handle text undo request.
|
private boolean |
isFocused()
Check if this fill-in is focused.
|
(package private) static logical |
isFocusedAutoZap()
Get value of the AUTO-ZAP attribute of the focused fill-in.
|
logical |
isLabels()
Gets the LABELS attribute.
|
logical |
isPasswordField()
Get value of the PASSWORD-FIELD attribute.
|
logical |
isTextSelected()
Get TEXT-SELECTED attribute.
|
private void |
pushFillInDefinition()
Push screen definition instance down to the client.
|
logical |
removeSelection()
Removes selected text.
|
void |
resetGrouping()
Reset grouping flag and links to previous and next widget in the text
group.
|
void |
setAutoReturn(boolean autoReturn)
Sets the AUTO-RETURN option.
|
void |
setAutoReturn(logical autoReturn)
Sets the AUTO-RETURN option.
|
void |
setAutoZap(boolean value)
Set AUTO-ZAP attribute.
|
void |
setAutoZap(logical autoZap)
Set AUTO-ZAP attribute.
|
void |
setBlank(boolean value)
Set value of the BLANK attribute.
|
void |
setBlank(logical value)
Set value of the BLANK attribute.
|
void |
setCursorOffset(double offset)
Sets the position of the cursor.
|
void |
setCursorOffset(NumberType offset)
Sets the position of the cursor.
|
void |
setCursorOffset(NumberType offset,
java.lang.String widgetName)
Sets the position of the cursor.
|
void |
setDeblank(boolean value)
Set value of the DEBLANK attribute.
|
void |
setDeblank(logical value)
Set value of the DEBLANK attribute.
|
void |
setDisableAutoZap(boolean disableAutoZap)
Sets the DISABLE-AUTO-ZAP option.
|
void |
setDisableAutoZap(logical value)
Set DISABLE-AUTO-ZAP attribute.
|
void |
setMousePointerName(java.lang.String name)
Set the MOUSE-POINTER attribute
|
void |
setNative(boolean nativ)
Set value of the NATIVE attribute.
|
void |
setNextGroupItem(FillInWidget next)
Link widget with the next widget in the text group.
|
void |
setPasswordField(boolean value)
Set value of the PASSWORD-FIELD attribute.
|
void |
setPasswordField(logical value)
Set value of the PASSWORD-FIELD attribute.
|
void |
setReadOnly(boolean newReadOnly)
Sets a read only state.
|
protected void |
setScreenValueInt(character value)
Set the current value in the screen buffer of the backing data for
this widget.
|
logical |
setSelection(int64 start,
int end)
Selects text in a widget between start and end points.
|
logical |
setSelection(int64 start,
int64 end)
Selects text in a widget between start and end points.
|
logical |
setSelection(int start,
int end)
Selects text in a widget between start and end points.
|
logical |
setSelection(int start,
int64 end)
Selects text in a widget between start and end points.
|
void |
setSideLabelHandle(handle label)
Sets the text widget that is used as the side label for this widget.
|
void |
setSubType(character value)
Sets the the subtype of the object.
|
void |
setSubType(java.lang.String value)
Sets the the subtype of the object.
|
void |
startGrouping(FillInWidget prev)
Start text group of widgets (word wrap mode).
|
isExpandLabel, isReadOnly, setAt, setAtFormatLength, setForceLabel, setHeader, setReadOnly, setStaticchangeFontWorker, 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, 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, enable, finishConfigProcessing, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, 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, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isChained, isChecked, isDisableRedraw, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, 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, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setDbname, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setFromOCX, 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, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, 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, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypeid, id, unknownsetDisableRedrawallowDeletepublic FillInWidget()
public FillInWidget(boolean dynamic)
dynamic - Flag indicating if this is a static or dynamic resource.static logical isFocusedAutoZap()
true is returned.private static FillInWidget getFocusedFillIn()
null if there is no focused fill-in.public void setAutoReturn(logical autoReturn)
setAutoReturn in interface AutoReturnElementsetAutoReturn in class GenericWidget<FillInConfig>autoReturn - true if the option is set to ON.public void setAutoReturn(boolean autoReturn)
setAutoReturn in interface AutoReturnElementsetAutoReturn in class GenericWidget<FillInConfig>autoReturn - true if the option is set to ON.public logical isAutoReturn()
isAutoReturn in interface AutoReturnElementisAutoReturn in class GenericWidget<FillInConfig>public logical isLabels()
public void setReadOnly(boolean newReadOnly)
setReadOnly in interface WriteProtectablenewReadOnly - Is widget read only.public void startGrouping(FillInWidget prev)
prev - Reference to previous fill-in widget or null if no such
widgets.public void setNextGroupItem(FillInWidget next)
next - Reference to next widget in group.public void resetGrouping()
public void setNative(boolean nativ)
nativ - New value for the attribute.public logical setSelection(int64 start, int64 end)
setSelection in interface SelectableTextstart - Starting offset.end - Ending offset.true if the operation succeeded.public logical setSelection(int64 start, int end)
setSelection in interface SelectableTextstart - Starting offset.end - Ending offset.true if the operation succeeded.public logical setSelection(int start, int64 end)
setSelection in interface SelectableTextstart - Starting offset.end - Ending offset.true if the operation succeeded.public logical setSelection(int start, int end)
setSelection in interface SelectableTextstart - Starting offset.end - Ending offset.true if the operation succeeded.public void focusAndSelect()
focusAndSelect in interface SelectableTextpublic character getSelectionText()
getSelectionText in interface SelectableTextpublic integer getSelectionEnd()
getSelectionEnd in interface SelectableTextpublic integer getSelectionStart()
getSelectionStart in interface SelectableTextpublic logical isTextSelected()
isTextSelected in interface SelectableTextisTextSelected in class GenericWidget<FillInConfig>public logical clearSelection()
clearSelection in interface SelectableTextpublic logical removeSelection()
removeSelection in interface SelectableTextpublic logical editCopy()
editCopy in interface SelectableTexttrue if operation success, false otherwise.public logical editCut()
editCut in interface SelectableTexttrue if operation success, false otherwise.public logical editPaste()
editPaste in interface SelectableTexttrue if operation success, false otherwise.public logical isEditCanPaste()
isEditCanPaste in interface SelectableTexttrue if operation success, false otherwise.public logical isEditCanUndo()
isEditCanUndo in interface CommonWidgettrue if operation success, false otherwise.public logical editUndo()
editUndo in interface CommonWidgeteditUndo in class GenericWidget<FillInConfig>true if operation success, false otherwise.public void setDisableAutoZap(boolean disableAutoZap)
setDisableAutoZap in interface AutoZapElementsetDisableAutoZap in interface CommonWidgetsetDisableAutoZap in class GenericWidget<FillInConfig>disableAutoZap - true if the option is set to ON.public void setDisableAutoZap(logical value)
setDisableAutoZap in interface AutoZapElementvalue - New value for the attribute.public logical isDisableAutoZap()
isDisableAutoZap in interface AutoZapElementpublic void setAutoZap(boolean value)
setAutoZap in interface AutoZapElementvalue - New value for the attribute.public void setAutoZap(logical autoZap)
setAutoZap in interface AutoZapElementautoZap - New value for the attribute.public logical isAutoZap()
isAutoZap in interface AutoZapElementpublic void setPasswordField(boolean value)
setPasswordField in interface PasswordFieldInterfacevalue - Value of the attribute.public void setPasswordField(logical value)
setPasswordField in interface PasswordFieldInterfacevalue - Value of the attribute.public logical isPasswordField()
isPasswordField in interface PasswordFieldInterfacepublic void setBlank(boolean value)
setBlank in interface BlankInterfacesetBlank in interface CommonWidgetsetBlank in class GenericWidget<FillInConfig>value - Value of the attribute.public void setBlank(logical value)
setBlank in interface BlankInterfacevalue - Value of the attribute.public logical isBlank()
isBlank in interface BlankInterfacepublic void setDeblank(boolean value)
setDeblank in interface CommonWidgetsetDeblank in interface DeblankInterfacesetDeblank in class GenericWidget<FillInConfig>value - Value of the attribute.public void setDeblank(logical value)
setDeblank in interface DeblankInterfacevalue - Value of the attribute.public logical isDeblank()
isDeblank in interface DeblankInterfacepublic integer getCursorOffset()
getCursorOffset in interface CommonWidgetgetCursorOffset in class GenericWidget<FillInConfig>public void setCursorOffset(double offset)
setCursorOffset in interface CommonWidgetsetCursorOffset in class GenericWidget<FillInConfig>offset - The character index at which the cursor is to be placed.public void setCursorOffset(NumberType offset)
setCursorOffset in interface CommonWidgetsetCursorOffset in class GenericWidget<FillInConfig>offset - The character index at which the cursor is to be placed.public void setCursorOffset(NumberType offset, java.lang.String widgetName)
offset - The character index at which the cursor is to be placed.widgetName - Widget name. Used for error handling.public character getScreenValue()
character type. If
there is no value in the screen buffer (if it is null
which is the representation for an uninitialized value), then return
the empty string.getScreenValue in interface CommonWidgetgetScreenValue in class GenericWidget<FillInConfig>character type or the empty
string if the screen buffer value is uninitialized.protected void setScreenValueInt(character value)
null then this
widget will be set to the uninitialized value.setScreenValueInt in class GenericWidget<FillInConfig>value - The new value for the widget, use null to set
the value as uninitialized.public void setMousePointerName(java.lang.String name)
setMousePointerName in interface Hoverablename - the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl in interface Hoverableprivate void pushFillInDefinition()
private boolean isFocused()
true if this fill-in is focused.public character getSubType()
getSubType in interface SubTypeAttributepublic void setSubType(character value)
setSubType in interface SubTypeAttributevalue - The new value of the subtype object attribute.public void setSubType(java.lang.String value)
setSubType in interface SubTypeAttributevalue - The new value of the subtype object attribute.public void setSideLabelHandle(handle label)
setSideLabelHandle in interface CommonWidgetsetSideLabelHandle in class GenericWidget<FillInConfig>label - The handle to the text widget to be used as the side label of this widget.public handle getSideLabelHandle()
getSideLabelHandle in interface CommonWidgetgetSideLabelHandle in class GenericWidget<FillInConfig>