Interface Spreadsheet.CellValueHandler
- All Superinterfaces:
Serializable
- Enclosing class:
- Spreadsheet
An interface for handling the edited cell value from user input.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancellValueUpdated(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 Details
-
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. UseSpreadsheet.setCellValueHandler(CellValueHandler)to enable it for the spreadsheet.- Parameters:
cell- The cell that has been edited, may benullif 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- TheFormulaEvaluatorfor this sheetformatter- TheDataFormatterfor this workbookconditionalFormattingEvaluator- TheConditionalFormattingEvaluatorfor this workbook- Returns:
trueif component default parsing should still be done,falseif not
-