|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a sheet within a workbook. Provides a handle to the individual cells, or lines of cells (grouped by Row or Column)
Method Summary | |
Cell |
findCell(java.lang.String contents)
Gets the cell whose contents match the string passed in. |
LabelCell |
findLabelCell(java.lang.String contents)
Gets the cell whose contents match the string passed in. |
Cell |
getCell(int column,
int row)
Returns the cell specified at this row and at this column. |
Cell[] |
getColumn(int col)
Gets all the cells on the specified column |
CellFormat |
getColumnFormat(int col)
Deprecated. Use getColumnView and the CellView bean instead |
int |
getColumns()
Returns the number of columns in this sheet |
CellView |
getColumnView(int col)
Gets the column width for the specified column |
int |
getColumnWidth(int col)
Deprecated. Use getColumnView instead |
Hyperlink[] |
getHyperlinks()
Gets the hyperlinks on this sheet |
Range[] |
getMergedCells()
Gets the cells which have been merged on this sheet |
java.lang.String |
getName()
Gets the name of this sheet |
Cell[] |
getRow(int row)
Gets all the cells on the specified row |
int |
getRowHeight(int row)
Deprecated. use getRowView instead |
int |
getRows()
Returns the number of rows in this sheet |
CellView |
getRowView(int row)
Gets the column width for the specified column |
SheetSettings |
getSettings()
Gets the settings used on a particular sheet |
boolean |
isHidden()
Deprecated. in favouf of the getSettings() method |
boolean |
isProtected()
Deprecated. in favour of the getSettings() method |
Method Detail |
public Cell getCell(int column, int row)
column
- the column numberrow
- the row numberpublic int getRows()
public int getColumns()
public Cell[] getRow(int row)
row
- the rows whose cells are to be returnedpublic Cell[] getColumn(int col)
col
- the column whose cells are to be returnedpublic java.lang.String getName()
public boolean isHidden()
public boolean isProtected()
public Cell findCell(java.lang.String contents)
contents
- the string to matchpublic LabelCell findLabelCell(java.lang.String contents)
contents
- the string to matchpublic Hyperlink[] getHyperlinks()
public Range[] getMergedCells()
public SheetSettings getSettings()
public CellFormat getColumnFormat(int col)
col
- the column numberpublic int getColumnWidth(int col)
col
- the column numberpublic CellView getColumnView(int col)
col
- the column numberpublic int getRowHeight(int row)
row
- the column numberpublic CellView getRowView(int row)
row
- the column number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |