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.
-
MenuBarGadget()
- Creates a new menu bar.
-
add(MenuGadget)
- add
-
add(String)
- MenuGadget
-
doLayout()
- doLayout
-
getHelpMenu()
- Gets the help menu on the menu bar.
-
getMenu(int)
- Gets the specified menu.
-
getMenuCount()
- Counts the number of menus on the menu bar.
-
getVisibleMenu()
- getVisibleMenu
-
mouseDragged(MouseEvent)
- mouseDragged
-
mouseMoved(MouseEvent)
- mouseMoved
-
nextMenu(MenuGadget)
- nextMenu
-
prevMenu(MenuGadget)
- prevMenu
-
setHelpMenu(MenuGadget)
- Sets the help menu to the specified menu on the menu bar.
MenuBarGadget
public MenuBarGadget()
- Creates a new menu bar.
getHelpMenu
public MenuGadget getHelpMenu()
- Gets the help menu on the menu bar.
- Returns:
- helpMenu
doLayout
public void doLayout()
- doLayout
- Overrides:
- doLayout in class ContainerGadget
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
add
public MenuGadget add(String label)
- MenuGadget
- Parameters:
- label - the label of the MenuGadget to be added
- Returns:
- the MenuGadget being added
add
public MenuGadget add(MenuGadget menu)
- add
- Parameters:
- menu - the MenuGadget to be added
- Returns:
- the MenuGadget being added
getMenuCount
public int getMenuCount()
- Counts the number of menus on the menu bar.
- Returns:
- getGadgetCount()
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
mouseDragged
public void mouseDragged(MouseEvent e)
- mouseDragged
- Parameters:
- e - the firing MouseEvent
getVisibleMenu
public MenuGadget getVisibleMenu()
- getVisibleMenu
- Returns:
- the visible MenuGadget, else null
nextMenu
public void nextMenu(MenuGadget cur)
- nextMenu
- Parameters:
- cur - the MenuGadget whose successor is to be shown
prevMenu
public void prevMenu(MenuGadget cur)
- prevMenu
- Parameters:
- cur - the MenuGadget whose predacessor is to be shown
mouseMoved
public void mouseMoved(MouseEvent e)
- mouseMoved
- Parameters:
- e - the firing MouseEvent
All Packages Class Hierarchy This Package Previous Next Index