|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ugent.caagt.swirl.actions.ButtonFactory
public final class ButtonFactory
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 |
---|
public static javax.swing.JMenu createJMenu(java.util.ResourceBundle bundle, java.lang.String key)
JMenu
with a description taken from the given
resource bundle.
public static javax.swing.JMenuItem createJMenuItem(java.util.ResourceBundle bundle, java.lang.String key)
JMenuItem
with a description taken from the given
resource bundle. Users are encouraged to build menu items from actions
instead.
public static javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.util.ResourceBundle bundle, java.lang.String key)
JRadioButtonMenuItem
with a description taken from
the given resource bundle. Users are encouraged to build menu items
from actions instead.
public static javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.util.ResourceBundle bundle, java.lang.String key)
JCheckBoxMenuItem
with a description taken from the
given resource bundle. Users are encouraged to build menu items from
actions instead.
public static javax.swing.JButton createJButton(java.util.ResourceBundle bundle, java.lang.String key)
JButton
with a description taken from the given
resource bundle. Users are encouraged to build buttons from actions
instead.
public static javax.swing.JRadioButton createJRadioButton(java.util.ResourceBundle bundle, java.lang.String key)
JRadioButton
with a description taken from the
given resource bundle. Users are encouraged to build buttons from
actions instead.
public static javax.swing.JToggleButton createJToggleButton(java.util.ResourceBundle bundle, java.lang.String key)
JToggleButton
with a description taken from the
given resource bundle. Users are encouraged to build buttons from
actions instead.
public static javax.swing.JCheckBox createJCheckBox(java.util.ResourceBundle bundle, java.lang.String key)
JCheckBox
with a description taken from the given
resource bundle. Users are encouraged to build menu items from actions
instead.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |