|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rosuda.ibase.toolkit.EzMenuSwing
public class EzMenuSwing
class that simplified JMenu building from lists
| Field Summary | |
|---|---|
static boolean |
hasSVG
|
static boolean |
staticInitDone
|
| Constructor Summary | |
|---|---|
EzMenuSwing()
|
|
| Method Summary | |
|---|---|
static void |
addJMenuItem(javax.swing.JFrame f,
java.lang.String menu,
java.lang.String name,
java.lang.String command,
java.awt.event.ActionListener al)
Add JMenuItem to existing menu. |
static void |
addMenu(javax.swing.JFrame f,
java.lang.String name)
Add JMenu to existing menubar. |
static void |
addMenuSeparator(javax.swing.JFrame f,
java.lang.String menu)
Add a menuseparator to existing menu. |
static javax.swing.JMenuBar |
getEzMenu(javax.swing.JFrame f,
java.awt.event.ActionListener al,
java.lang.String[] menuDef)
|
static javax.swing.JPopupMenu |
getEzPopup(javax.swing.JFrame f,
java.awt.event.ActionListener al,
java.lang.String[] popDef)
|
static javax.swing.JMenuItem |
getItem(javax.swing.JFrame f,
java.lang.String nam)
|
static javax.swing.JMenuItem |
getItemByLabel(javax.swing.JFrame f,
java.lang.String nam)
|
static javax.swing.JMenu |
getMenu(javax.swing.JFrame f,
java.lang.String nam)
|
static void |
insertJMenuItem(javax.swing.JFrame f,
java.lang.String menu,
java.lang.String name,
java.lang.String command,
java.awt.event.ActionListener al,
int index)
Insert JMenuItem to existing menu. |
static void |
insertMenu(javax.swing.JFrame f,
java.lang.String name,
int index)
Add JMenu to existing menubar. |
| 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 EzMenuSwing()
| Method Detail |
|---|
public static javax.swing.JPopupMenu getEzPopup(javax.swing.JFrame f,
java.awt.event.ActionListener al,
java.lang.String[] popDef)
public static javax.swing.JMenuBar getEzMenu(javax.swing.JFrame f,
java.awt.event.ActionListener al,
java.lang.String[] menuDef)
public static javax.swing.JMenu getMenu(javax.swing.JFrame f,
java.lang.String nam)
public static javax.swing.JMenuItem getItem(javax.swing.JFrame f,
java.lang.String nam)
public static javax.swing.JMenuItem getItemByLabel(javax.swing.JFrame f,
java.lang.String nam)
public static void addMenu(javax.swing.JFrame f,
java.lang.String name)
f - JFrame where to add menu.name - menuname
public static void insertMenu(javax.swing.JFrame f,
java.lang.String name,
int index)
f - JFrame where to add menu.name - menu nameindex - position
public static void addJMenuItem(javax.swing.JFrame f,
java.lang.String menu,
java.lang.String name,
java.lang.String command,
java.awt.event.ActionListener al)
f - JFrame which contains menumenu - JMenu where to add new itemname - name of new itemcommand - ActionCommand of this new itemal - ActionListener which should be attached to this JMenuItem
public static void insertJMenuItem(javax.swing.JFrame f,
java.lang.String menu,
java.lang.String name,
java.lang.String command,
java.awt.event.ActionListener al,
int index)
f - JFrame which contains menumenu - JMenu where to add new itemname - name of new itemcommand - ActionCommand of this new itemal - ActionListener which should be attached to this JMenuItemindex - Position of insertion
public static void addMenuSeparator(javax.swing.JFrame f,
java.lang.String menu)
f - JFrame which contains menumenu - JMenu where to ad separator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||