org.apache.pivot.wtk
Class TablePane.RowSequence

java.lang.Object
  extended by org.apache.pivot.wtk.TablePane.RowSequence
All Implemented Interfaces:
Iterable<TablePane.Row>, org.apache.pivot.collections.Sequence<TablePane.Row>
Enclosing class:
TablePane

public final class TablePane.RowSequence
extends Object
implements org.apache.pivot.collections.Sequence<TablePane.Row>, Iterable<TablePane.Row>

Class that manages a table pane's row list. Callers get access to the row sequence via TablePane.getRows().


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(TablePane.Row row)
           
 TablePane.Row get(int index)
           
 int getLength()
           
 int indexOf(TablePane.Row row)
           
 void insert(TablePane.Row row, int index)
           
 Iterator<TablePane.Row> iterator()
           
 org.apache.pivot.collections.Sequence<TablePane.Row> remove(int index, int count)
           
 int remove(TablePane.Row row)
           
 TablePane.Row update(int index, TablePane.Row row)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public int add(TablePane.Row row)
Specified by:
add in interface org.apache.pivot.collections.Sequence<TablePane.Row>

insert

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

update

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

remove

public int remove(TablePane.Row row)
Specified by:
remove in interface org.apache.pivot.collections.Sequence<TablePane.Row>

remove

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

get

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

indexOf

public int indexOf(TablePane.Row row)
Specified by:
indexOf in interface org.apache.pivot.collections.Sequence<TablePane.Row>

getLength

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

iterator

public Iterator<TablePane.Row> iterator()
Specified by:
iterator in interface Iterable<TablePane.Row>