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... |
Contains the command and type of the associated menu item. The event is send by BarMenu to all BarMenuListeners.
|
Construct event with given parameters.
00034 { 00035 super(source); 00036 this.command = command; 00037 this.type = type; 00038 this.menuName = menuName; 00039 } |
|
Get the name of the menu item.
00045 { 00046 return command; 00047 } |
|
Get the type (NORM_TYPE or SAMETHOD_TYPE) of the menu item.
00053 { 00054 return type; 00055 } |
|
Get the name of the menu to which the item belongs.
00061 { 00062 return menuName; 00063 } |
|
Normal menu item selected.
|
|
SaMethod menu item selected.
|