| java.lang.Object jimm.datavision.gui.MenuUtils
MenuUtils | public class MenuUtils (Code) | | Menu creation utilities.
author: Jim Menard, jimm@io.com |
Method Summary | |
public static JCheckBoxMenuItem | addCheckboxToMenu(ActionListener listener, JMenu menu, String key, Font font) Adds a single checkbox item to a menu. | public static JCheckBoxMenuItem | addCheckboxToMenu(ActionListener listener, JPopupMenu menu, String key, Font font) Adds a single checkbox item to a popup menu. | public static JMenuItem | addToMenu(ActionListener listener, JMenu menu, String key) Adds a single item to a menu. | public static JMenuItem | addToMenu(ActionListener listener, JMenu menu, String key, Font font) Adds a single item to a menu. | public static JMenuItem | addToMenu(ActionListener listener, JPopupMenu menu, String key) Adds a single item to a popup menu. | public static JMenuItem | addToMenu(ActionListener listener, JPopupMenu menu, String key, Font font) Adds a single item to a popup menu. | public static JMenuItem | addToMenu(JMenu menu, Action action, String key) Adds an action to a menu. | public static JMenu | buildAlignMenu(ActionListener listener, Font font) Returns a new align menu. | public static JMenu | buildPaperSizeMenu(ActionListener listener, PaperFormat currChoice, ButtonGroup orientationGroup, ButtonGroup nameGroup) Returns a new paper size menu. | public static JMenu | buildSizeMenu(ActionListener listener, Font font) Returns a new size menu. | protected static void | modifyItem(JMenuItem item, ActionListener listener, String key, Font font) | public static JCheckBoxMenuItem | readCheckboxItem(ActionListener listener, String key, Font font) | public static JMenuItem | readItem(ActionListener listener, String key, Font font) | public static JMenu | readMenu(String key) | protected static void | setKeys(JMenuItem item, String key) |
addCheckboxToMenu | public static JCheckBoxMenuItem addCheckboxToMenu(ActionListener listener, JMenu menu, String key, Font font)(Code) | | Adds a single checkbox item to a menu.
Parameters: listener - action listener for item; may be null Parameters: menu - the menu Parameters: key - the menu properties file lookup key Parameters: font - font; may be null |
addCheckboxToMenu | public static JCheckBoxMenuItem addCheckboxToMenu(ActionListener listener, JPopupMenu menu, String key, Font font)(Code) | | Adds a single checkbox item to a popup menu.
Parameters: listener - action listener for item; may be null Parameters: menu - the menu Parameters: key - the menu properties file lookup key Parameters: font - font; may be null |
addToMenu | public static JMenuItem addToMenu(ActionListener listener, JMenu menu, String key)(Code) | | Adds a single item to a menu.
Parameters: listener - action listener for item; may be null Parameters: menu - the menu Parameters: key - the menu properties file lookup key |
addToMenu | public static JMenuItem addToMenu(ActionListener listener, JMenu menu, String key, Font font)(Code) | | Adds a single item to a menu.
Parameters: listener - action listener for item; may be null Parameters: menu - the menu Parameters: key - the menu properties file lookup key Parameters: font - font; may be null |
addToMenu | public static JMenuItem addToMenu(ActionListener listener, JPopupMenu menu, String key)(Code) | | Adds a single item to a popup menu.
Parameters: listener - action listener for item; may be null Parameters: menu - the menu Parameters: key - the menu properties file lookup key |
addToMenu | public static JMenuItem addToMenu(ActionListener listener, JPopupMenu menu, String key, Font font)(Code) | | Adds a single item to a popup menu.
Parameters: listener - action listener for item; may be null Parameters: menu - the menu Parameters: key - the menu properties file lookup key Parameters: font - font; may be null |
addToMenu | public static JMenuItem addToMenu(JMenu menu, Action action, String key)(Code) | | Adds an action to a menu.
Parameters: menu - the menu Parameters: action - the action Parameters: key - the menu properties file lookup key |
buildAlignMenu | public static JMenu buildAlignMenu(ActionListener listener, Font font)(Code) | | Returns a new align menu.
Parameters: listener - action listener for item; may be null Parameters: font - font; may be null a new menu |
buildPaperSizeMenu | public static JMenu buildPaperSizeMenu(ActionListener listener, PaperFormat currChoice, ButtonGroup orientationGroup, ButtonGroup nameGroup)(Code) | | Returns a new paper size menu.
Parameters: listener - action button listener for item; may be null Parameters: currChoice - current paper choice (its orientation and name will bepre-selected) Parameters: orientationGroup - a radio button group for orientations Parameters: nameGroup - a radio button group for names a new menu |
buildSizeMenu | public static JMenu buildSizeMenu(ActionListener listener, Font font)(Code) | | Returns a new size menu.
Parameters: listener - action listener for item; may be null Parameters: font - font; may be null a new menu |
|
|