| Modifier and Type | Method and Description |
|---|---|
Row |
get(int index)
Gets the row at the specified index.
|
RowRange |
get(int top,
int bottom)
Gets a
RowRange object that can be used to manipulate the rows in the specified range. |
int |
getCount()
Gets the number of rows in the collection.
|
void |
insert(int index)
Inserts a new row at the specified index.
|
void |
insert(int index,
int count)
Inserts the specified number of rows at the specified index.
|
boolean |
isHidden(int row)
Checks whether the specified row is hidden.
|
java.util.Iterator<Row> |
iterator()
Returns an object that iterates through the collection.
|
void |
move(int index,
int target)
Moves the specified row to the specified target index.
|
boolean |
move(int index,
int count,
int target)
Moves the specified number of rows to the specified target index.
|
void |
remove(int index)
Removes the row at the specified index.
|
void |
remove(int index,
int count)
Removes the specified number of rows at the specified index.
|
public boolean isHidden(int row)
Row.getIsHidden() directly, particularly when called multiple times in a row.public java.util.Iterator<Row> iterator()
iterator in interface java.lang.Iterable<Row>Iterator that can be used to iterate through the collection.public void insert(int index)
This method will raise an IllegalStateException exception if the
operation would cause filled cells to be shifted beyond the sheet.
index - The zero-based index where the row should be inserted.public void insert(int index,
int count)
This method will raise an IllegalStateException exception if the
operation would cause filled cells to be shifted beyond the sheet.
index - The zero-based index where the rows should be inserted.count - The number of rows to insert.public void remove(int index)
index - The zero-based index of the row to remove.public void remove(int index,
int count)
index - The zero-based index of the first row to remove.count - The number of rows to remove.public void move(int index,
int target)
index - The zero-based index of the row to move.target - The zero-based index of the row before which the row should be moved.public boolean move(int index,
int count,
int target)
index - The zero-based index of the first row to move.count - The number of rows to move.target - The zero-based index of the row before which the rows should be moved.true if a move occurred; otherwise, false.public int getCount()
public Row get(int index)
index - The zero-based index of the row to get.Row object identifying the row at the specified position.public RowRange get(int top, int bottom)
RowRange object that can be used to manipulate the rows in the specified range.top - The zero-based index of the top row in the range.bottom - The zero-based index of the bottom row in the range.RowRange object that can be used to manipulate the rows in the range.