bibliothek.gui.dock.common.action
Class CRadioButton

java.lang.Object
  extended by bibliothek.gui.dock.common.action.CAction
      extended by bibliothek.gui.dock.common.intern.action.CDecorateableAction<A>
          extended by bibliothek.gui.dock.common.intern.action.CDropDownItem<A>
              extended by bibliothek.gui.dock.common.intern.action.CSelectableAction<CommonSimpleRadioAction>
                  extended by bibliothek.gui.dock.common.action.CRadioButton

public abstract class CRadioButton
extends CSelectableAction<CommonSimpleRadioAction>

An action which behaves like a JRadioButton.
Several CRadioButtons can be added to a CRadioGroup, only one CRadioButton of such a group will be selected.

Author:
Benjamin Sigg

Constructor Summary
  CRadioButton()
          Creates a new radiobutton
protected CRadioButton(CommonSimpleRadioAction action)
          Creates a new radiobutton using action as internal representation
  CRadioButton(String text, Icon icon)
          Creates a new radiobutton
 
Method Summary
protected  void init(CommonSimpleRadioAction action)
          Initializes this action, this method can be called only once.
 
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.CDropDownItem
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
 
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
 

Constructor Detail

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 button
icon - the icon of this button
Method Detail

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