org.apache.pivot.wtk
Class Menu.Section
java.lang.Object
org.apache.pivot.wtk.Menu.Section
- All Implemented Interfaces:
- Iterable<Menu.Item>, org.apache.pivot.collections.Sequence<Menu.Item>
- Enclosing class:
- Menu
public static class Menu.Section
- extends Object
- implements org.apache.pivot.collections.Sequence<Menu.Item>, Iterable<Menu.Item>
Class representing a menu section. A section is a grouping of menu
items within a menu.
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
org.apache.pivot.collections.Sequence.Tree<T> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Menu.Section
public Menu.Section()
getMenu
public Menu getMenu()
getName
public String getName()
setName
public void setName(String name)
add
public int add(Menu.Item item)
- Specified by:
add in interface org.apache.pivot.collections.Sequence<Menu.Item>
insert
public void insert(Menu.Item item,
int index)
- Specified by:
insert in interface org.apache.pivot.collections.Sequence<Menu.Item>
update
public Menu.Item update(int index,
Menu.Item item)
- Specified by:
update in interface org.apache.pivot.collections.Sequence<Menu.Item>
remove
public int remove(Menu.Item item)
- Specified by:
remove in interface org.apache.pivot.collections.Sequence<Menu.Item>
remove
public org.apache.pivot.collections.Sequence<Menu.Item> remove(int index,
int count)
- Specified by:
remove in interface org.apache.pivot.collections.Sequence<Menu.Item>
get
public Menu.Item get(int index)
- Specified by:
get in interface org.apache.pivot.collections.Sequence<Menu.Item>
indexOf
public int indexOf(Menu.Item item)
- Specified by:
indexOf in interface org.apache.pivot.collections.Sequence<Menu.Item>
getLength
public int getLength()
- Specified by:
getLength in interface org.apache.pivot.collections.Sequence<Menu.Item>
iterator
public Iterator<Menu.Item> iterator()
- Specified by:
iterator in interface Iterable<Menu.Item>
getSectionListeners
public org.apache.pivot.util.ListenerList<Menu.SectionListener> getSectionListeners()