|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cleancode.swing.JMenuSpec
public class JMenuSpec
A specification for a JMenuSpec
used as a component
of a JMenuBarMgr
.
The specification includes: a display name for menu, a list of
JMenuItemSpec
components, an optional mnemonic key,
and an optional MenuListener
.
The mnemonic key will be auto-assigned if omitted.
A JMenuBarMgr
defines a menu bar consisting of JMenuSpec
items.
A JMenuSpec
defines a menu consisting of JMenuItemSpec
items.
JMenuItemSpec
,
JMenuBarMgr
Field Summary | |
---|---|
static String |
VERSION
Current version of this class. |
Constructor Summary | |
---|---|
JMenuSpec(String displayName,
JMenuItemSpec[] list)
Creates a JMenuItem object where the mnemonic is auto-assigned,
and without a MenuListener . |
|
JMenuSpec(String displayName,
JMenuItemSpec[] list,
int mnemonic)
Creates a JMenuSpec object without a MenuListener . |
|
JMenuSpec(String displayName,
JMenuItemSpec[] list,
int mnemonic,
MenuListener l)
Creates a fully-specified JMenuSpec object. |
|
JMenuSpec(String displayName,
JMenuItemSpec[] list,
MenuListener l)
Creates a JMenuItem object where the mnemonic is auto-assigned. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
Constructor Detail |
---|
public JMenuSpec(String displayName, JMenuItemSpec[] list, int mnemonic, MenuListener l)
JMenuSpec
object.
displayName
- name to display as the menu namelist
- list of items contained in the menumnemonic
- a keyboard mnemonic (key which selects item when menu is open)l
- a MenuListener
for this menupublic JMenuSpec(String displayName, JMenuItemSpec[] list, int mnemonic)
JMenuSpec
object without a MenuListener
.
displayName
- name to display as the menu namelist
- list of items contained in the menumnemonic
- a keyboard mnemonic (key which selects item when menu is open)public JMenuSpec(String displayName, JMenuItemSpec[] list, MenuListener l)
JMenuItem
object where the mnemonic is auto-assigned.
displayName
- name to display as the menu namelist
- list of items contained in the menul
- a MenuListener
for this menupublic JMenuSpec(String displayName, JMenuItemSpec[] list)
JMenuItem
object where the mnemonic is auto-assigned,
and without a MenuListener
.
displayName
- name to display as the menu namelist
- list of items contained in the menu
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CleanCode Java Libraries | Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 |