|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.helper.MenuToolkit
public class MenuToolkit
MenuToolkit provides convenient methods that make life easier when creating menus.
| Constructor Summary | |
|---|---|
MenuToolkit()
|
|
| Method Summary | |
|---|---|
static javax.swing.JCheckBoxMenuItem |
addCheckBoxMenuItem(javax.swing.JMenu menu,
MuAction action,
MnemonicHelper mnemonicHelper)
|
static javax.swing.JCheckBoxMenuItem |
addCheckBoxMenuItem(javax.swing.JMenu menu,
java.lang.String text,
MnemonicHelper mnemonicHelper,
javax.swing.KeyStroke accelerator,
java.awt.event.ActionListener actionListener)
Creates a new JCheckBoxMenuItem initially unselected and adds it to the given JMenu. |
static javax.swing.JMenu |
addMenu(java.lang.String title,
MnemonicHelper mnemonicHelper,
javax.swing.event.MenuListener menuListener)
Creates and returns a new JMenu. |
static javax.swing.JMenuItem |
addMenuItem(javax.swing.JMenu menu,
MuAction action,
MnemonicHelper mnemonicHelper)
|
static javax.swing.JMenuItem |
addMenuItem(javax.swing.JMenu menu,
java.lang.String text,
MnemonicHelper mnemonicHelper,
javax.swing.KeyStroke accelerator,
java.awt.event.ActionListener actionListener)
Creates a new JMenuItem and adds it to the given JMenu. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuToolkit()
| Method Detail |
|---|
public static javax.swing.JMenu addMenu(java.lang.String title,
MnemonicHelper mnemonicHelper,
javax.swing.event.MenuListener menuListener)
title - title of the menumnemonicHelper - an optional (can be null) mnemonic helper which will be used along with
the title to set a mnemonic to the menu.menuListener - an optional (can be null) menu listener which will listen to the events triggered by the menu.
public static javax.swing.JMenuItem addMenuItem(javax.swing.JMenu menu,
java.lang.String text,
MnemonicHelper mnemonicHelper,
javax.swing.KeyStroke accelerator,
java.awt.event.ActionListener actionListener)
menu - menu to add the menu item to.text - text used by the menu item.mnemonicHelper - an optional (can be null) mnemonic helper which will be used along with
the item's text to set a mnemonic to the menu.accelerator - an optional (can be null) keyboard shortcut used by the menu item.actionListener - an optional (can be null) action listener which will listen to the events triggered by the menu item.
public static javax.swing.JCheckBoxMenuItem addCheckBoxMenuItem(javax.swing.JMenu menu,
java.lang.String text,
MnemonicHelper mnemonicHelper,
javax.swing.KeyStroke accelerator,
java.awt.event.ActionListener actionListener)
menu - menu to add the menu item to.text - text used by the menu item.mnemonicHelper - an optional (can be null) mnemonic helper which will be used along with
the item's text to set a mnemonic to the menu.accelerator - an optional (can be null) keyboard shortcut used by the menu item.actionListener - an optional (can be null) action listener which will listen to the events triggered by the menu item.
public static javax.swing.JMenuItem addMenuItem(javax.swing.JMenu menu,
MuAction action,
MnemonicHelper mnemonicHelper)
public static javax.swing.JCheckBoxMenuItem addCheckBoxMenuItem(javax.swing.JMenu menu,
MuAction action,
MnemonicHelper mnemonicHelper)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard