public abstract class Text<O extends OutputManager<?>> extends FillIn<O,TextConfig>
Modifier and Type | Class and Description |
---|---|
protected static class |
Text.ContentMnemonic<G extends OutputManager<?>>
Container class for the TEXT's content mnemonic.
|
Widget.ZOrderClass
Modifier and Type | Field and Description |
---|---|
protected boolean |
assigned
Track value assignment.
|
protected MnemonicTrait<O> |
contentMnemonic
Mnemonic information for the TEXT's content.
|
browse, drawLine, editScroller, justActivated, leftAnchor, rightAnchor, selected, 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 |
---|---|
void |
clear(int selectionStart,
int selectionEnd)
Overridden to prevent clearing of the content.
|
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 |
isFocusable()
Checks whether this attribute container can receive focus generally.
|
void |
processKeyEvent(KeyInput ke)
Intercept and ignore key events.
|
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, createLeftAnchor, createRightAnchor, currentFocus, defaultFocus, draw, draw, getCurrentFormat, getCursorOffset, getDataEntryReturn, getDrawText, getEditScroller, getFirstInGroup, getFormat, getInsertMode, getLastInGroup, getLastOffset, getScreenValue, getText, getText, getValidCursorPos, getValue, getVariable, height, initialize, invalidateSelection, isAtField, isDrawLine, isFormatCheck, isInAutoReturn, isLeftEdgeWidget, isLinkedToBrowse, isRightAligned, isRightAlignedInt, isRightEdgeWidget, isSelected, isSelectionValid, isZapActive, isZapToBeApplied, nativeHeight, nativeWidth, refresh, requestFocus, reset, resetCaret, resetEditScroller, setAttrFormat, setBrowse, setCursorOffset, setDataType, setEnabled, setForceLeft, setFormatCheck, setHeaderParm, setInAutoReturn, setInsertMode, setPendingNoZap, setSize, setTextGroup, setUnderline, setValue, setZapMode, setZapMode, silentActivation, toString, update, updateCursorOffsetValue, updateSize, updateZapState, width
config, defaultMousePtr, destroy, getColon, getColumnLabelText, getColumnMnemonic, getLabelInstance, getLabelText, getMnemonic, getTo, isForceLabel, isModified, isNoLabels, postprocessConfig, setColumnMnemonic, setHidden, setLabelInstance, setMnemonic, setNoLabels, setVisible, setWasVisible, wasVisible
minimumSize
add, add, add, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, cycleFocus, detach, dimension, doLayout, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getWidgetsList, hasFocusable, insets, lastFocus, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, prepareWidgets, prevFocus, remove, repaint, replace, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setWidth, startSizeChange, unrealize, updateSizeWorker, widgets
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, enable, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, ignoreAction, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, prepParentLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, sync, topLevelWindow, translate, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
removeSelectedText, setSelection
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, dimension, displayPhysicalLocation, enclosingFrame, enforceDefaultMousePtr, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, insets, isDirectManipulable, isDisplayed, isEnabled, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestSync, resizeTo, screen, screenLocation, screenPhysicalLocation, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, topLevelWindow, unrealize, window
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
createMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, updateMnemonic
protected boolean assigned
protected final MnemonicTrait<O extends OutputManager<?>> contentMnemonic
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 boolean isFocusable()
isFocusable
in interface Widget<O extends OutputManager<?>>
isFocusable
in class AbstractWidget<O extends OutputManager<?>>
true
if this container can be focused under
certain conditions. false
if, and only if, this
attribute container can never receive focus.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 void processKeyEvent(KeyInput ke)
processKeyEvent
in interface Widget<O extends OutputManager<?>>
processKeyEvent
in class FillIn<O extends OutputManager<?>,TextConfig>
ke
- Key event structure.public int getInitialCursorPos()
For TEXT widgets, this always returns 0.
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>