be.ugent.caagt.swirl.actions
Class ButtonFactory

java.lang.Object
  extended by be.ugent.caagt.swirl.actions.ButtonFactory

public final class ButtonFactory
extends java.lang.Object

Provides various methods to create buttons from internationalized descriptions.

All class methods given here take a resource bundle bundle and a key string key as arguments. In each case, the corresponding resource string bundle.getString(key) is used as a description string for the button, as defined in Description.


Method Summary
static javax.swing.JButton createJButton(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JButton with a description taken from the given resource bundle.
static javax.swing.JCheckBox createJCheckBox(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JCheckBox with a description taken from the given resource bundle.
static javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JCheckBoxMenuItem with a description taken from the given resource bundle.
static javax.swing.JMenu createJMenu(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JMenu with a description taken from the given resource bundle.
static javax.swing.JMenuItem createJMenuItem(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JMenuItem with a description taken from the given resource bundle.
static javax.swing.JRadioButton createJRadioButton(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JRadioButton with a description taken from the given resource bundle.
static javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JRadioButtonMenuItem with a description taken from the given resource bundle.
static javax.swing.JToggleButton createJToggleButton(java.util.ResourceBundle bundle, java.lang.String key)
          Create a new JToggleButton with a description taken from the given resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createJMenu

public static javax.swing.JMenu createJMenu(java.util.ResourceBundle bundle,
                                            java.lang.String key)
Create a new JMenu with a description taken from the given resource bundle.


createJMenuItem

public static javax.swing.JMenuItem createJMenuItem(java.util.ResourceBundle bundle,
                                                    java.lang.String key)
Create a new JMenuItem with a description taken from the given resource bundle. Users are encouraged to build menu items from actions instead.


createJRadioButtonMenuItem

public static javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.util.ResourceBundle bundle,
                                                                          java.lang.String key)
Create a new JRadioButtonMenuItem with a description taken from the given resource bundle. Users are encouraged to build menu items from actions instead.


createJCheckBoxMenuItem

public static javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.util.ResourceBundle bundle,
                                                                    java.lang.String key)
Create a new JCheckBoxMenuItem with a description taken from the given resource bundle. Users are encouraged to build menu items from actions instead.


createJButton

public static javax.swing.JButton createJButton(java.util.ResourceBundle bundle,
                                                java.lang.String key)
Create a new JButton with a description taken from the given resource bundle. Users are encouraged to build buttons from actions instead.


createJRadioButton

public static javax.swing.JRadioButton createJRadioButton(java.util.ResourceBundle bundle,
                                                          java.lang.String key)
Create a new JRadioButton with a description taken from the given resource bundle. Users are encouraged to build buttons from actions instead.


createJToggleButton

public static javax.swing.JToggleButton createJToggleButton(java.util.ResourceBundle bundle,
                                                            java.lang.String key)
Create a new JToggleButton with a description taken from the given resource bundle. Users are encouraged to build buttons from actions instead.


createJCheckBox

public static javax.swing.JCheckBox createJCheckBox(java.util.ResourceBundle bundle,
                                                    java.lang.String key)
Create a new JCheckBox with a description taken from the given resource bundle. Users are encouraged to build menu items from actions instead.