Class MenuFactory

java.lang.Object
org.apache.batik.util.resources.ResourceManager
org.apache.batik.util.gui.resource.MenuFactory

public class MenuFactory extends ResourceManager
This class represents a menu factory which builds menubars and menus from the content of a resource file.
The resource entries format is (for a menubar named 'MenuBar'):
  MenuBar           = Menu1 Menu2 ...

  Menu1.type        = RADIO | CHECK | MENU | ITEM
  Menu1             = Item1 Item2 - Item3 ...
  Menu1.text        = text
  Menu1.icon        = icon_name
  Menu1.mnemonic    = mnemonic
  Menu1.accelerator = accelerator
  Menu1.action      = action_name
  Menu1.selected    = true | false
  Menu1.enabled     = true | false
  ...
mnemonic is a single character
accelerator is of the form described in KeyStroke.getKeyStroke(String).
'-' represents a separator
All entries are optional except the '.type' entry Consecutive RADIO items are put in a ButtonGroup
Version:
$Id$