|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.borg.ui.MainMenu
class MainMenu
The borg main menu bar
Constructor Summary | |
---|---|
MainMenu()
constructor |
Method Summary | |
---|---|
static void |
AboutMIActionPerformed()
show the about window |
void |
addAction(Icon icon,
String text,
ActionListener action,
int insertIndex)
Add an action to the action menu |
void |
addHelpMenuItem(Icon icon,
String text,
ActionListener action)
add an item to the help menu |
void |
addPluginSubMenu(JMenu menu)
add a sub menu to the plugin menu |
JMenuBar |
getMenuBar()
get the menu bar |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MainMenu()
Method Detail |
---|
public void addAction(Icon icon, String text, ActionListener action, int insertIndex)
icon
- the icon for the menu itemtext
- the text for the menu itemaction
- the action listener for the menu iteminsertIndex
- the index to insert the menu item atpublic void addHelpMenuItem(Icon icon, String text, ActionListener action)
icon
- the icon for the menu itemtext
- the menu item textaction
- the menu item actionpublic static void AboutMIActionPerformed()
public JMenuBar getMenuBar()
public void addPluginSubMenu(JMenu menu)
menu
- the sub menu
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |