public class ToolBarFactory extends ResourceManager
ToolBar = Item1 Item2 - Item3 ... See ButtonFactory.java for details about the items ... '-' represents a separatorAll entries are optional.
bundle| Constructor and Description |
|---|
ToolBarFactory(java.util.ResourceBundle rb,
ActionMap am)
Creates a new tool bar factory
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JButton |
createJButton(java.lang.String name)
Creates and returns a new swing button
|
javax.swing.JToolBar |
createJToolBar(java.lang.String name)
Creates a tool bar
|
getBoolean, getCharacter, getInteger, getString, getStringList, getStringList, getStringListpublic ToolBarFactory(java.util.ResourceBundle rb,
ActionMap am)
rb - the resource bundle that contains the menu bar
description.am - the actions to add to menu itemspublic javax.swing.JToolBar createJToolBar(java.lang.String name)
throws java.util.MissingResourceException,
ResourceFormatException,
MissingListenerException
name - the name of the menu bar in the resource bundlejava.util.MissingResourceException - if one of the keys that compose the
tool bar is missing.
It is not thrown if the action key is missing.ResourceFormatException - if a boolean is malformedMissingListenerException - if an item action is not found in the
action map.public javax.swing.JButton createJButton(java.lang.String name)
throws java.util.MissingResourceException,
ResourceFormatException,
MissingListenerException
name - the name of the button in the resource bundlejava.util.MissingResourceException - if key is not the name of a button.
It is not thrown if the mnemonic and the action keys are missingResourceFormatException - if the mnemonic is not a single
characterMissingListenerException - if the button action is not found in
the action map.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.