public class RadioMenuActionFactory extends MenuActionFactory
| Red (tfeng) |
| Red (tfeng) |
| Constructor and Description |
|---|
RadioMenuActionFactory(javax.swing.Action action)
Construct a factory that adds a given action as a radio selection to a
given context menu.
|
RadioMenuActionFactory(javax.swing.Action[] actions,
java.lang.String label)
Construct a factory that adds a given group of actions as radio
selections to a given context menu in a submenu with the specified
label.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.JMenuItem |
_add(JContextMenu menu,
javax.swing.Action action,
java.lang.String tooltip)
Add an action to the context menu.
|
protected javax.swing.JMenuItem |
_add(javax.swing.JMenu submenu,
javax.swing.Action action)
Add an action to the submenu.
|
javax.swing.JMenuItem |
create(JContextMenu menu,
NamedObj object)
Add an item to the given context menu that will configure the
parameters on the given target.
|
addAction, addAction, addActions, addMenuItemListener, substitutepublic RadioMenuActionFactory(javax.swing.Action action)
action - The action to be associated with the context menu.public RadioMenuActionFactory(javax.swing.Action[] actions,
java.lang.String label)
actions - The actions to be in the submenu.label - The label for the submenu.public javax.swing.JMenuItem create(JContextMenu menu, NamedObj object)
create in interface MenuItemFactorycreate in class MenuActionFactorymenu - The context menu to add to.object - The object that the menu item command will operate on.protected javax.swing.JMenuItem _add(JContextMenu menu, javax.swing.Action action, java.lang.String tooltip)
_add in class MenuActionFactorymenu - The context menu.action - The action to be added to the context menu.tooltip - The tooltip for the action.protected javax.swing.JMenuItem _add(javax.swing.JMenu submenu,
javax.swing.Action action)
_add in class MenuActionFactorysubmenu - The submenu.action - The action to be added to the submenu.