org.apache.batik.util.gui.resource
public class ToolBarFactory extends ResourceManager
ToolBar = Item1 Item2 - Item3 ... See ButtonFactory.java for details about the items ... '-' represents a separatorAll entries are optional.
Constructor Summary | |
---|---|
ToolBarFactory(ResourceBundle rb, ActionMap am)
Creates a new tool bar factory |
Method Summary | |
---|---|
JButton | createJButton(String name)
Creates and returns a new swing button |
JToolBar | createJToolBar(String name)
Creates a tool bar |
Parameters: rb the resource bundle that contains the menu bar description. am the actions to add to menu items
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 the mnemonic and the action keys are missing ResourceFormatException if the mnemonic is not a single character MissingListenerException if the button action is not found in the action map.
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. It is not thrown if the action key is missing. ResourceFormatException if a boolean is malformed MissingListenerException if an item action is not found in the action map.