public abstract class LabeledPanel<O extends OutputManager<?>,C extends ControlSetConfig> extends AbstractContainer<O> implements LabeledWidget<O>, WidgetWithConfig<C>, MnemonicTrait<O>
Widget.ZOrderClass
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
|
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, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, currentFocus, cycleFocus, defaultFocus, detach, dimension, doLayout, draw, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getWidgetsList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, prepareWidgets, prevFocus, processKeyEvent, remove, repaint, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setSize, setWidth, startSizeChange, unrealize, updateSizeWorker, widgets, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, 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, isFocusable, 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, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, defaultMousePtr, 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, isDirectManipulable, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestFocus, requestSync, resizeTo, screen, screenLocation, screenPhysicalLocation, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, topLevelWindow, unrealize, width, window
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
initialize
createMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, updateMnemonic
protected 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
- 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<?>>
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<?>>