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, useUnderline
config
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, isLeftEdgeWidget, isLinkedToBrowse, isRightAligned, isRightAlignedInt, isRightEdgeWidget, isSelected, isSelectionValid, isZapActive, isZapToBeApplied, nativeHeight, nativeWidth, processKeyEvent, refresh, refresh, requestFocus, reset, resetCaret, resetEditScroller, setAttrFormat, setBrowseColumn, setCursorOffset, setDataType, setEnabled, setForceLeft, setForceRight, setFormatCheck, setHeaderParm, setInAutoReturn, setInsertMode, setPendingNoZap, setSize, setTextGroup, setUnderline, setValue, setZapMode, setZapMode, silentActivation, toScreenValue, toString, update, updateCursorOffsetValue, updateSize, updateZapState, validateDisplayValue, width
config, defaultMousePtr, destroy, getColon, getColumnLabelText, getColumnMnemonic, getLabelInstance, getLabelText, getMnemonic, getTo, isForceLabel, isModified, isNoLabels, postprocessConfig, setColumnMnemonic, setHidden, setLabelInstance, setMnemonic, setNoLabels, setVisible, setWasVisible, wasVisible
minimumSize, requestFocus
add, 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, reflectLocationChange, registerSelectedWidget, remove, removeContainerStateListener, repaint, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setTabItemList, setWidth, startSizeChange, 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, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, 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, refresh, registerWidgetStateListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, translate, unregisterWidgetStateListener, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
config, isDelimiter, isUnderlined, linkTo, postprocessConfig, setEmptyModeOff, setEmptyModeOn, setRightAligned, setWidth
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, defaultMousePtr, destroy, dimension, displayPhysicalLocation, draw, enclosingFrame, enforceDefaultMousePtr, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, height, hidden, hide, highlighted, initialHeight, initialWidth, insets, isCurrent, isDirectManipulable, isDirectManipulationActive, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, 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, registerWidgetStateListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetStateListener, validateDisplayValue, widgetStateChanged, width, window
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
editPaste, isEditCanUndo, removeSelectedText, setSelection
createMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, updateMnemonic
widgetsAsList
protected 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 DataContainer
setValue
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 EditableField
public 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>