|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.ext.SpreadsheetExtension
public abstract class SpreadsheetExtension
A base class for extensions of spreadsheets that uses delegation to provide cell data.
| Constructor Summary | |
|---|---|
SpreadsheetExtension(Spreadsheet delegate,
String name)
Creates a new spreadsheet extension. |
|
| Method Summary | |
|---|---|
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. |
Spreadsheet |
getExtension(String name)
Returns the extension with the given key. |
String |
getName()
Returns the name of the extension to which the spreadsheet extension belongs. |
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. |
Iterator<Cell> |
iterator()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpreadsheetExtension(Spreadsheet delegate,
String name)
delegate - the delegate of the extensionname - the name of the extension to which the spreadsheet extension belongs| Method Detail |
|---|
public final String getName()
public final String getTitle()
Spreadsheet
getTitle in interface Spreadsheetpublic final void setTitle(String title)
Spreadsheet
setTitle in interface Spreadsheettitle - the title of the spreadsheet.public final Workbook getWorkbook()
Spreadsheet
getWorkbook in interface Spreadsheetpublic final int getColumnCount()
Spreadsheet
getColumnCount in interface Spreadsheetpublic final int getRowCount()
Spreadsheet
getRowCount in interface Spreadsheetpublic final Cell getCell(Address address)
Spreadsheet
getCell in interface Spreadsheetaddress - the address of the cell
public final Cell getCell(int column,
int row)
Spreadsheet
getCell in interface Spreadsheetcolumn - the column index of the cell's locationrow - the row index of the cell's location
public final SortedSet<Cell> getCells(Address address1,
Address address2)
Spreadsheet
getCells in interface Spreadsheetaddress1 - the address of the cell in one end of the rangeaddress2 - the address of the cell in the other end of the range
public final Cell[] getColumn(int index)
Spreadsheet
getColumn in interface Spreadsheetindex - the index of the column
public final Cell[] getRow(int index)
Spreadsheet
getRow in interface Spreadsheetindex - the index of the row
public final Iterator<Cell> iterator()
iterator in interface Iterable<Cell>public void addCellListener(CellListener listener)
Spreadsheet
addCellListener in interface Spreadsheetlistener - the listener to be addedpublic void removeCellListener(CellListener listener)
Spreadsheet
removeCellListener in interface Spreadsheetlistener - the listener to be removedpublic CellListener[] getCellListeners()
Spreadsheet
getCellListeners in interface Spreadsheetpublic final Spreadsheet getExtension(String name)
Extensible
getExtension in interface Extensible<Spreadsheet>name - the name of the extension (case-insensitive)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||