This class represents a tool bar factory which builds tool bars from the
content of a resource file.
The resource entries format is (for a tool bar named 'ToolBar'):
ToolBar = Item1 Item2 - Item3 ...
See ButtonFactory.java for details about the items
...
'-' represents a separator
All entries are optional.
author: Stephane Hillion version: $Id: ToolBarFactory.java,v 1.2 2007/09/19 03:17:43 nekosej Exp $
createJButton(String name) Creates and returns a new swing button
Parameters: name - the name of the button in the resource bundle throws: MissingResourceException - if key is not the name of a button.
createJToolBar(String name) Creates a tool bar
Parameters: name - the name of the menu bar in the resource bundle throws: MissingResourceException - if one of the keys that compose the tool bar is missing.
Creates a new tool bar factory
Parameters: rb - the resource bundle that contains the menu bar description. Parameters: am - the actions to add to menu items
Creates and returns a new swing button
Parameters: name - the name of the button in the resource bundle throws: MissingResourceException - if key is not the name of a button. It is not thrown if themnemonic and the action keys are missing throws: ResourceFormatException - if the mnemonic is not a single character throws: MissingListenerException - if the button action is not found in the action map.
Creates a tool bar
Parameters: name - the name of the menu bar in the resource bundle throws: MissingResourceException - if one of the keys that compose the tool bar is missing. Itis not thrown if the action key is missing. throws: ResourceFormatException - if a boolean is malformed throws: MissingListenerException - if an item action is not found in the action map.
Returns the boolean mapped with the given key
Parameters: key - a key of the resource bundle throws: MissingResourceException - if key is not the name of a resource throws: ResourceFormatException - if the resource is malformed
Fields inherited from org.apache.batik.util.gui.resource.ResourceManager