org.jfree.ui.action
Class ActionRadioButton
JRadioButton
org.jfree.ui.action.ActionRadioButton
The ActionRadioButton is used to connect an Action and its properties to a JRadioButton.
This functionality is already implemented in JDK 1.3 but needed for JDK 1.2.2 compatibility.
ActionRadioButton() - Creates a Button without any text and without an assigned Action.
|
ActionRadioButton(Action action) - Nreates an ActionButton and assigns the given action with the button.
|
ActionRadioButton(Icon icon) - Creates an ActionButton and sets the given icon on the button.
|
ActionRadioButton(String text) - Creates a Button and set the given text as label.
|
ActionRadioButton(String text, Icon icon) - Creates an ActionButton and sets the given text and icon on the button.
|
Action | getAction() - Returns the assigned action or null if no action has been assigned.
|
void | setAction(Action newAction) - Assigns the given action to this button.
|
void | setEnabled(boolean b) - Enables and disables this button and if an action is assigned to this button the
propertychange is forwarded to the assigned action.
|
ActionRadioButton
public ActionRadioButton()
Creates a Button without any text and without an assigned Action.
ActionRadioButton
public ActionRadioButton(Action action)
Nreates an ActionButton and assigns the given action with the button.
ActionRadioButton
public ActionRadioButton(Icon icon)
Creates an ActionButton and sets the given icon on the button.
icon
- the icon for the button.
ActionRadioButton
public ActionRadioButton(String text)
Creates a Button and set the given text as label.
text
- the label for the new button.
ActionRadioButton
public ActionRadioButton(String text,
Icon icon)
Creates an ActionButton and sets the given text and icon on the button.
text
- the label for the new button.icon
- the icon for the button.
getAction
public Action getAction()
Returns the assigned action or null if no action has been assigned.
- the action (possibly null).
setAction
public void setAction(Action newAction)
Assigns the given action to this button. The properties of the action will be assigned to
the button. If an previous action was set, the old action is unregistered.
- NAME - specifies the button text
- SMALL_ICON - specifies the buttons icon
- MNEMONIC_KEY - specifies the buttons mnemonic key
- ACCELERATOR_KEY - specifies the buttons accelerator
newAction
- the new action
setEnabled
public void setEnabled(boolean b)
Enables and disables this button and if an action is assigned to this button the
propertychange is forwarded to the assigned action.
b
- the new enable-state of this button