- java.lang.Object
-
- impl.org.controlsfx.spreadsheet.GridCellEditor
-
public class GridCellEditor extends Object
-
-
Constructor Summary
Constructors Constructor Description GridCellEditor(SpreadsheetHandle handle)
Construct the GridCellEditor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endEdit(boolean commitValue)
Whenever you want to stop the edition, you call that method.
True means you're trying to commit the value, thenSpreadsheetCellType.match(java.lang.Object)
will be called in order to verify that the value is correct.
False means you're trying to cancel the value and it will be follow byend()
.
See SpreadsheetCellEditor descriptionSpreadsheetCell
getModelCell()
boolean
isEditing()
Return if this editor is currently being used.void
updateDataCell(SpreadsheetCell cell)
Update the internalSpreadsheetCell
.void
updateSpreadsheetCell(CellView cell)
Update the internalCellView
void
updateSpreadsheetCellEditor(SpreadsheetCellEditor spreadsheetCellEditor)
Update the SpreadsheetCellEditor
-
-
-
Constructor Detail
-
GridCellEditor
public GridCellEditor(SpreadsheetHandle handle)
Construct the GridCellEditor.
-
-
Method Detail
-
updateDataCell
public void updateDataCell(SpreadsheetCell cell)
Update the internalSpreadsheetCell
.- Parameters:
cell
-
-
updateSpreadsheetCell
public void updateSpreadsheetCell(CellView cell)
Update the internalCellView
- Parameters:
cell
-
-
updateSpreadsheetCellEditor
public void updateSpreadsheetCellEditor(SpreadsheetCellEditor spreadsheetCellEditor)
Update the SpreadsheetCellEditor- Parameters:
spreadsheetCellEditor
-
-
endEdit
public void endEdit(boolean commitValue)
Whenever you want to stop the edition, you call that method.
True means you're trying to commit the value, thenSpreadsheetCellType.match(java.lang.Object)
will be called in order to verify that the value is correct.
False means you're trying to cancel the value and it will be follow byend()
.
See SpreadsheetCellEditor description- Parameters:
commitValue
- true means commit, false means cancel
-
isEditing
public boolean isEditing()
Return if this editor is currently being used.- Returns:
- if this editor is being used.
-
getModelCell
public SpreadsheetCell getModelCell()
-
-