org.apache.pivot.wtk
Class Component.DecoratorSequence

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

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

Decorator sequence implementation.


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

Constructor Detail

Component.DecoratorSequence

public Component.DecoratorSequence()
Method Detail

add

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

insert

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

update

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

remove

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

remove

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

removeAll

public org.apache.pivot.collections.Sequence<Decorator> removeAll()

get

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

indexOf

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

getLength

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

iterator

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