Package org.spdx.tools.compare
Class AbstractSheet
java.lang.Object
org.spdx.tools.compare.AbstractSheet
- Direct Known Subclasses:
AbstractFileCompareSheet
,CreatorSheet
,DocumentAnnotationSheet
,DocumentRelationshipSheet
,DocumentSheet
,ExternalReferencesSheet
,ExtractedLicenseSheet
,PackageSheet
,SnippetSheet
,VerificationSheet
Abstract class representing a workbook sheet used in storing structured data
- Author:
- Gary O'Neall
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.poi.ss.usermodel.CellStyle
protected org.apache.poi.ss.usermodel.CellStyle
protected int
protected int
protected static final short
protected org.apache.poi.ss.usermodel.CellStyle
protected int
protected org.apache.poi.ss.usermodel.CellStyle
protected org.apache.poi.ss.usermodel.Sheet
protected org.apache.poi.ss.usermodel.Workbook
protected org.apache.poi.ss.usermodel.CellStyle
-
Constructor Summary
ConstructorDescriptionAbstractSheet
(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.poi.ss.usermodel.Row
addRow()
Add a new row to the end of the sheetvoid
clear()
Clears all data from the worksheetstatic org.apache.poi.ss.usermodel.CellStyle
createCenterStyle
(org.apache.poi.ss.usermodel.Workbook wb) static org.apache.poi.ss.usermodel.CellStyle
createHeaderStyle
(org.apache.poi.ss.usermodel.Workbook wb) static org.apache.poi.ss.usermodel.CellStyle
createLeftWrapStyle
(org.apache.poi.ss.usermodel.Workbook wb) int
int
org.apache.poi.ss.usermodel.Sheet
getSheet()
void
resize the rows for a best fit.abstract String
verify()
-
Field Details
-
FONT_SIZE
protected static final short FONT_SIZE- See Also:
-
checkboxStyle
protected org.apache.poi.ss.usermodel.CellStyle checkboxStyle -
dateStyle
protected org.apache.poi.ss.usermodel.CellStyle dateStyle -
greenWrapped
protected org.apache.poi.ss.usermodel.CellStyle greenWrapped -
redWrapped
protected org.apache.poi.ss.usermodel.CellStyle redWrapped -
yellowWrapped
protected org.apache.poi.ss.usermodel.CellStyle yellowWrapped -
workbook
protected org.apache.poi.ss.usermodel.Workbook workbook -
sheet
protected org.apache.poi.ss.usermodel.Sheet sheet -
lastRowNum
protected int lastRowNum -
firstCellNum
protected int firstCellNum -
firstRowNum
protected int firstRowNum
-
-
Constructor Details
-
AbstractSheet
- Parameters:
workbook
-sheetName
-
-
-
Method Details
-
addRow
protected org.apache.poi.ss.usermodel.Row addRow()Add a new row to the end of the sheet- Returns:
- new row
-
clear
public void clear()Clears all data from the worksheet -
getFirstDataRow
public int getFirstDataRow() -
getNumDataRows
public int getNumDataRows() -
getSheet
public org.apache.poi.ss.usermodel.Sheet getSheet() -
verify
-
createHeaderStyle
public static org.apache.poi.ss.usermodel.CellStyle createHeaderStyle(org.apache.poi.ss.usermodel.Workbook wb) -
createLeftWrapStyle
public static org.apache.poi.ss.usermodel.CellStyle createLeftWrapStyle(org.apache.poi.ss.usermodel.Workbook wb) -
createCenterStyle
public static org.apache.poi.ss.usermodel.CellStyle createCenterStyle(org.apache.poi.ss.usermodel.Workbook wb) -
resizeRows
public void resizeRows()resize the rows for a best fit. Will not exceed maximum row height.
-