|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.swing.HotkeyMaker
Static helper class for assigning hotkeys to certain entities.
This class is the connector between biz.chitec.quarterback.util.Hotkeys and the GUI. It contains only static methods (similar to TOM), and gets the Hotkeys instance within the calls.
Constructor Summary | |
HotkeyMaker()
|
Method Summary | |
private static void |
collectForContainer(java.util.List names,
java.util.List elements,
java.awt.Container thecontainer,
java.util.Set ignorecomponents)
Recursive helper method to walk through a container and its subcontainers. |
static void |
forActions(java.util.List actions,
Hotkeys hotkeys,
java.lang.String name,
java.lang.String allowed)
Attaches hotkeys to a list of Action instances. |
static void |
forContainer(java.awt.Container thecontainer,
Hotkeys hotkeys,
java.lang.String name,
java.lang.String allowed,
java.util.Set ignorecomponents)
Attaches hotkeys to a container. |
static void |
forListOfObjects(java.util.List objects,
Hotkeys hotkeys,
java.lang.String name,
java.lang.String allowed)
Attaches hotkeys to a list of various objects. |
static void |
forMenu(javax.swing.JMenu themenu,
Hotkeys hotkeys,
java.lang.String name,
java.lang.String allowed)
Attaches hotkeys to the menu items in a menu, not including the menu title or any submenus. |
static void |
forMenuBar(javax.swing.JMenuBar themenubar,
Hotkeys hotkeys,
java.lang.String name,
java.lang.String allowed,
boolean withsubmenus)
Attaches hotkeys to a menubar, including titles and items of all menus, but not including any submenus. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HotkeyMaker()
Method Detail |
public static void forListOfObjects(java.util.List objects, Hotkeys hotkeys, java.lang.String name, java.lang.String allowed)
objects
- List of Action and AbstractButton instanceshotkeys
- The hotkeys managing instancename
- Name for the given list, needed for cachingallowed
- All allowed hotkeys, may be nullpublic static void forActions(java.util.List actions, Hotkeys hotkeys, java.lang.String name, java.lang.String allowed)
actions
- List of Action instanceshotkeys
- The hotkeys managing instancename
- Name for the given list, needed for cachingallowed
- All allowed hotkeys, may be nullpublic static void forMenu(javax.swing.JMenu themenu, Hotkeys hotkeys, java.lang.String name, java.lang.String allowed)
themenu
- menu to supply hotkeys forhotkeys
- The hotkeys managing instancename
- Name for the given list, needed for cachingallowed
- All allowed hotkeys, may be nullpublic static void forMenuBar(javax.swing.JMenuBar themenubar, Hotkeys hotkeys, java.lang.String name, java.lang.String allowed, boolean withsubmenus)
themenubar
- menubar to supply hotkeys forhotkeys
- The hotkeys managing instancename
- Name for the given list, needed for cachingallowed
- All allowed hotkeys, may be nullpublic static void forContainer(java.awt.Container thecontainer, Hotkeys hotkeys, java.lang.String name, java.lang.String allowed, java.util.Set ignorecomponents)
thecontainer
- container to supply hotkeys forhotkeys
- The hotkeys managing instancename
- Name for the given list, needed for cachingallowed
- All allowed hotkeys, may be nullignorecomponents
- Set of components (including subcontainers) below the given one which should not be supplied with hotkeys.private static void collectForContainer(java.util.List names, java.util.List elements, java.awt.Container thecontainer, java.util.Set ignorecomponents)
names
- List for all labels to assign hotkeys forelements
- List for the elements the labels belong tothecontainer
- container to walk throughignorecomponents
- Set of Components which should not be hotkeyable
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |