All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.PopupMenu
java.lang.Object
|
+----com.bulletproof.gui.Component
|
+----com.bulletproof.gui.PopupMenu
- public class PopupMenu
- extends Component
- implements ItemListener
Class PopupMenu represents a class for displaying a popup menu component.
-
PopupMenu(Frame)
- Creates a PopupMenu Component.
-
addActionListener(ActionListener)
-
-
addItem(String)
- Add an item to the menu.
-
deselectAll()
-
-
display(int, int)
-
-
getItem(int)
- Gets the displayed value of the specified item.
-
getSelectedItem()
-
-
hide()
-
-
itemStateChanged(ItemEvent)
-
-
removeActionListener(ActionListener)
-
-
setItem(int, String)
- Sets the displayed value of the specified item.
PopupMenu
public PopupMenu(Frame parent)
- Creates a PopupMenu Component.
- Parameters:
- parent - the parent component that is responsible for this popup.
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
getItem
public String getItem(int index)
- Gets the displayed value of the specified item.
- Parameters:
- index - the item number to set the new text.
- Returns:
- the text of the item.
setItem
public void setItem(int index,
String displayItem)
- Sets the displayed value of the specified item.
- Parameters:
- index - the item number to set the new text.
- displayItem - the text of the item.
addItem
public void addItem(String menuItem)
- Add an item to the menu.
- Parameters:
- menuItem - the text of the menu item.
deselectAll
public void deselectAll()
getSelectedItem
public String getSelectedItem()
hide
public void hide()
itemStateChanged
public void itemStateChanged(ItemEvent e)
display
public void display(int xpos,
int ypos)
All Packages Class Hierarchy This Package Previous Next Index