|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.Menu
public class Menu
Component that presents a cascading menu.
Nested Class Summary | |
---|---|
static class |
Menu.Item
Component representing a menu item. |
static interface |
Menu.ItemListener
Item listener interface. |
static class |
Menu.Section
Class representing a menu section. |
static interface |
Menu.SectionListener
Section listener interface. |
class |
Menu.SectionSequence
Section sequence implementation. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree |
Constructor Summary | |
---|---|
Menu()
|
Method Summary | |
---|---|
void |
activateNextItem()
|
void |
activatePreviousItem()
|
Menu.Item |
getActiveItem()
|
Menu.Item |
getItem()
Retrieves the parent item of this menu. |
Menu.Item |
getItem(String name)
Retrieves a named item. |
ListenerList<MenuItemSelectionListener> |
getMenuItemSelectionListeners()
|
ListenerList<MenuListener> |
getMenuListeners()
|
Menu.Section |
getSection(String name)
Retrieves a named section. |
Menu.SectionSequence |
getSections()
|
Sequence<Component> |
remove(int index,
int count)
Removes one or more items from the sequence. |
Methods inherited from class org.apache.pivot.wtk.Container |
---|
add, containsFocus, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, iterator, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setContextKey, setFocusTraversalPolicy, setParent, setTooltip, setVisible, store, transferFocus, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Menu()
Method Detail |
---|
public Menu.Item getItem()
public Menu.SectionSequence getSections()
public Menu.Section getSection(String name)
name
-
public Menu.Item getItem(String name)
name
-
public Menu.Item getActiveItem()
public void activateNextItem()
public void activatePreviousItem()
public Sequence<Component> remove(int index, int count)
Sequence
remove
in interface Sequence<Component>
remove
in class Container
index
- The starting index to remove.count
- The number of items to remove, beginning with index.
public ListenerList<MenuListener> getMenuListeners()
public ListenerList<MenuItemSelectionListener> getMenuItemSelectionListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |