|
|||||||||
| Home >> All >> org >> dinopolis >> util >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dinopolis.util.gui
Class MenuFactory

java.lang.Objectorg.dinopolis.util.gui.MenuFactory
- public class MenuFactory
- extends java.lang.Object
This class represents a menu factory. It reads values from a resource file and generates menues accordingly.
- Version:
- $Revision: 1.8 $
| Field Summary | |
static java.lang.String |
BOX_IDENTIFIER
the identifier for boxes within the resource file |
static java.lang.String |
KEY_CONTEXT_MENU_PREFIX
the key for the context menu prefix |
static java.lang.String |
KEY_MENUE_PREFIX
the key for the menu resource |
static java.lang.String |
KEY_MENUES
the key for the menu resource |
static java.lang.String |
KEY_RESOURCE_ACCELERATOR_SUFFIX
the key for the accelerator menu prefix |
static java.lang.String |
KEY_RESOURCE_ACTION_SUFFIX
the suffix used for Actions in resource files |
static java.lang.String |
KEY_RESOURCE_ICON_SUFFIX
the suffix used for Icons in resource files |
static java.lang.String |
KEY_RESOURCE_LABEL_SUFFIX
the suffix used for Labels in resource files |
static java.lang.String |
KEY_RESOURCE_MNEMONIC_SUFFIX
the key for the accelerator menu prefix |
static java.lang.String |
KEY_RESOURCE_TYPE_SUFFIX
the suffix used for types in resource files |
static java.lang.String |
OR_SEPERATOR
the identifier for toggle-menues within the resource file |
static java.lang.String |
SELECTED
the identifier for selected checkboxes or radio buttons |
static java.lang.String |
SEPARATOR_IDENTIFIER
the identifier for boxes within the resource file |
static java.lang.String |
TYPE_CHECK
the type identifier for checkboxes |
static java.lang.String |
TYPE_EMPTY_MENU
the type identifier for menus |
static java.lang.String |
TYPE_ITEM
the type identifier for items (default) |
static java.lang.String |
TYPE_MENU
the type identifier for menus |
static java.lang.String |
TYPE_RADIO
the type identifier for radio buttons |
| Constructor Summary | |
MenuFactory()
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
SELECTED
public static final java.lang.String SELECTED
- the identifier for selected checkboxes or radio buttons
- See Also:
- Constant Field Values
KEY_MENUES
public static final java.lang.String KEY_MENUES
- the key for the menu resource
- See Also:
- Constant Field Values
KEY_MENUE_PREFIX
public static final java.lang.String KEY_MENUE_PREFIX
- the key for the menu resource
- See Also:
- Constant Field Values
KEY_RESOURCE_LABEL_SUFFIX
public static final java.lang.String KEY_RESOURCE_LABEL_SUFFIX
- the suffix used for Labels in resource files
- See Also:
- Constant Field Values
KEY_RESOURCE_ICON_SUFFIX
public static final java.lang.String KEY_RESOURCE_ICON_SUFFIX
- the suffix used for Icons in resource files
- See Also:
- Constant Field Values
KEY_RESOURCE_ACTION_SUFFIX
public static final java.lang.String KEY_RESOURCE_ACTION_SUFFIX
- the suffix used for Actions in resource files
- See Also:
- Constant Field Values
KEY_RESOURCE_TYPE_SUFFIX
public static final java.lang.String KEY_RESOURCE_TYPE_SUFFIX
- the suffix used for types in resource files
- See Also:
- Constant Field Values
KEY_CONTEXT_MENU_PREFIX
public static final java.lang.String KEY_CONTEXT_MENU_PREFIX
- the key for the context menu prefix
- See Also:
- Constant Field Values
BOX_IDENTIFIER
public static final java.lang.String BOX_IDENTIFIER
- the identifier for boxes within the resource file
- See Also:
- Constant Field Values
SEPARATOR_IDENTIFIER
public static final java.lang.String SEPARATOR_IDENTIFIER
- the identifier for boxes within the resource file
- See Also:
- Constant Field Values
OR_SEPERATOR
public static final java.lang.String OR_SEPERATOR
- the identifier for toggle-menues within the resource file
- See Also:
- Constant Field Values
KEY_RESOURCE_ACCELERATOR_SUFFIX
public static final java.lang.String KEY_RESOURCE_ACCELERATOR_SUFFIX
- the key for the accelerator menu prefix
- See Also:
- Constant Field Values
KEY_RESOURCE_MNEMONIC_SUFFIX
public static final java.lang.String KEY_RESOURCE_MNEMONIC_SUFFIX
- the key for the accelerator menu prefix
- See Also:
- Constant Field Values
TYPE_MENU
public static final java.lang.String TYPE_MENU
- the type identifier for menus
- See Also:
- Constant Field Values
TYPE_EMPTY_MENU
public static final java.lang.String TYPE_EMPTY_MENU
- the type identifier for menus
- See Also:
- Constant Field Values
TYPE_RADIO
public static final java.lang.String TYPE_RADIO
- the type identifier for radio buttons
- See Also:
- Constant Field Values
TYPE_CHECK
public static final java.lang.String TYPE_CHECK
- the type identifier for checkboxes
- See Also:
- Constant Field Values
TYPE_ITEM
public static final java.lang.String TYPE_ITEM
- the type identifier for items (default)
- See Also:
- Constant Field Values
| Constructor Detail |
MenuFactory
public MenuFactory()
| Method Detail |
createMenuBar
public static javax.swing.JMenuBar createMenuBar(org.dinopolis.util.Resources resources, ActionGenerator action_gen)
- Creates a menubar from the given resource string.
createMenu
public static javax.swing.JMenu createMenu(java.lang.String prefix, java.lang.String menu_name, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
- Creates a menu from the given resource string.
createPopupMenu
public static javax.swing.JPopupMenu createPopupMenu(java.lang.String prefix, java.lang.String menu_string, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
- Creates a popup menu from the given resource string.
createPopupMenu
public static javax.swing.JPopupMenu createPopupMenu(java.lang.String menu_string, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
- Creates a popup menu from the given resource string.
createMenuComponent
public static javax.swing.JComponent createMenuComponent(java.lang.String prefix, java.lang.String menu_name, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
- Creates a single menu item.
createMenuItem
public static javax.swing.JComponent createMenuItem(java.lang.String prefix, java.lang.String menu_names, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
createRadioButtonMenuItem
public static javax.swing.JComponent createRadioButtonMenuItem(java.lang.String prefix, java.lang.String menu_name, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
createCheckBoxMenuItem
public static javax.swing.JComponent createCheckBoxMenuItem(java.lang.String prefix, java.lang.String menu_name, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
initializeMenuItem
protected static javax.swing.Action initializeMenuItem(javax.swing.JMenuItem menu_item, java.lang.String prefix, java.lang.String menu_name, org.dinopolis.util.Resources resources, ActionGenerator action_gen)
- Initializes the given menu item with all its parameters.
initializeMenu
protected static void initializeMenu(javax.swing.JMenu menu, java.lang.String prefix, java.lang.String menu_name, org.dinopolis.util.Resources resources)
- Initializes the given menu item with all its parameters.
|
|||||||||
| Home >> All >> org >> dinopolis >> util >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.dinopolis.util.gui.MenuFactory