All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.MenuBar
java.lang.Object
|
+----com.bulletproof.gui.Component
|
+----com.bulletproof.gui.MenuBar
- public class MenuBar
- extends Component
- implements ActionListener
Class MenuBar represents a class for displaying a menu bar component.
-
MenuBar(Frame)
- Creates a PopupMenu Component.
-
actionPerformed(ActionEvent)
-
-
add(String, PopupMenu)
- Adds the specified menu to the menu bar.
-
addActionListener(ActionListener)
-
-
getMinimumSize()
- Gets the minimum size of this component.
-
hide()
-
-
paint(Graphics)
-
Paints the component.
-
processFocusEvent(FocusEvent)
-
Processes focus events occurring on this component by
dispatching them to any registered FocusListener objects.
-
processMouseEvent(MouseEvent)
-
Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
-
remove(String)
- Adds the specified menu to the menu bar.
-
removeActionListener(ActionListener)
-
-
restoreBackground()
-
-
show()
-
MenuBar
public MenuBar(Frame parentFrame)
- Creates a PopupMenu Component.
- Parameters:
- parentFrame - the parent component that is responsible for this popup.
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
add
public void add(String label,
PopupMenu m)
- Adds the specified menu to the menu bar.
- Parameters:
- m - the menu to be added to the menu bar
remove
public void remove(String label)
- Adds the specified menu to the menu bar.
- Parameters:
- m - the menu to be added to the menu bar
show
public void show()
hide
public void hide()
paint
public synchronized void paint(Graphics g)
- Paints the component.
- Overrides:
- paint in class Component
processFocusEvent
public synchronized void processFocusEvent(FocusEvent fe)
- Processes focus events occurring on this component by
dispatching them to any registered FocusListener objects.
- Overrides:
- processFocusEvent in class Component
processMouseEvent
public synchronized void processMouseEvent(MouseEvent me)
- Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
- Overrides:
- processMouseEvent in class Component
actionPerformed
public void actionPerformed(ActionEvent e)
restoreBackground
public void restoreBackground()
getMinimumSize
public Dimension getMinimumSize()
- Gets the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index