public abstract class Text<O extends OutputManager<?>> extends FillIn<O,TextConfig> implements Label<O>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Text.ContentMnemonic<G extends OutputManager<?>>
Container class for the TEXT's content mnemonic.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
assigned
Track value assignment.
|
protected MnemonicTrait<O> |
contentMnemonic
Mnemonic information for the TEXT's content.
|
protected boolean |
forcedAsText
true if the widget has TextConfig.explicitViewAs flag or the parent frame has
FrameConfig.useText flag. |
browseColumn, drawLine, editScroller, justActivated, leftAnchor, rightAnchor, selected, skipCursorActivation, useUnderlineconfiglisteners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
Text(WidgetId id,
TextConfig cfg,
MnemonicTrait<O> contentMnemonic)
Special constructor used to restore component using given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMovetoTop()
Flag indicating if this widget can be moved to top by a DISPLAY statement when WINDOW:KEEP-FRAME-Z-ORDER
flag is set.
|
void |
clear(int selectionStart,
int selectionEnd)
Overridden to prevent clearing of the content.
|
protected void |
copyState(Widget<?> w)
Copy the widget state from the specified source widget to this instance.
|
void |
display()
Fills data structures from variable's value and updates the mnemonic.
|
void |
drawCaret()
Sets position of terminal's cursor.
|
protected NativeDimension |
editableNativeDimension()
Determine the portion of the widget's editable part.
|
boolean |
focusTraversable()
This component will not receive an input focus when Tab or Shift-Tab is
pressed.
|
int |
getInitialCursorPos()
Compute the initial cursor position, depending on the widget's implementation.
|
protected int |
getNativeCursorPos()
Get the cursor position, in native units.
|
boolean |
ignoreEnable()
Some widgets can ignore an ENABLE statement (like read-only, hidden, TEXT).
|
void |
initialize(WidgetId id,
TextConfig cfg)
Replacement API for the logic which should exist in the widget's c'tor, but the logic
can't be executed as it depends on the widget being registered into the official registry.
|
java.lang.String |
label()
Enable empty mode.
|
void |
setValue(BaseDataType value)
Sets the new variable value in the widget, set appropriate flag and update the mnemonic.
|
activate, activate, adjustCursor, adjustEditScroller, afterConfigUpdate, blankScreenValue, clear, clear, clearWidget, createLeftAnchor, createRightAnchor, currentFocus, defaultFocus, draw, draw, fireValueChanged, getBrowse, getCurrentFormat, getCursorOffset, getDataEntryReturn, getDrawText, getEditScroller, getFirstInGroup, getFormat, getInsertMode, getLastInGroup, getLastOffset, getScreenValue, getText, getText, getTriggerWidget, getValidCursorPos, getValue, getVariable, height, initSelection, invalidateSelection, isAtField, isCharacterInGui, isDrawLine, isFormatCheck, isInAutoReturn, isIntegerInGui, isLeftEdgeWidget, isLinkedToBrowse, isPendingNoZap, isRightAligned, isRightAlignedInt, isRightEdgeWidget, isSelected, isSelectionValid, isZapActive, isZapToBeApplied, nativeHeight, nativeWidth, processKeyEvent, refresh, refresh, requestFocus, reset, resetCaret, resetEditScroller, setAttrFormat, setBrowseColumn, setCursorOffset, setCursorOffset, setDataType, setEnabled, setForceLeft, setForceRight, setFormatCheck, setHeaderParm, setInAutoReturn, setInsertMode, setPendingNoZap, setSelection, setSize, setSkipCursorActivation, setTextGroup, setUnderline, setValue, setZapMode, setZapMode, silentActivation, toScreenValue, toString, update, updateCursorOffsetValue, updateSize, updateUIAfterValueSet, updateZapState, validateDisplayValue, widthconfig, defaultMousePtr, destroy, getColon, getColumnLabelText, getColumnMnemonic, getLabelInstance, getLabelText, getMnemonic, getTo, isForceLabel, isModified, isNoLabels, postprocessConfig, setColumnMnemonic, setHidden, setLabelInstance, setMnemonic, setNoLabels, setVisible, setWasVisible, wasVisibleminimumSize, requestFocusadd, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, cycleFocus, deregisterSelectedWidget, detach, dimension, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, insets, lastFocus, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, reflectAncestorChange, reflectLocationChanged, registerSelectedWidget, remove, removeContainerStateListener, repaint, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setPhysicalDimensionInt, setSize, setTabItemList, setWidth, startSizeChange, swap, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, enable, enableTooltip, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hasTooltip, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, translate, triggerLocationChanged, unregisterWidgetListener, updateSystemParent, widgetRealized, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfig, isDelimiter, isUnderlined, linkTo, postprocessConfig, setEmptyModeOff, setEmptyModeOn, setRightAligned, setWidthacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, completeTrigger, defaultMousePtr, destroy, dimension, displayPhysicalLocation, draw, enclosingFrame, enforceDefaultMousePtr, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hasTooltip, height, hidden, hide, highlighted, initialHeight, initialWidth, insets, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, show, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetListener, validateDisplayValue, widgetStateChanged, width, windowmouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasededitPaste, isEditCanUndo, removeSelectedText, setSelectiongetChangedValuecreateMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, updateMnemonicwidgetsAsListprotected boolean assigned
protected final MnemonicTrait<O extends OutputManager<?>> contentMnemonic
protected boolean forcedAsText
true if the widget has TextConfig.explicitViewAs flag or the parent frame has
FrameConfig.useText flag.public Text(WidgetId id, TextConfig cfg, MnemonicTrait<O> contentMnemonic)
id - The widget's ID.cfg - Configuration data.contentMnemonic - The mnemonic information for the TEXT's content.public void initialize(WidgetId id, TextConfig cfg)
This API is called after the widget is created and added to the registry.
initialize in interface WidgetWithConfig<TextConfig>initialize in class FillIn<O extends OutputManager<?>,TextConfig>id - The widget's ID.cfg - The config used to initialize this widget.public void drawCaret()
drawCaret in interface Widget<O extends OutputManager<?>>drawCaret in class FillIn<O extends OutputManager<?>,TextConfig>public boolean focusTraversable()
focusTraversable in interface Widget<O extends OutputManager<?>>focusTraversable in class FillIn<O extends OutputManager<?>,TextConfig>false.public void setValue(BaseDataType value)
setValue in interface DataContainersetValue in class FillIn<O extends OutputManager<?>,TextConfig>value - New value for the screen buffer.public void display()
display in class FillIn<O extends OutputManager<?>,TextConfig>public void clear(int selectionStart,
int selectionEnd)
clear in class FillIn<O extends OutputManager<?>,TextConfig>selectionStart - The start selection index (inclusive).selectionEnd - The end selection index (exclusive).public int getInitialCursorPos()
For TEXT widgets, this always returns 0.
getInitialCursorPos in interface EditableFieldpublic java.lang.String label()
label in interface Label<O extends OutputManager<?>>public boolean ignoreEnable()
ignoreEnable in interface Widget<O extends OutputManager<?>>true if the ENABLE statement must ignore it.public boolean canMovetoTop()
canMovetoTop in interface Widget<O extends OutputManager<?>>canMovetoTop in class FillIn<O extends OutputManager<?>,TextConfig>true.protected void copyState(Widget<?> w)
copyState in class FillIn<O extends OutputManager<?>,TextConfig>w - The source widget which state needs to be copied.protected int getNativeCursorPos()
getNativeCursorPos in class FillIn<O extends OutputManager<?>,TextConfig>protected NativeDimension editableNativeDimension()
For ChUI widgets, this is the same as the widget's physical dimension.
editableNativeDimension in class FillIn<O extends OutputManager<?>,TextConfig>