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
-
menu
- The menu used for this menuButton.
-
MenuButtonWidget()
- Create a menuButton with 5 default items.
-
MenuButtonWidget(int, String[])
- Create a menu with the specified items.
-
action()
- Perform the default action.
-
getMenu()
- Get the menu.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
handleEvent(Event)
- Handle events.
-
paintLabel(Graphics, String, int, int)
- Paint the button label.
-
popupMenu()
- Popup the dropDownMenu, setting some properties to make
it appear the way it should.
-
setMenu(PopupMenu)
- Set the menu.
-
setProperties(PropertyList)
- Set the properties of this widget.
menu
public PopupMenu menu
- The menu used for this menuButton.
- See Also:
- getMenu, setMenu
MenuButtonWidget
public MenuButtonWidget()
- Create a menuButton with 5 default items.
MenuButtonWidget
public MenuButtonWidget(int nitems,
String items[])
- Create a menu with the specified items.
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class CommandButtonWidget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class CommandButtonWidget
getMenu
public PopupMenu getMenu()
- Get the menu.
- See Also:
- menu
setMenu
public void setMenu(PopupMenu menu)
- Set the menu.
- See Also:
- menu
paintLabel
public void paintLabel(Graphics g,
String str,
int x,
int y)
- Paint the button label.
- Overrides:
- paintLabel in class CommandButtonWidget
popupMenu
public void popupMenu()
- Popup the dropDownMenu, setting some properties to make
it appear the way it should.
handleEvent
public boolean handleEvent(Event evt)
- Handle events.
- Overrides:
- handleEvent in class CommandButtonWidget
action
public void action()
- Perform the default action.
- Overrides:
- action in class Widget
All Packages Class Hierarchy This Package Previous Next Index