lapisx.swing
Class ActionAdapters
java.lang.Object
lapisx.swing.ActionAdapters
- public abstract class ActionAdapters
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionAdapters
public ActionAdapters()
toMenuAction
public static Action toMenuAction(Action action)
toToolbarAction
public static Action toToolbarAction(Action action)
toToggleButton
public static JToggleButton toToggleButton(Action action,
ButtonGroup group)
toRadioButtonMenuItem
public static JRadioButtonMenuItem toRadioButtonMenuItem(Action action,
ButtonGroup group)
toRadioButton
public static JRadioButton toRadioButton(Action action,
ButtonGroup group)
toButton
public static JButton toButton(Action a)
- constructs a new JButton attached to an Action
- Returns:
- a new JButton
toCheckBox
public static JCheckBox toCheckBox(Action a)
- constructs a new JCheckBox attached to an Action
- Returns:
- a new JCheckBox
toTinyButton
public static JButton toTinyButton(Action a)
- Make a new JButton attached to an Action. This JButton
is shorter than a default JButtons, and uses a smaller font.
- Returns:
- a new tiny JButton