org.jfree.report.modules.gui.swing.common.action
public class ActionRadioButton extends JRadioButton
Constructor Summary | |
---|---|
ActionRadioButton()
Creates a Button without any text and without an assigned Action. | |
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.
| |
ActionRadioButton(Icon icon)
Creates an ActionButton and sets the given icon on the button.
| |
ActionRadioButton(Action action)
Nreates an ActionButton and assigns the given action with the button.
|
Method Summary | |
---|---|
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.
|
Parameters: text the label for the new button.
Parameters: text the label for the new button. icon the icon for the button.
Parameters: icon the icon for the button.
Parameters: action the action.
Returns: the action (possibly null).
Parameters: newAction the new action
Parameters: b the new enable-state of this button