|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.read.biff.SheetImpl
Represents a sheet within a workbook. Provides a handle to the individual cells, or lines of cells (grouped by Row or Column) In order to simplify this class due to code bloat, the actual reading logic has been delegated to the SheetReaderClass. This class' main responsibility is now to implement the API methods declared in the Sheet interface
| 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. |
ButtonPropertySetRecord |
getButtonPropertySet()
Accessor for the button property set, used during copying |
Cell |
getCell(int column,
int row)
Returns the cell specified at this row and at this column |
Cell |
getCell(java.lang.String loc)
Returns the cell for the specified location eg. |
Chart[] |
getCharts()
Gets the charts. |
Cell[] |
getColumn(int col)
Gets all the cells on the specified column. |
CellFormat |
getColumnFormat(int col)
Deprecated. use getColumnView instead |
ColumnInfoRecord |
getColumnInfo(int col)
Gets the column info record for the specified column. |
ColumnInfoRecord[] |
getColumnInfos()
Gets all the column info records |
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)
Gets the column width for the specified column |
DataValidation |
getDataValidation()
Gets the data validations. |
Image |
getDrawing(int i)
Accessor for the image |
DrawingData |
getDrawingData()
Used by one of the demo programs for debugging purposes only |
DrawingGroupObject[] |
getDrawings()
Gets the drawings. |
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 |
int |
getNumberOfImages()
Accessor for the number of images on the sheet |
PLSRecord |
getPLS()
Accessor for the environment specific print record, invoked when copying sheets |
Cell[] |
getRow(int row)
Gets all the cells on the specified row. |
int |
getRowHeight(int row)
Deprecated. use getRowView instead |
int[] |
getRowPageBreaks()
Gets the row breaks. |
RowRecord[] |
getRowProperties()
Gets the non-default rows. |
int |
getRows()
Returns the number of rows in this sheet |
CellView |
getRowView(int row)
Gets the row view for the specified row |
SheetSettings |
getSettings()
Accessor for the sheet settings |
BOFRecord |
getSheetBof()
Used when copying sheets in order to determine the type of this sheet |
BOFRecord |
getWorkbookBof()
Used when copying sheets in order to determine the type of the containing workboook |
WorkspaceInformationRecord |
getWorkspaceOptions()
Gets the workspace options for this sheet. |
boolean |
isHidden()
Deprecated. in favour of the getSettings function |
boolean |
isProtected()
Deprecated. in favour of the getSettings() api |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Cell getCell(java.lang.String loc)
getCell in interface Sheetloc - the cell reference
public Cell getCell(int column,
int row)
getCell in interface Sheetrow - the row numbercolumn - the column number
public Cell findCell(java.lang.String contents)
findCell in interface Sheetcontents - the string to match
public LabelCell findLabelCell(java.lang.String contents)
findLabelCell in interface Sheetcontents - the string to match
public int getRows()
getRows in interface Sheetpublic int getColumns()
getColumns in interface Sheetpublic Cell[] getRow(int row)
getRow in interface Sheetrow - the rows whose cells are to be returned
public Cell[] getColumn(int col)
getColumn in interface Sheetcol - the column whose cells are to be returned
public java.lang.String getName()
getName in interface Sheetpublic boolean isHidden()
isHidden in interface Sheetpublic ColumnInfoRecord getColumnInfo(int col)
col - the column
public ColumnInfoRecord[] getColumnInfos()
public Hyperlink[] getHyperlinks()
getHyperlinks in interface Sheetpublic Range[] getMergedCells()
getMergedCells in interface Sheetpublic RowRecord[] getRowProperties()
public DataValidation getDataValidation()
public final int[] getRowPageBreaks()
getRowPageBreaks in interface Sheetpublic final Chart[] getCharts()
public final DrawingGroupObject[] getDrawings()
public boolean isProtected()
isProtected in interface Sheetpublic WorkspaceInformationRecord getWorkspaceOptions()
public SheetSettings getSettings()
getSettings in interface Sheetpublic CellFormat getColumnFormat(int col)
getColumnFormat in interface Sheetcol - the column number
public int getColumnWidth(int col)
getColumnWidth in interface Sheetcol - the column number
public CellView getColumnView(int col)
getColumnView in interface Sheetcol - the column number
public int getRowHeight(int row)
getRowHeight in interface Sheetrow - the row number
public CellView getRowView(int row)
getRowView in interface Sheetrow - the row number
public BOFRecord getSheetBof()
public BOFRecord getWorkbookBof()
public PLSRecord getPLS()
public ButtonPropertySetRecord getButtonPropertySet()
public int getNumberOfImages()
getNumberOfImages in interface Sheetpublic Image getDrawing(int i)
getDrawing in interface Sheeti - the 0 based image number
public DrawingData getDrawingData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||