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

Class marimba.gui.PopupMenuItemWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.PopupMenuItemWidget

public class PopupMenuItemWidget
extends Widget
An item in a popup menu.
Version:
1.16, 01/14/97
Author:
Arthur van Hoff

Variable Index

 o label
The label of this popupMenuItem
 o selected
A popupMenuItem can be selected.

Constructor Index

 o PopupMenuItemWidget(String)
Create a PopupMenuItemWidget with the given label.
 o PopupMenuItemWidget(String, String)
Create a PopupMenuItemWidget with the given name and label.

Method Index

 o getMenu()
Get the popup menu to which this item belongs.
 o getText()
Get the label.
 o getValue()
Get the value.
 o paint(Graphics)
Paint the item.
 o paramString(StringBuffer)
Debugging.
 o preferredSize()
Figure out the preferredSize.
 o select(boolean)
Select the item.
 o setText(String)
Set the label.
 o setValue(Object)
Set the value.

Variables

 o selected
  public boolean selected
A popupMenuItem can be selected.
See Also:
select
 o label
  public String label
The label of this popupMenuItem
See Also:
getText, setText

Constructors

 o PopupMenuItemWidget
  public PopupMenuItemWidget(String label)
Create a PopupMenuItemWidget with the given label.
 o PopupMenuItemWidget
  public PopupMenuItemWidget(String name,
                             String label)
Create a PopupMenuItemWidget with the given name and label.

Methods

 o getMenu
  public PopupMenu getMenu()
Get the popup menu to which this item belongs.
 o preferredSize
  public Dimension preferredSize()
Figure out the preferredSize.
 o select
  public void select(boolean selected)
Select the item.
See Also:
selected
 o getValue
  public Object getValue()
Get the value.
Overrides:
getValue in class Widget
See Also:
getText
 o setValue
  public void setValue(Object obj)
Set the value.
Overrides:
setValue in class Widget
See Also:
setText
 o getText
  public String getText()
Get the label.
Overrides:
getText in class Widget
See Also:
label, getValue
 o setText
  public void setText(String label)
Set the label.
Overrides:
setText in class Widget
See Also:
label, setValue
 o paint
  public void paint(Graphics g)
Paint the item.
Overrides:
paint in class Widget
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index