public class RadioButtonGuiImpl extends RadioButton<GuiOutputManager>
Widget.ZOrderClass
Modifier and Type | Field and Description |
---|---|
private CoordinatesConversion |
cc
Coordinate converter
|
private GuiColorResolver |
gc
Color resolver
|
private GuiDriver |
gd
Screen driver
|
private GuiFontResolver |
gf
Font resolver
|
autoResize, config, focused, width
location, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
RadioButtonGuiImpl(RadioSetConfig config,
java.lang.String label,
BaseDataType value)
Use this constructor when you want to set both the label and the value.
|
Modifier and Type | Method and Description |
---|---|
MnemonicInfo |
createMnemonic()
Creates new
MnemonicInfoGuiImpl instance. |
void |
draw()
Called by this RadioButton's parent container.
|
void |
drawCaret()
Draw cursor at the correct position.
|
int |
getItemHeight()
Gets the item height depending on chosen font.
|
double |
height()
Return the height of the radio button in character units.
|
NativeDimension |
physicalDimension()
Get widget physical dimension, expressed in units native to UI type.
|
NativePoint |
physicalLocation()
Get widget physical location, expressed in units native to UI type.
|
boolean |
processMnemonic(int key)
Process the given key, if this widget's mnemonic matches the key.
|
double |
width()
Return the width of the radio button in character units.
|
(package private) int |
widthNative()
Compute the native width of this radio-button (without any extra right-padding).
|
afterConfigUpdate, config, getItemId, getMnemonic, getText, getValue, hasFocusable, initialize, isFocused, isModified, isSelected, location, processEvent, replace, setFocused, setItemId, setLocation, setMnemonic, setPhysicalLocation, setSelected, setValue, setWidthChars
add, add, add, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, currentFocus, cycleFocus, defaultFocus, destroy, detach, dimension, doLayout, endSizeChange, findMouseSource, firstFocus, focus, focusTraversable, focusWorker, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getWidgetsList, 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
_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, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processFocusEvent, processKeyListeners, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, setVisible, show, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getColumnMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, isMnemonicSupported, setColumnMnemonic, updateMnemonic
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, defaultMousePtr, displayPhysicalLocation, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, isDirectManipulable, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, postprocessConfig, processDirectManipulationEvent, processFocusEvent, processKeyListeners, raiseLegacyMouseEvents, repaint, requestSync, resizeTo, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, setVisible, show, supportsCustomMousePointer, topLevelWindow, window
private GuiDriver gd
private CoordinatesConversion cc
private GuiColorResolver gc
private GuiFontResolver gf
RadioButtonGuiImpl(RadioSetConfig config, java.lang.String label, BaseDataType value)
config
- Reference to config.label
- The button's label which can clarify the button purpose.value
- The data which is the button's value.public void draw()
draw
in interface Widget<GuiOutputManager>
draw
in class RadioButton<GuiOutputManager>
public NativePoint physicalLocation()
physicalLocation
in interface Widget<GuiOutputManager>
physicalLocation
in class RadioButton<GuiOutputManager>
public NativeDimension physicalDimension()
physicalDimension
in interface Widget<GuiOutputManager>
physicalDimension
in class AbstractWidget<GuiOutputManager>
public int getItemHeight()
public double width()
width
in interface Widget<GuiOutputManager>
width
in class RadioButton<GuiOutputManager>
int widthNative()
public double height()
height
in interface Widget<GuiOutputManager>
height
in class RadioButton<GuiOutputManager>
public void drawCaret()
drawCaret
in interface Widget<GuiOutputManager>
drawCaret
in class RadioButton<GuiOutputManager>
Widget.drawCaret()
public boolean processMnemonic(int key)
processMnemonic
in interface Widget<GuiOutputManager>
processMnemonic
in class AbstractWidget<GuiOutputManager>
key
- The pressed mnemonic key code.true
if this widget accepted this mnemonic key. Not enabled or not
visible widget will not accept it.public MnemonicInfo createMnemonic()
MnemonicInfoGuiImpl
instance.MnemonicInfoGuiImpl
instance.