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.


Constructor Index

 o MenuBar(Frame)
Creates a PopupMenu Component.

Method Index

 o actionPerformed(ActionEvent)
 o add(String, PopupMenu)
Adds the specified menu to the menu bar.
 o addActionListener(ActionListener)
 o getMinimumSize()
Gets the minimum size of this component.
 o hide()
 o paint(Graphics)
Paints the component.
 o processFocusEvent(FocusEvent)
Processes focus events occurring on this component by dispatching them to any registered FocusListener objects.
 o processMouseEvent(MouseEvent)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
 o remove(String)
Adds the specified menu to the menu bar.
 o removeActionListener(ActionListener)
 o restoreBackground()
 o show()

Constructors

 o MenuBar
 public MenuBar(Frame parentFrame)
Creates a PopupMenu Component.

Parameters:
parentFrame - the parent component that is responsible for this popup.

Methods

 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o 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
 o 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
 o show
 public void show()
 o hide
 public void hide()
 o paint
 public synchronized void paint(Graphics g)
Paints the component.

Overrides:
paint in class Component
 o 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
 o 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
 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o restoreBackground
 public void restoreBackground()
 o 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