org.apache.pivot.wtk
Class Accordion.PanelSequence

java.lang.Object
  extended by org.apache.pivot.wtk.Accordion.PanelSequence
All Implemented Interfaces:
Iterable<Component>, org.apache.pivot.collections.Sequence<Component>
Enclosing class:
Accordion

public final class Accordion.PanelSequence
extends Object
implements org.apache.pivot.collections.Sequence<Component>, Iterable<Component>

Panel sequence implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
org.apache.pivot.collections.Sequence.Tree<T>
 
Method Summary
 int add(Component panel)
           
 Component get(int index)
           
 int getLength()
           
 int indexOf(Component panel)
           
 void insert(Component panel, int index)
           
 Iterator<Component> iterator()
           
 int remove(Component panel)
           
 org.apache.pivot.collections.Sequence<Component> remove(int index, int count)
           
 Component update(int index, Component panel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public int add(Component panel)
Specified by:
add in interface org.apache.pivot.collections.Sequence<Component>

insert

public void insert(Component panel,
                   int index)
Specified by:
insert in interface org.apache.pivot.collections.Sequence<Component>

update

public Component update(int index,
                        Component panel)
Specified by:
update in interface org.apache.pivot.collections.Sequence<Component>

remove

public int remove(Component panel)
Specified by:
remove in interface org.apache.pivot.collections.Sequence<Component>

remove

public org.apache.pivot.collections.Sequence<Component> remove(int index,
                                                               int count)
Specified by:
remove in interface org.apache.pivot.collections.Sequence<Component>

get

public Component get(int index)
Specified by:
get in interface org.apache.pivot.collections.Sequence<Component>

indexOf

public int indexOf(Component panel)
Specified by:
indexOf in interface org.apache.pivot.collections.Sequence<Component>

getLength

public int getLength()
Specified by:
getLength in interface org.apache.pivot.collections.Sequence<Component>

iterator

public Iterator<Component> iterator()
Specified by:
iterator in interface Iterable<Component>