org.rosuda.ibase.toolkit
Class EzMenu

java.lang.Object
  extended by org.rosuda.ibase.toolkit.EzMenu

public class EzMenu
extends java.lang.Object

class that simplified menu building from lists


Field Summary
static boolean hasSVG
           
static boolean staticInitDone
           
 
Constructor Summary
EzMenu()
           
 
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
 

Field Detail

staticInitDone

public static boolean staticInitDone

hasSVG

public static boolean hasSVG
Constructor Detail

EzMenu

public EzMenu()
Method Detail

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 menu
menu - menu where to add new item
name - name of new item
command - ActionCommand of this new item
al - 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 menu
menu - menu where to ad separator