|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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.moyoman.client.reference.CustomMenu
Provides a menu for custom commands. Initially invisible, it extends JMenu to become visible if menu items are added.
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.JMenuItem |
|
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.Container |
|
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 | |
CustomMenu()
Construct this object. |
|
CustomMenu(Action action)
Construct this object with the given parameter. |
|
CustomMenu(String text)
Construct this object with the given parameter. |
|
CustomMenu(String text,
boolean b)
Construct this object with the given parameters. |
Method Summary | |
JMenuItem |
add(Action action)
ÊCreates a new menu item attached to the specified Action object and appends it to the end of this menu. |
Component |
add(Component component)
Appends a component to the end of this menu. |
Component |
add(Component component,
int index)
Adds the specified component to this container at the given position. |
JMenuItem |
add(JMenuItem menuItem)
Appends a menu item to the end of this menu. |
JMenuItem |
add(String text)
Creates a new menu item with the specified text and appends it to the end of this menu. |
protected void |
checkVisibility()
Check the visibility of this menu. |
protected void |
init()
Initialize this object. |
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 CustomMenu()
public CustomMenu(Action action)
public CustomMenu(String text)
public CustomMenu(String text, boolean b)
Method Detail |
public JMenuItem add(Action action)
add
in class JMenu
public Component add(Component component)
add
in class JMenu
public Component add(Component component, int index)
add
in class JMenu
public JMenuItem add(JMenuItem menuItem)
add
in class JMenu
public JMenuItem add(String text)
add
in class JMenu
protected void checkVisibility()
protected void init()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |