|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.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.
Inner classes inherited from class javax.swing.JMenu |
JMenu.AccessibleJMenu, JMenu.WinListener |
Inner classes inherited from class javax.swing.JMenuItem |
JMenuItem.AccessibleJMenuItem |
Inner classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
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, NORTH, NORTH_EAST, NORTH_WEST, 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(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 |
doClick(int pressTime)
|
String |
getUIClassID()
Request for either MenuUI or MenuItemUI if the only one subitem should not use submenu. |
void |
menuSelectionChanged(boolean isIncluded)
|
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.awt.Container |
add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.MenuElement |
processKeyEvent, processMouseEvent |
Constructor Detail |
public Actions.SubMenu(SystemAction aAction, Actions.SubMenuModel model)
action
- the action to which this menu item should be connectedlabel
- a string label for the check box menu item,
or null for an unlabeled menu item.support
- the support for the menu itemspublic Actions.SubMenu(SystemAction aAction, Actions.SubMenuModel model, boolean popup)
action
- the action to which this menu item should be connectedlabel
- a string label for the check box menu item,
or null for an unlabeled menu item.support
- the support for the menu itemsMethod Detail |
public String getUIClassID()
getUIClassID
in class JMenu
public void menuSelectionChanged(boolean isIncluded)
menuSelectionChanged
in class JMenu
public void setSelected(boolean s)
setSelected
in class JMenu
public void setEnabled(boolean e)
setEnabled
in class JMenuItem
public void doClick(int pressTime)
doClick
in class JMenu
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |