public class GRadioButton extends GComponent implements GDisplay, ActionListener
isSelected() and setSelected(boolean). The widget does not handle loading and saving in
configuration file. This task is realized by high level widgets as GChoice.GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GRadioButton(String text)
Constructor.
|
GRadioButton(String widgetId,
String text)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
Component |
getComponent()
Returns the low level Swing Component encapsulated by the class if any, otherwise returns
null.
|
JRadioButton |
getJRadioButton()
Return the JRadioButton associated with the widget.
|
String |
getText()
Get the radio button text.
|
boolean |
isSelected()
Return if the radio button is selected.
|
void |
setSelected(boolean b)
Sets the selection status of the radio button.
|
void |
setShortcut(int shorcutKey)
Set the shortcut key for selecting the GRadioButton.
|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GRadioButton(String text)
text - to display on the radio button.public boolean isSelected()
public void setSelected(boolean b)
b - selection status of the radio button.public void display()
GDisplaypublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic Component getComponent()
GComponentgetComponent in class GComponentpublic JRadioButton getJRadioButton()
public String getText()
public void setShortcut(int shorcutKey)
shorcutKey - the shortcut key to be attached to the RadioButton.Copyright © 2024. All rights reserved.