|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
javax.swing.JMenu
org.openide.awt.JMenuPlus
org.openide.awt.Actions.SubMenu
SubMenu provides easy way of displaying submenu items based on SubMenuModel.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JMenu |
JMenu.AccessibleJMenu, JMenu.WinListener |
| Nested classes inherited from class javax.swing.JMenuItem |
JMenuItem.AccessibleJMenuItem |
| Nested classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JMenu |
popupListener |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Actions.SubMenu(Action aAction,
Actions.SubMenuModel model,
boolean popup)
Constructs a new ActMenuItem with the specified label and no keyboard shortcut and connects it to the given SystemAction. |
|
Actions.SubMenu(SystemAction aAction,
Actions.SubMenuModel model)
Constructs a new ActMenuItem with the specified label and no keyboard shortcut and connects it to the given SystemAction. |
|
Actions.SubMenu(SystemAction aAction,
Actions.SubMenuModel model,
boolean popup)
Constructs a new ActMenuItem with the specified label and no keyboard shortcut and connects it to the given SystemAction. |
|
| Method Summary | |
void |
addNotify()
Overriden to finish initialization of the bridge on demand |
void |
doClick(int pressTime)
|
KeyStroke |
getAccelerator()
Overrides superclass method to be able to have an accelerator. |
String |
getUIClassID()
Request for either MenuUI or MenuItemUI if the only one subitem should not use submenu. |
void |
menuSelectionChanged(boolean isIncluded)
|
protected boolean |
processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
Overrides superclass method. |
void |
processKeyEvent(KeyEvent e,
MenuElement[] path,
MenuSelectionManager m)
Overrides superclass method. |
void |
setAccelerator(KeyStroke keyStroke)
Overrides superclass method to be able to have an accelerator. |
void |
setEnabled(boolean e)
Seting menu to disabled also sets the item as not selected |
void |
setSelected(boolean s)
Menu cannot be selected when it represents MenuItem. |
| Methods inherited from class org.openide.awt.JMenuPlus |
getPopupMenuOrigin, setPopupMenuVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.MenuElement |
processMouseEvent |
| Constructor Detail |
public Actions.SubMenu(SystemAction aAction,
Actions.SubMenuModel model)
aAction - the action to which this menu item should be connectedmodel - the support for the menu items
public Actions.SubMenu(SystemAction aAction,
Actions.SubMenuModel model,
boolean popup)
aAction - the action to which this menu item should be connectedmodel - the support for the menu itemspopup - whether this is a popup menu
public Actions.SubMenu(Action aAction,
Actions.SubMenuModel model,
boolean popup)
aAction - the action to which this menu item should be connectedmodel - the support for the menu itemspopup - whether this is a popup menu| Method Detail |
public void addNotify()
protected boolean processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
public void processKeyEvent(KeyEvent e,
MenuElement[] path,
MenuSelectionManager m)
JMenu needs to act like JMenuItem.
public String getUIClassID()
public void setAccelerator(KeyStroke keyStroke)
public KeyStroke getAccelerator()
public void menuSelectionChanged(boolean isIncluded)
public void setSelected(boolean s)
public void setEnabled(boolean e)
public void doClick(int pressTime)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||