public class FillInWidget extends ControlTextWidget<FillInConfig> implements AutoZapElement, SelectableText, PasswordFieldInterface, BlankInterface, DeblankInterface, Hoverable
BaseEntity.CharsPixels
ALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHT
group
config, deleted, frame
name, nextSibling, prevSibling
instProc
Constructor and Description |
---|
FillInWidget()
Default constructor.
|
FillInWidget(boolean dynamic)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
logical |
clearSelection()
Clears text selection
|
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.
|
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.
|
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 |
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 |
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.
|
void |
setScreenValue(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 |
startGrouping(FillInWidget prev)
Start text group of widgets (word wrap mode).
|
afterConfigUpdate, isReadOnly, setAt, setAtFormatLength, setHeader, setReadOnly, setStatic
changeFontWorker, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getSideLabelHandle, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDataType, setDataType, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields
canSetPixelPositionInChui, getBgColor, getColumn, getDColor, getFgColor, getFont, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getPrevSibling, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, setAlign, setBgColor, setBgColor, setBgColor, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFont, setGroup, setHeightChars, setHeightChars, setHeightPixels, setHeightPixels, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setTabStop, setTabStop, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthPixels, setWidthPixels, setX, setX, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow
_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _setDynamic, _setVisible, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, cleanup, colorDisplay, colorPrompt, config, deselectRows, disable, dynamic, enable, finishConfigProcessing, finishSetup, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getDbName, getFirstTabItem, getFormat, getFrame, getFrameHandle, getHelp, getHWND, getId, getLabel, getLabelFont, getLabelStr, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getPreviousTabItem, getQuery, getRetainShape, getScreenValue, getStretchToFit, getTable, getTitleFont, getTransparent, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isChained, isChecked, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notSettable, notWorker, preRealizeCheck, pushScreenDefinition, readOnlyError, realize, refresh, resourceDelete, selectAll, selectFocusedRow, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setDbname, setFirstTabItem, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, 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, 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, truncatePixelSize, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLayout, view, widgetName
delete, firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, name, name, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData
getResourceType, id, id, instantiatingProcedure, invalidAttribute, setInstantiatingProcedure, type, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTarget
setScreenValue
getPrivateData, setPrivateData, setPrivateData
getResourceType
id, id, unknown
public 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(boolean autoReturn)
setAutoReturn
in interface CommonWidget
setAutoReturn
in class GenericWidget<FillInConfig>
autoReturn
- true
if the option is set to ON.public void setReadOnly(boolean newReadOnly)
newReadOnly
- 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 SelectableText
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.public logical setSelection(int64 start, int end)
setSelection
in interface SelectableText
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.public logical setSelection(int start, int64 end)
setSelection
in interface SelectableText
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.public logical setSelection(int start, int end)
setSelection
in interface SelectableText
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.public character getSelectionText()
getSelectionText
in interface SelectableText
public integer getSelectionEnd()
getSelectionEnd
in interface SelectableText
public integer getSelectionStart()
getSelectionStart
in interface SelectableText
public logical isTextSelected()
isTextSelected
in interface SelectableText
isTextSelected
in class GenericWidget<FillInConfig>
public logical clearSelection()
clearSelection
in interface SelectableText
public logical removeSelection()
removeSelection
in interface SelectableText
public void setDisableAutoZap(boolean disableAutoZap)
setDisableAutoZap
in interface AutoZapElement
setDisableAutoZap
in interface CommonWidget
setDisableAutoZap
in class GenericWidget<FillInConfig>
disableAutoZap
- true
if the option is set to ON.public void setDisableAutoZap(logical value)
setDisableAutoZap
in interface AutoZapElement
value
- New value for the attribute.public logical isDisableAutoZap()
isDisableAutoZap
in interface AutoZapElement
public void setAutoZap(boolean value)
setAutoZap
in interface AutoZapElement
value
- New value for the attribute.public void setAutoZap(logical autoZap)
setAutoZap
in interface AutoZapElement
autoZap
- New value for the attribute.public logical isAutoZap()
isAutoZap
in interface AutoZapElement
public void setPasswordField(boolean value)
setPasswordField
in interface PasswordFieldInterface
value
- Value of the attribute.public void setPasswordField(logical value)
setPasswordField
in interface PasswordFieldInterface
value
- Value of the attribute.public logical isPasswordField()
isPasswordField
in interface PasswordFieldInterface
public void setBlank(boolean value)
setBlank
in interface BlankInterface
setBlank
in interface CommonWidget
setBlank
in class GenericWidget<FillInConfig>
value
- Value of the attribute.public void setBlank(logical value)
setBlank
in interface BlankInterface
value
- Value of the attribute.public logical isBlank()
isBlank
in interface BlankInterface
public void setDeblank(boolean value)
setDeblank
in interface CommonWidget
setDeblank
in interface DeblankInterface
setDeblank
in class GenericWidget<FillInConfig>
value
- Value of the attribute.public void setDeblank(logical value)
setDeblank
in interface DeblankInterface
value
- Value of the attribute.public logical isDeblank()
isDeblank
in interface DeblankInterface
public integer getCursorOffset()
getCursorOffset
in interface CommonWidget
getCursorOffset
in class GenericWidget<FillInConfig>
public void setCursorOffset(double offset)
setCursorOffset
in interface CommonWidget
setCursorOffset
in class GenericWidget<FillInConfig>
offset
- The character index at which the cursor is to be placed.public void setCursorOffset(NumberType offset)
setCursorOffset
in interface CommonWidget
setCursorOffset
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 CommonWidget
getScreenValue
in class GenericWidget<FillInConfig>
character
type or the empty
string if the screen buffer value is uninitialized.public void setScreenValue(character value)
null
then this
widget will be set to the uninitialized value.setScreenValue
in interface CommonWidget
setScreenValue
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 Hoverable
name
- the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl
in interface Hoverable
private void pushFillInDefinition()
private boolean isFocused()
true
if this fill-in is focused.