lapisx.swing
Class ActionAdapters

java.lang.Object
  extended bylapisx.swing.ActionAdapters

public abstract class ActionAdapters
extends Object


Constructor Summary
ActionAdapters()
           
 
Method Summary
static JButton toButton(Action a)
          constructs a new JButton attached to an Action
static JCheckBox toCheckBox(Action a)
          constructs a new JCheckBox attached to an Action
static Action toMenuAction(Action action)
           
static JRadioButton toRadioButton(Action action, ButtonGroup group)
           
static JRadioButtonMenuItem toRadioButtonMenuItem(Action action, ButtonGroup group)
           
static JButton toTinyButton(Action a)
          Make a new JButton attached to an Action.
static JToggleButton toToggleButton(Action action, ButtonGroup group)
           
static Action toToolbarAction(Action action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionAdapters

public ActionAdapters()
Method Detail

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