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.
|
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. |
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
add, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, currentFocus, cycleFocus, defaultFocus, detach, dimension, doLayout, draw, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, formatDump, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, prepareWidgets, prevFocus, processKeyEvent, reflectAncestorChange, reflectLocationChange, remove, removeContainerStateListener, repaint, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setSize, setTabItemList, setWidth, startSizeChange, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, ignoreAction, isCurrent, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, prepParentLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, dimension, displayPhysicalLocation, draw, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, height, hidden, hide, highlighted, insets, isCurrent, isDirectManipulable, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, topLevelWindow, unrealize, width, window
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
getText, getValue, setValue
createMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, updateMnemonic
private 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
- 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 DataContainer
true
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<?>>
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<?>>
protected void copyState(Widget<?> w)
copyState
in class AbstractContainer<O extends OutputManager<?>>
w
- The source widget which state needs to be copied.