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
FieldsModifier and TypeFieldDescriptionprotected org.apache.poi.ss.usermodel.CellStyleprotected org.apache.poi.ss.usermodel.CellStyleprotected intprotected intprotected static final shortprotected org.apache.poi.ss.usermodel.CellStyleprotected intprotected org.apache.poi.ss.usermodel.CellStyleprotected org.apache.poi.ss.usermodel.Sheetprotected org.apache.poi.ss.usermodel.Workbookprotected org.apache.poi.ss.usermodel.CellStyle -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.poi.ss.usermodel.RowaddRow()Add a new row to the end of the sheetvoidclear()Clears all data from the worksheetstatic org.apache.poi.ss.usermodel.CellStylecreateCenterStyle(org.apache.poi.ss.usermodel.Workbook wb) static org.apache.poi.ss.usermodel.CellStylecreateHeaderStyle(org.apache.poi.ss.usermodel.Workbook wb) static org.apache.poi.ss.usermodel.CellStylecreateLeftWrapStyle(org.apache.poi.ss.usermodel.Workbook wb) intintorg.apache.poi.ss.usermodel.SheetgetSheet()voidresize the rows for a best fit.abstract Stringverify()
-
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.
-