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
-
label
- The label of this popupMenuItem
-
selected
- A popupMenuItem can be selected.
-
PopupMenuItemWidget(String)
- Create a PopupMenuItemWidget with the given label.
-
PopupMenuItemWidget(String, String)
- Create a PopupMenuItemWidget with the given name and label.
-
getMenu()
- Get the popup menu to which this item belongs.
-
getText()
- Get the label.
-
getValue()
- Get the value.
-
paint(Graphics)
- Paint the item.
-
paramString(StringBuffer)
- Debugging.
-
preferredSize()
- Figure out the preferredSize.
-
select(boolean)
- Select the item.
-
setText(String)
- Set the label.
-
setValue(Object)
- Set the value.
selected
public boolean selected
- A popupMenuItem can be selected.
- See Also:
- select
label
public String label
- The label of this popupMenuItem
- See Also:
- getText, setText
PopupMenuItemWidget
public PopupMenuItemWidget(String label)
- Create a PopupMenuItemWidget with the given label.
PopupMenuItemWidget
public PopupMenuItemWidget(String name,
String label)
- Create a PopupMenuItemWidget with the given name and label.
getMenu
public PopupMenu getMenu()
- Get the popup menu to which this item belongs.
preferredSize
public Dimension preferredSize()
- Figure out the preferredSize.
select
public void select(boolean selected)
- Select the item.
- See Also:
- selected
getValue
public Object getValue()
- Get the value.
- Overrides:
- getValue in class Widget
- See Also:
- getText
setValue
public void setValue(Object obj)
- Set the value.
- Overrides:
- setValue in class Widget
- See Also:
- setText
getText
public String getText()
- Get the label.
- Overrides:
- getText in class Widget
- See Also:
- label, getValue
setText
public void setText(String label)
- Set the label.
- Overrides:
- setText in class Widget
- See Also:
- label, setValue
paint
public void paint(Graphics g)
- Paint the item.
- Overrides:
- paint in class Widget
paramString
public void paramString(StringBuffer buf)
- Debugging.
- Overrides:
- paramString in class Widget
All Packages Class Hierarchy This Package Previous Next Index