|
||||||||||
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.menu.WrappingMenu
A Menu class that handles wrapping the menu items into sub-menus for you.
Nested Class Summary | |
static class |
WrappingMenu.MoreMenu
A submenu used by the WrappingMenu . |
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 | |
WrappingMenu()
Constructs a WrappingMenu without an "invoker" and the default wrap count of 20. |
|
WrappingMenu(int wrapCount)
Constructs a WrappingMenu without an "invoker" and the wrap count specified. |
|
WrappingMenu(String label,
int wrapCount)
Constructs an WrappingMenu 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)
|
protected WrappingMenu.MoreMenu |
createMoreMenu()
Creates an internal menu that is used for wrapping this WrappingMenu. |
Component |
getMenuComponent(int n)
Returns the the component in this menu or a submenu. |
int |
getMenuComponentCount()
Gets the total number of components in this menu and submenus. |
JMenuItem |
insert(Action a,
int pos)
|
JMenuItem |
insert(JMenuItem mi,
int pos)
|
void |
insert(String s,
int pos)
|
void |
remove(Component c)
|
void |
remove(int pos)
|
void |
remove(JMenuItem item)
|
void |
removeAll()
|
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 WrappingMenu()
public WrappingMenu(int wrapCount)
wrapCount
- the number of components that are added to menu before
it wraps.public WrappingMenu(String label, int wrapCount)
label
- the string that a UI may use to display as a title for the
popup menu.wrapCount
- the number of components that are added to menu before
it wraps.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()
protected WrappingMenu.MoreMenu createMoreMenu()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |