|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.GridPane.RowSequence
public final class GridPane.RowSequence
Class that manages a grid pane's row list. Callers get access to the
row sequence via GridPane.getRows().
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
|---|
Sequence.Tree<T> |
| Method Summary | |
|---|---|
int |
add(GridPane.Row row)
Adds an item to the sequence. |
GridPane.Row |
get(int index)
Retrieves the item at the given index. |
int |
getLength()
Returns the length of the sequence. |
int |
indexOf(GridPane.Row row)
Returns the index of an item in the sequence. |
void |
insert(GridPane.Row row,
int index)
Inserts an item into the sequence at a specific index. |
Iterator<GridPane.Row> |
iterator()
|
int |
remove(GridPane.Row row)
Removes the first occurrence of the given item from the sequence. |
Sequence<GridPane.Row> |
remove(int index,
int count)
Removes one or more items from the sequence. |
GridPane.Row |
update(int index,
GridPane.Row row)
Updates the item at the given index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int add(GridPane.Row row)
Sequence
add in interface Sequence<GridPane.Row>row - The item to be added to the sequence.
public void insert(GridPane.Row row,
int index)
Sequence
insert in interface Sequence<GridPane.Row>row - The item to be added to the sequence.index - The index at which the item should be inserted. Must be a value between
0 and getLength().
public GridPane.Row update(int index,
GridPane.Row row)
Sequence
update in interface Sequence<GridPane.Row>index - The index of the item to update.row - The item that will replace any existing value at the given index.
public int remove(GridPane.Row row)
Sequence
remove in interface Sequence<GridPane.Row>row - The item to remove.
Sequence.remove(int, int)
public Sequence<GridPane.Row> remove(int index,
int count)
Sequence
remove in interface Sequence<GridPane.Row>index - The starting index to remove.count - The number of items to remove, beginning with index.
public GridPane.Row get(int index)
Sequence
get in interface Sequence<GridPane.Row>index - The index of the item to retrieve.public int indexOf(GridPane.Row row)
Sequence
indexOf in interface Sequence<GridPane.Row>row - The item to locate.
public int getLength()
Sequence
getLength in interface Sequence<GridPane.Row>public Iterator<GridPane.Row> iterator()
iterator in interface Iterable<GridPane.Row>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||