public abstract class LabeledPanel<O extends OutputManager<?>,C extends ControlSetConfig> extends AbstractContainer<O> implements LabeledWidget<O>, WidgetWithConfig<C>, MnemonicTrait<O>
| Modifier and Type | Field and Description |
|---|---|
private MnemonicInfo |
columnMnemonic
Column mnemonic information
|
protected C |
config
Component attribute container.
|
private Label<O> |
label
Component label.
|
private MnemonicInfo |
mnemonic
Mnemonic information
|
listeners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
LabeledPanel()
Default constructor.
|
| 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.
|
void |
destroy()
Destroy this widget.
|
double |
getColon()
Return current value of COLON option.
|
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 TO column.
|
boolean |
isForceLabel()
Get current state of flag which is forces presence of the label
regardless from the frame NO-LABELS option.
|
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 widget. |
void |
setMnemonic(MnemonicInfo mnemonic)
MnemonicInfo instance setter.
|
void |
setNoLabels(boolean labels)
Force NO-LABELS flag.
|
void |
setVisible(boolean visible)
Shows or hides the radio-set and its label.
|
void |
setWasVisible()
Remember the widget was made visible at least once.
|
boolean |
wasVisible()
Checking if the widget was made visible at least once.
|
add, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, 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, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, processKeyEvent, reflectAncestorChange, reflectLocationChanged, registerSelectedWidget, remove, removeContainerStateListener, repaint, replace, requestFocus, 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, waitacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, defaultMousePtr, 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, mouseReleasedinitializecreateMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, updateMnemonicwidgetsAsListprotected C extends ControlSetConfig config
private Label<O extends OutputManager<?>> label
private MnemonicInfo mnemonic
private MnemonicInfo columnMnemonic
public C config()
config in interface Widget<O extends OutputManager<?>>config in interface ConfigOwner<C extends ControlSetConfig>config in class AbstractWidget<O extends OutputManager<?>>public void afterConfigUpdate(C beforeUpdate)
afterConfigUpdate in interface ConfigOwner<C extends ControlSetConfig>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 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 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 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.