public interface Spreadsheet extends Iterable<Cell>, Extensible<Spreadsheet>, Serializable
Modifier and Type | Method and Description |
---|---|
void |
addCellListener(CellListener listener)
Registers the given listener to receive events from all cells in the
spreadsheet.
|
Cell |
getCell(Address address)
Returns the cell at the given address.
|
Cell |
getCell(int column,
int row)
Returns the cell at the given column and row in the spreadsheet.
|
CellListener[] |
getCellListeners()
Returns the cell listeners that have been registered on the spreadsheet.
|
SortedSet<Cell> |
getCells(Address address1,
Address address2)
Returns the cells in the range between the given addresses.
|
Cell[] |
getColumn(int index)
Returns the cells in the given column.
|
int |
getColumnCount()
Returns the number of columns in the spreadsheet.
|
Cell[] |
getRow(int index)
Returns the cells in the given row.
|
int |
getRowCount()
Returns the number of rows in the spreadsheet.
|
String |
getTitle()
Returns the title of the spreadsheet.
|
Workbook |
getWorkbook()
Returns the workbook to which the spreadsheet belongs.
|
void |
removeCellListener(CellListener listener)
Deregisters the given listener from receiving events from all cells in
the spreadsheet.
|
void |
setTitle(String title)
Sets the title of the spreadsheet.
|
getExtension
Workbook getWorkbook()
String getTitle()
void setTitle(String title)
title
- the title of the spreadsheet.int getColumnCount()
int getRowCount()
Cell getCell(Address address)
address
- the address of the cellCell getCell(int column, int row)
column
- the column index of the cell's locationrow
- the row index of the cell's locationSortedSet<Cell> getCells(Address address1, Address address2)
address1
- the address of the cell in one end of the rangeaddress2
- the address of the cell in the other end of the rangeCell[] getColumn(int index)
index
- the index of the columnCell[] getRow(int index)
index
- the index of the rowvoid addCellListener(CellListener listener)
listener
- the listener to be addedvoid removeCellListener(CellListener listener)
listener
- the listener to be removedCellListener[] getCellListeners()