org.apache.pivot.wtk
Class MenuBar.ItemSequence
java.lang.Object
org.apache.pivot.wtk.MenuBar.ItemSequence
- All Implemented Interfaces:
- Iterable<MenuBar.Item>, org.apache.pivot.collections.Sequence<MenuBar.Item>
- Enclosing class:
- MenuBar
public final class MenuBar.ItemSequence
- extends Object
- implements org.apache.pivot.collections.Sequence<MenuBar.Item>, Iterable<MenuBar.Item>
Item sequence implementation.
| 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 |
MenuBar.ItemSequence
public MenuBar.ItemSequence()
add
public int add(MenuBar.Item item)
- Specified by:
add in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
insert
public void insert(MenuBar.Item item,
int index)
- Specified by:
insert in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
update
public MenuBar.Item update(int index,
MenuBar.Item item)
- Specified by:
update in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
remove
public int remove(MenuBar.Item item)
- Specified by:
remove in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
remove
public org.apache.pivot.collections.Sequence<MenuBar.Item> remove(int index,
int count)
- Specified by:
remove in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
get
public MenuBar.Item get(int index)
- Specified by:
get in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
indexOf
public int indexOf(MenuBar.Item item)
- Specified by:
indexOf in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
getLength
public int getLength()
- Specified by:
getLength in interface org.apache.pivot.collections.Sequence<MenuBar.Item>
iterator
public Iterator<MenuBar.Item> iterator()
- Specified by:
iterator in interface Iterable<MenuBar.Item>