|
||||||||||
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
net.sourceforge.jsxe.gui.EnhancedMenu
A Menu class that handles wrapping the menu items into sub-menus for you.
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 | |
EnhancedMenu()
Constructs a EnhancedPopupMenu without an "invoker" and the default wrap count of 20. |
|
EnhancedMenu(int wrapCount)
|
|
EnhancedMenu(String label,
int wrapCount)
Constructs a JPopupMenu with the specified title. |
Method Summary | |
JMenuItem |
add(Action a)
|
Component |
add(Component c)
|
Component |
add(Component c,
int index)
|
JMenuItem |
add(JMenuItem menuItem)
|
JMenuItem |
add(String s)
|
JMenu |
getCurrentMenu()
Gets the current menu that we are adding to. |
Component |
getMenuComponent(int n)
|
int |
getMenuComponentCount()
|
JMenuItem |
insert(Action a,
int pos)
|
JMenuItem |
insert(JMenuItem mi,
int pos)
|
void |
insert(String s,
int pos)
|
void |
maybeAddMenu()
Updates the menu that we are truly adding to. |
void |
remove(Component c)
|
void |
remove(int pos)
|
void |
remove(JMenuItem item)
|
void |
removeAll()
|
void |
updateSubMenus()
|
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 EnhancedMenu()
public EnhancedMenu(int wrapCount)
public EnhancedMenu(String label, int wrapCount)
label
- the string that a UI may use to display as a title for the popup menu.Method Detail |
public JMenuItem add(Action a)
public Component add(Component c)
public Component add(Component c, int index)
public JMenuItem add(JMenuItem menuItem)
public JMenuItem add(String s)
public JMenuItem insert(Action a, int pos)
public JMenuItem insert(JMenuItem mi, int pos)
public void insert(String s, int pos)
public void remove(Component c)
public void remove(int pos)
public void remove(JMenuItem item)
public void removeAll()
public Component getMenuComponent(int n)
public int getMenuComponentCount()
public JMenu getCurrentMenu()
public void updateSubMenus()
public void maybeAddMenu()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |