bibliothek.gui.dock.common.action
Class CRadioButton
java.lang.Object
bibliothek.gui.dock.common.action.CAction
bibliothek.gui.dock.common.intern.action.CDecorateableAction<A>
bibliothek.gui.dock.common.intern.action.CDropDownItem<A>
bibliothek.gui.dock.common.intern.action.CSelectableAction<CommonSimpleRadioAction>
bibliothek.gui.dock.common.action.CRadioButton
public abstract class CRadioButton
- extends CSelectableAction<CommonSimpleRadioAction>
An action which behaves like a JRadioButton
.
Several CRadioButton
s can be added to a CRadioGroup
, only
one CRadioButton
of such a group will be selected.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.gui.dock.common.intern.action.CSelectableAction |
changed, getDisabledSelectedHoverIcon, getDisabledSelectedPressedIcon, getSelectedHoverIcon, getSelectedIcon, getSelectedPressedIcon, isSelected, setDisabledSelectedHoverIcon, setDisabledSelectedPressedIcon, setSelected, setSelectedHoverIcon, setSelectedIcon, setSelectedPressedIcon |
Methods inherited from class bibliothek.gui.dock.common.intern.action.CDecorateableAction |
addDecorateableActionListener, getAccelerator, getDisabledHoverIcon, getDisabledIcon, getDisabledPressedIcon, getHoverIcon, getIcon, getPressedIcon, getText, getTooltip, intern, isEnabled, isShowTextOnButtons, removeDecorateableActionListener, setAccelerator, setDisabledHoverIcon, setDisabledIcon, setDisabledPressedIcon, setEnabled, setHoverIcon, setIcon, setPressedIcon, setShowTextOnButtons, setText, setTooltip |
Methods inherited from class bibliothek.gui.dock.common.action.CAction |
init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRadioButton
public CRadioButton()
- Creates a new radiobutton
CRadioButton
protected CRadioButton(CommonSimpleRadioAction action)
- Creates a new radiobutton using
action
as internal representation
- Parameters:
action
- the internal representation, can be null
in which case
subclasses should call init(CommonSimpleRadioAction)
CRadioButton
public CRadioButton(String text,
Icon icon)
- Creates a new radiobutton
- Parameters:
text
- the text of this buttonicon
- the icon of this button
init
protected void init(CommonSimpleRadioAction action)
- Description copied from class:
CDecorateableAction
- Initializes this action, this method can be called only once.
- Overrides:
init
in class CSelectableAction<CommonSimpleRadioAction>
- Parameters:
action
- the internal representation