Horus Doc || Java GUI Reference || Doxygen's quick Index  

BarMenuEvent Class Reference

Indicates that a BarMenu item has been selected. More...

List of all members.

Public Methods

 BarMenuEvent (Object source, String command, int type, String menuName)
 Construct event with given parameters. More...

String getCommand ()
 Get the name of the menu item. More...

int getType ()
 Get the type (NORM_TYPE or SAMETHOD_TYPE) of the menu item. More...

String getMenuName ()
 Get the name of the menu to which the item belongs. More...


Static Public Attributes

final int NORM_TYPE = 0
 Normal menu item selected. More...

final int SAMETHOD_TYPE = 1
 SaMethod menu item selected. More...


Detailed Description

Indicates that a BarMenu item has been selected.

Contains the command and type of the associated menu item. The event is send by BarMenu to all BarMenuListeners.


Constructor & Destructor Documentation

BarMenuEvent::BarMenuEvent Object    source,
String    command,
int    type,
String    menuName
[inline]
 

Construct event with given parameters.

00034     {
00035         super(source);
00036         this.command = command;
00037         this.type = type;
00038         this.menuName = menuName;
00039     }


Member Function Documentation

String BarMenuEvent::getCommand   [inline]
 

Get the name of the menu item.

00045     {
00046         return command;
00047     }

int BarMenuEvent::getType   [inline]
 

Get the type (NORM_TYPE or SAMETHOD_TYPE) of the menu item.

00053     {
00054         return type;
00055     }

String BarMenuEvent::getMenuName   [inline]
 

Get the name of the menu to which the item belongs.

00061     {
00062         return menuName;
00063     }


Member Data Documentation

final int BarMenuEvent::NORM_TYPE = 0 [static]
 

Normal menu item selected.

final int BarMenuEvent::SAMETHOD_TYPE = 1 [static]
 

SaMethod menu item selected.


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:13 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001