com.vaadin.flow.component.spreadsheet.
Interface Spreadsheet.CellValueHandler
-
All Superinterfaces:
Enclosing class:
public static interface Spreadsheet.CellValueHandler extends Serializable
An interface for handling the edited cell value from user input.
-
-
Method Summary
All Methods Modifier and Type Method Description boolean
cellValueUpdated​(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.Sheet sheet, int colIndex, int rowIndex, String newValue, org.apache.poi.ss.usermodel.FormulaEvaluator formulaEvaluator, org.apache.poi.ss.usermodel.DataFormatter formatter, org.apache.poi.ss.formula.ConditionalFormattingEvaluator conditionalFormattingEvaluator)
Called if a cell value has been edited by the user by using the default cell editor.
-
-
-
Method Detail
-
cellValueUpdated
boolean cellValueUpdated​(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.Sheet sheet, int colIndex, int rowIndex, String newValue, org.apache.poi.ss.usermodel.FormulaEvaluator formulaEvaluator, org.apache.poi.ss.usermodel.DataFormatter formatter, org.apache.poi.ss.formula.ConditionalFormattingEvaluator conditionalFormattingEvaluator)
Called if a cell value has been edited by the user by using the default cell editor. Use
Spreadsheet.setCellValueHandler(CellValueHandler)
to enable it for the spreadsheet.Parameters:
cell
- The cell that has been edited, may benull
if the cell doesn't yet existssheet
- The sheet the cell belongs to, the currently active sheetcolIndex
- Cell column index, 0-basedrowIndex
- Cell row index, 0-basednewValue
- The value user has enteredformulaEvaluator
- TheFormulaEvaluator
for this sheetformatter
- TheDataFormatter
for this workbookconditionalFormattingEvaluator
- TheConditionalFormattingEvaluator
for this workbookReturns:
true
if component default parsing should still be done,false
if not
-
-