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