public abstract class LabeledDataContainer<O extends OutputManager<?>,C extends ControlTextConfig> extends FixedSizeContainer<O> implements WidgetWithConfig<C>, LabeledWidget<O>, DataContainer, MnemonicTrait<O>
| Modifier and Type | Field and Description |
|---|---|
private MnemonicInfo |
columnMnemonic
Column mnemonic information
|
protected C |
config
Component attribute container
|
private MnemonicInfo |
mnemonic
Mnemonic information
|
private Label<O> |
sideLabel
Component label.
|
private boolean |
wasVisible
Flag indicating the widget was made visible at least once.
|
listeners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
LabeledDataContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConfigUpdate(C beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
C |
config()
Provide access to the attributes stored in the widget.
|
protected void |
copyState(Widget<?> w)
Copy the widget state from the specified source widget to this instance.
|
java.util.Optional<MousePtrWrapper> |
defaultMousePtr()
Get default mouse pointer for this widget
|
void |
destroy()
Destroy this widget.
|
double |
getColon()
Return current value of COLON attribute.
|
java.lang.String |
getColumnLabelText()
Return text of the column label.
|
MnemonicInfo |
getColumnMnemonic()
Column
MnemonicInfo instance getter. |
Label<O> |
getLabelInstance()
Return reference to the instance of the
Label attached to
the widget. |
java.lang.String |
getLabelText()
Return text of the label.
|
MnemonicInfo |
getMnemonic()
MnemonicInfo instance getter.
|
double |
getTo()
Return current value of TO attribute.
|
boolean |
isForceLabel()
Get current state of flag which is forces presence of the label
regardless from the frame NO-LABELS option.
|
boolean |
isModified()
Getting the modification state of the widget.
|
boolean |
isNoLabels()
Get current state of NO-LABELS flag.
|
boolean |
isRightAligned()
Get widget alignment policy.
|
void |
postprocessConfig()
Additional processing required when widget configuration is updated AFTER the frame layout
has been performed.
|
void |
setColumnMnemonic(MnemonicInfo mnemonic)
Column
MnemonicInfo instance setter. |
abstract boolean |
setCursorOffset(int offset,
boolean shouldInvalidateSelection)
Sets the cursor offset.
|
void |
setHidden(boolean hidden)
Tracks the hidden state of the widget and attached label.
|
void |
setLabelInstance(Label<O> label)
Assign new instance of
Label to the fill-in widget. |
void |
setMnemonic(MnemonicInfo mnemonic)
MnemonicInfo instance setter.
|
void |
setNoLabels(boolean labels)
Force NO-LABELS flag.
|
void |
setVisible(boolean visible)
Shows or hides the widget and attached label.
|
void |
setWasVisible()
Remember the widget was made visible at least once.
|
boolean |
wasVisible()
Checking if the widget was made visible at least once.
|
minimumSize, requestFocus, requestFocusadd, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, currentFocus, cycleFocus, defaultFocus, deregisterSelectedWidget, detach, dimension, doLayout, draw, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, processKeyEvent, reflectAncestorChange, reflectLocationChanged, registerSelectedWidget, remove, removeContainerStateListener, repaint, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setPhysicalDimensionInt, setSize, setSize, setTabItemList, setWidth, startSizeChange, swap, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged, width_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, 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, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, triggerLocationChanged, unregisterWidgetListener, updateSystemParent, widgetRealized, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitializeacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, dimension, displayPhysicalLocation, draw, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, 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, ignoreEnable, 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, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetListener, validateDisplayValue, widgetStateChanged, width, windowmouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedgetChangedValue, getText, getValue, setValuecreateMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, updateMnemonicwidgetsAsListprivate Label<O extends OutputManager<?>> sideLabel
private boolean wasVisible
protected C extends ControlTextConfig config
private MnemonicInfo mnemonic
private MnemonicInfo columnMnemonic
public C config()
config in interface Widget<O extends OutputManager<?>>config in interface ConfigOwner<C extends ControlTextConfig>config in class AbstractWidget<O extends OutputManager<?>>public void afterConfigUpdate(C beforeUpdate)
afterConfigUpdate in interface ConfigOwner<C extends ControlTextConfig>beforeUpdate - Config reference capturing the config state before
the owner's config was modified.public double getColon()
getColon in interface LabeledWidget<O extends OutputManager<?>>public java.lang.String getColumnLabelText()
getColumnLabelText in interface LabeledWidget<O extends OutputManager<?>>public Label<O> getLabelInstance()
Label attached to
the widget.getLabelInstance in interface LabeledWidget<O extends OutputManager<?>>Label instance.public java.lang.String getLabelText()
getLabelText in interface LabeledWidget<O extends OutputManager<?>>public double getTo()
getTo in interface LabeledWidget<O extends OutputManager<?>>public boolean isForceLabel()
isForceLabel in interface LabeledWidget<O extends OutputManager<?>>public boolean isNoLabels()
isNoLabels in interface LabeledWidget<O extends OutputManager<?>>public boolean isRightAligned()
isRightAligned in interface LabeledWidget<O extends OutputManager<?>>true if widget is formatted for right alignment.public void setLabelInstance(Label<O> label)
Label to the fill-in widget.setLabelInstance in interface LabeledWidget<O extends OutputManager<?>>label - Reference to new Label instance.public void setNoLabels(boolean labels)
setNoLabels in interface LabeledWidget<O extends OutputManager<?>>labels - New value of the flag.public void setVisible(boolean visible)
setVisible in interface Widget<O extends OutputManager<?>>setVisible in class AbstractWidget<O extends OutputManager<?>>visible - true to make the widget visible,
false to hide the widget.public void setHidden(boolean hidden)
setHidden in interface Widget<O extends OutputManager<?>>setHidden in class AbstractWidget<O extends OutputManager<?>>hidden - New hidden state.public boolean isModified()
isModified in interface DataContainertrue if the widget value was modified,
false otherwise.public boolean wasVisible()
wasVisible in interface LabeledWidget<O extends OutputManager<?>>true if the widget was visible,
false otherwise.public void setWasVisible()
setWasVisible in interface LabeledWidget<O extends OutputManager<?>>public void postprocessConfig()
postprocessConfig in interface Widget<O extends OutputManager<?>>postprocessConfig in class AbstractWidget<O extends OutputManager<?>>public void destroy()
destroy in interface Widget<O extends OutputManager<?>>destroy in class AbstractContainer<O extends OutputManager<?>>public java.util.Optional<MousePtrWrapper> defaultMousePtr()
defaultMousePtr in interface Widget<O extends OutputManager<?>>Optional.empty()
if one is inherited from the enclosing framepublic MnemonicInfo getMnemonic()
The implementors should simply return the value of the mnemonic class field. No additional processing logic is advised.
getMnemonic in interface MnemonicTrait<O extends OutputManager<?>>public void setMnemonic(MnemonicInfo mnemonic)
The implementors should simply assign the parameter value to the mnemonic class field. No additional processing logic is advised.
setMnemonic in interface MnemonicTrait<O extends OutputManager<?>>mnemonic - Mnemonic info.public MnemonicInfo getColumnMnemonic()
MnemonicInfo instance getter.
The implementors should simply return the value of the mnemonic class field. No additional processing logic in the implemented method is advised.
The method will return a valid value when the implementing widget supports column label.
getColumnMnemonic in interface MnemonicTrait<O extends OutputManager<?>>public void setColumnMnemonic(MnemonicInfo mnemonic)
MnemonicInfo instance setter.
The implementors should simply assign the parameter value to the mnemonic class field. No additional processing logic in the implemented method is advised.
setColumnMnemonic in interface MnemonicTrait<O extends OutputManager<?>>mnemonic - Mnemonic info.public abstract boolean setCursorOffset(int offset,
boolean shouldInvalidateSelection)
offset - The new offset value.shouldInvalidateSelection - The flag that shows if we should invalidate selection.true if the cursor offset is valid and set.protected void copyState(Widget<?> w)
copyState in class AbstractContainer<O extends OutputManager<?>>w - The source widget which state needs to be copied.