Class marimba.gui.MenuButtonWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.MenuButtonWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ButtonWidget
                   |
                   +----marimba.gui.CommandButtonWidget
                           |
                           +----marimba.gui.MenuButtonWidget

public class MenuButtonWidget
extends CommandButtonWidget
A menu button widget.
Version:
1.23, 12/10/96
Author:
Arthur van Hoff

Variable Index

 o menu
The menu used for this menuButton.

Constructor Index

 o MenuButtonWidget()
Create a menuButton with 5 default items.
 o MenuButtonWidget(int, String[])
Create a menu with the specified items.

Method Index

 o action()
Perform the default action.
 o getMenu()
Get the menu.
 o getProperties(PropertyList)
Get the properties of this widget.
 o handleEvent(Event)
Handle events.
 o paintLabel(Graphics, String, int, int)
Paint the button label.
 o popupMenu()
Popup the dropDownMenu, setting some properties to make it appear the way it should.
 o setMenu(PopupMenu)
Set the menu.
 o setProperties(PropertyList)
Set the properties of this widget.

Variables

 o menu
  public PopupMenu menu
The menu used for this menuButton.
See Also:
getMenu, setMenu

Constructors

 o MenuButtonWidget
  public MenuButtonWidget()
Create a menuButton with 5 default items.
 o MenuButtonWidget
  public MenuButtonWidget(int nitems,
                          String items[])
Create a menu with the specified items.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class CommandButtonWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class CommandButtonWidget
 o getMenu
  public PopupMenu getMenu()
Get the menu.
See Also:
menu
 o setMenu
  public void setMenu(PopupMenu menu)
Set the menu.
See Also:
menu
 o paintLabel
  public void paintLabel(Graphics g,
                         String str,
                         int x,
                         int y)
Paint the button label.
Overrides:
paintLabel in class CommandButtonWidget
 o popupMenu
  public void popupMenu()
Popup the dropDownMenu, setting some properties to make it appear the way it should.
 o handleEvent
  public boolean handleEvent(Event evt)
Handle events.
Overrides:
handleEvent in class CommandButtonWidget
 o action
  public void action()
Perform the default action.
Overrides:
action in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index