All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.MenuBarGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ContainerGadget
                   |
                   +----dtai.gwt.PanelGadget
                           |
                           +----dtai.gwt.BorderGadget
                                   |
                                   +----dtai.gwt.MenuBarGadget

public class MenuBarGadget
extends BorderGadget
implements MouseMotionListener
A class that encapsulates the platform's concept of a menu bar bound to a Frame. In order to associate the MenuBarGadget with an actual Frame, the Frame.setMenuBar() method should be called.


Constructor Index

 o MenuBarGadget()
Creates a new menu bar.

Method Index

 o add(MenuGadget)
add
 o add(String)
MenuGadget
 o doLayout()
doLayout
 o getHelpMenu()
Gets the help menu on the menu bar.
 o getMenu(int)
Gets the specified menu.
 o getMenuCount()
Counts the number of menus on the menu bar.
 o getVisibleMenu()
getVisibleMenu
 o mouseDragged(MouseEvent)
mouseDragged
 o mouseMoved(MouseEvent)
mouseMoved
 o nextMenu(MenuGadget)
nextMenu
 o prevMenu(MenuGadget)
prevMenu
 o setHelpMenu(MenuGadget)
Sets the help menu to the specified menu on the menu bar.

Constructors

 o MenuBarGadget
 public MenuBarGadget()
Creates a new menu bar.

Methods

 o getHelpMenu
 public MenuGadget getHelpMenu()
Gets the help menu on the menu bar.

Returns:
helpMenu
 o doLayout
 public void doLayout()
doLayout

Overrides:
doLayout in class ContainerGadget
 o setHelpMenu
 public void setHelpMenu(MenuGadget m)
Sets the help menu to the specified menu on the menu bar.

Parameters:
m - the menu to be set
 o add
 public MenuGadget add(String label)
MenuGadget

Parameters:
label - the label of the MenuGadget to be added
Returns:
the MenuGadget being added
 o add
 public MenuGadget add(MenuGadget menu)
add

Parameters:
menu - the MenuGadget to be added
Returns:
the MenuGadget being added
 o getMenuCount
 public int getMenuCount()
Counts the number of menus on the menu bar.

Returns:
getGadgetCount()
 o getMenu
 public MenuGadget getMenu(int i)
Gets the specified menu.

Parameters:
i - the index of the desired menu
Returns:
the menu at the specified index
 o mouseDragged
 public void mouseDragged(MouseEvent e)
mouseDragged

Parameters:
e - the firing MouseEvent
 o getVisibleMenu
 public MenuGadget getVisibleMenu()
getVisibleMenu

Returns:
the visible MenuGadget, else null
 o nextMenu
 public void nextMenu(MenuGadget cur)
nextMenu

Parameters:
cur - the MenuGadget whose successor is to be shown
 o prevMenu
 public void prevMenu(MenuGadget cur)
prevMenu

Parameters:
cur - the MenuGadget whose predacessor is to be shown
 o mouseMoved
 public void mouseMoved(MouseEvent e)
mouseMoved

Parameters:
e - the firing MouseEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index