|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rosuda.JGR.toolkit.iMenu
public class iMenu
iMenu - implementation of an menu build form an String array.
| Field Summary | |
|---|---|
static boolean |
hasSVG
|
static boolean |
staticInitDone
|
| Constructor Summary | |
|---|---|
iMenu()
|
|
| Method Summary | |
|---|---|
static void |
addMenu(JFrame f,
String name)
Add menu to existing menubar. |
static void |
addMenuItem(JFrame f,
String menu,
String name,
String command,
ActionListener al)
Add menuitem to existing menu. |
static void |
addMenuSeparator(JFrame f,
String menu)
Add a menuseparator to existing menu. |
static JMenuItem |
getItem(JFrame f,
String name)
Get JMenuItem to supplied name (ActionCommand). |
static JMenuItem |
getItemByLabel(JFrame f,
String name)
Get JMenuItem to supplied name (Label). |
static JMenuBar |
getMenu(JFrame f,
ActionListener al,
String[] menuDef)
Get JMenuBar build from menuDef. |
static JMenu |
getMenu(JFrame f,
String name)
Get JMenu to supplied name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean staticInitDone
public static boolean hasSVG
| Constructor Detail |
|---|
public iMenu()
| Method Detail |
|---|
public static JMenuBar getMenu(JFrame f,
ActionListener al,
String[] menuDef)
f - frame where menubar should be addedal - ActionListener which cares about menu-actionsmenuDef - menuitem list
public static void addMenu(JFrame f,
String name)
f - frame where to add menu.name - menuname
public static void addMenuItem(JFrame f,
String menu,
String name,
String command,
ActionListener al)
f - frame which contains menumenu - menu where to add new itemname - name of new itemcommand - ActionCommand of this new itemal - ActionListener which should be attached to this menuitem
public static void addMenuSeparator(JFrame f,
String menu)
f - frame which contains menumenu - menu where to ad separator
public static JMenu getMenu(JFrame f,
String name)
f - frame which might contains this menuname - name of menu
public static JMenuItem getItem(JFrame f,
String name)
f - frame which might contain menuitemname - name of searched menuitem
public static JMenuItem getItemByLabel(JFrame f,
String name)
f - frame which might contain menuitemname - name of searched menuitem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||