org.rosuda.ibase.toolkit
Class EzMenu
java.lang.Object
org.rosuda.ibase.toolkit.EzMenu
public class EzMenu
- extends java.lang.Object
class that simplified menu building from lists
Method Summary |
static void |
addMenu(java.awt.Frame f,
java.lang.String name)
Add menu to existing menubar. |
static void |
addMenuItem(java.awt.Frame f,
java.lang.String menu,
java.lang.String name,
java.lang.String command,
java.awt.event.ActionListener al)
Add menuitem to existing menu. |
static void |
addMenuSeparator(java.awt.Frame f,
java.lang.String menu)
Add a menuseparator to existing menu. |
static java.awt.MenuBar |
getEzMenu(java.awt.Frame f,
java.awt.event.ActionListener al,
java.lang.String[] menuDef)
|
static java.awt.PopupMenu |
getEzPopup(java.awt.Frame f,
java.awt.event.ActionListener al,
java.lang.String[] popDef)
|
static java.awt.MenuItem |
getItem(java.awt.Frame f,
java.lang.String nam)
|
static java.awt.MenuItem |
getItemByLabel(java.awt.Frame f,
java.lang.String nam)
|
static java.awt.Menu |
getMenu(java.awt.Frame f,
java.lang.String nam)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
staticInitDone
public static boolean staticInitDone
hasSVG
public static boolean hasSVG
EzMenu
public EzMenu()
getEzPopup
public static java.awt.PopupMenu getEzPopup(java.awt.Frame f,
java.awt.event.ActionListener al,
java.lang.String[] popDef)
getEzMenu
public static java.awt.MenuBar getEzMenu(java.awt.Frame f,
java.awt.event.ActionListener al,
java.lang.String[] menuDef)
getMenu
public static java.awt.Menu getMenu(java.awt.Frame f,
java.lang.String nam)
getItem
public static java.awt.MenuItem getItem(java.awt.Frame f,
java.lang.String nam)
getItemByLabel
public static java.awt.MenuItem getItemByLabel(java.awt.Frame f,
java.lang.String nam)
addMenu
public static void addMenu(java.awt.Frame f,
java.lang.String name)
- Add menu to existing menubar.
- Parameters:
f
- frame where to add menu.name
- menuname
addMenuItem
public static void addMenuItem(java.awt.Frame f,
java.lang.String menu,
java.lang.String name,
java.lang.String command,
java.awt.event.ActionListener al)
- Add menuitem to existing menu.
- Parameters:
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
addMenuSeparator
public static void addMenuSeparator(java.awt.Frame f,
java.lang.String menu)
- Add a menuseparator to existing menu.
- Parameters:
f
- frame which contains menumenu
- menu where to ad separator