public class ConcreteWorksheet extends SpreadsheetWorksheet
alias, dataTypeStrict, existsInSpreadsheet, header, model, name
Constructor and Description |
---|
ConcreteWorksheet(SpreadsheetModel model,
String name,
boolean existsInSpreadsheet) |
Modifier and Type | Method and Description |
---|---|
protected SpreadsheetColumn |
createColumn(int index)
Creates a column with the specified column index
|
protected void |
createInSpreadsheet()
The purpose of this method is to create this worksheet in the spreadsheet
|
String |
getDefaultEmptyCellValue()
This method returns the default value to be written to a cell when a new empty row is created in a worksheet that
is not enforcing data type strictness.
|
List<SpreadsheetRow> |
getRows()
Gets all rows contained by the worksheet
|
protected SpreadsheetRow |
insertRow(Map<SpreadsheetColumn,String> values)
Inserts a new row in the worksheet with given values in the given columns.
|
protected void |
loadHeader()
Loads header row information - index and name - from the spreadsheet if the worksheet exists in the spreadsheet
|
void |
removeRow(SpreadsheetRow row)
Deletes the given row from the actual worksheet.
|
addColumn, addColumn, addRow, addRowWithValuesInColumns, addWorksheetMetadata, checkThatWorksheetExists, deleteRow, findRows, getAlias, getColumn, getColumn, getDoesNotExistInSpreadsheet, getExistsInSpreadsheet, getHeader, getModel, getName, getNonexistentWorksheetMessage, getValuesForEmptyRow, isDataTypeStrict, isIdentifiablyBy, toString
public ConcreteWorksheet(SpreadsheetModel model, String name, boolean existsInSpreadsheet)
protected void createInSpreadsheet()
SpreadsheetWorksheet
createInSpreadsheet
in class SpreadsheetWorksheet
protected void loadHeader() throws EolModelLoadingException
SpreadsheetWorksheet
loadHeader
in class SpreadsheetWorksheet
EolModelLoadingException
protected SpreadsheetColumn createColumn(int index)
SpreadsheetWorksheet
createColumn
in class SpreadsheetWorksheet
public String getDefaultEmptyCellValue()
SpreadsheetWorksheet
getDefaultEmptyCellValue
in class SpreadsheetWorksheet
protected SpreadsheetRow insertRow(Map<SpreadsheetColumn,String> values)
SpreadsheetWorksheet
insertRow
in class SpreadsheetWorksheet
public void removeRow(SpreadsheetRow row)
SpreadsheetWorksheet
removeRow
in class SpreadsheetWorksheet
public List<SpreadsheetRow> getRows()
SpreadsheetWorksheet
getRows
in class SpreadsheetWorksheet
Copyright © 2018. All rights reserved.