All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.util.HabaneroMenuItem

java.lang.Object
   |
   +----java.awt.MenuComponent
           |
           +----java.awt.MenuItem
                   |
                   +----ncsa.util.HabaneroMenuItem

public class HabaneroMenuItem
extends MenuItem
This class allows you to use action-event delivery mechanism for MenuItems within a Habanero tool, without needing to extend MenuItem for each menu item you want to create. HabaneroMenuItem will forward actions on your menu to any Component you wnat, instead of delivering them to the MirrorFrame, where you can't get at them.


Constructor Index

 o HabaneroMenuItem(String, Component)
Constructs a menu item with a label and the a Component it should forward action events to.

Method Index

 o postEvent(Event)

Constructors

 o HabaneroMenuItem
 public HabaneroMenuItem(String label,
                         Component forwardTo)
Constructs a menu item with a label and the a Component it should forward action events to.

Parameters:
label - the label the menu item should use
forwardTo - the component that will receive action events

Methods

 o postEvent
 public boolean postEvent(Event e)
Overrides:
postEvent in class MenuComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index