Module org.controlsfx.controls
Class SpreadsheetCellEditor.TextAreaEditor
java.lang.Object
org.controlsfx.control.spreadsheet.SpreadsheetCellEditor
org.controlsfx.control.spreadsheet.SpreadsheetCellEditor.TextAreaEditor
- Enclosing class:
SpreadsheetCellEditor
A
SpreadsheetCellEditor
for
SpreadsheetCellType.StringType
typed cells. It displays a
TextField
where the user can type different values.-
Nested Class Summary
Nested classes/interfaces inherited from class org.controlsfx.control.spreadsheet.SpreadsheetCellEditor
SpreadsheetCellEditor.DateEditor, SpreadsheetCellEditor.DoubleEditor, SpreadsheetCellEditor.IntegerEditor, SpreadsheetCellEditor.ListEditor<R>, SpreadsheetCellEditor.ObjectEditor, SpreadsheetCellEditor.StringEditor, SpreadsheetCellEditor.TextAreaEditor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
This method will be called at the end of edition.
You will be offered the possibility to do the configuration post editing.Return the value within your editor as a string.javafx.scene.control.TextArea
Return the control used for controlling the input.double
Return the maximum height of the editor.void
************************************************************************* * Public Methods * * ************************************************************************Methods inherited from class org.controlsfx.control.spreadsheet.SpreadsheetCellEditor
endEdit, startEdit
-
Constructor Details
-
TextAreaEditor
Constructor for the StringEditor.- Parameters:
view
- The SpreadsheetView
-
-
Method Details
-
startEdit
************************************************************************* * Public Methods * * ************************************************************************- Specified by:
startEdit
in classSpreadsheetCellEditor
- Parameters:
value
-format
-options
-
-
getControlValue
Description copied from class:SpreadsheetCellEditor
Return the value within your editor as a string. This will be used by theSpreadsheetCellType.convertValue(Object)
in order to compute whether the value is valid regarding theSpreadsheetCellType
policy.- Specified by:
getControlValue
in classSpreadsheetCellEditor
- Returns:
- the value within your editor as a string.
-
end
public void end()Description copied from class:SpreadsheetCellEditor
This method will be called at the end of edition.
You will be offered the possibility to do the configuration post editing.- Specified by:
end
in classSpreadsheetCellEditor
-
getEditor
public javafx.scene.control.TextArea getEditor()Description copied from class:SpreadsheetCellEditor
Return the control used for controlling the input. This is called at the beginning in order to display your control in the cell.- Specified by:
getEditor
in classSpreadsheetCellEditor
- Returns:
- the control used.
-
getMaxHeight
public double getMaxHeight()Description copied from class:SpreadsheetCellEditor
Return the maximum height of the editor.- Overrides:
getMaxHeight
in classSpreadsheetCellEditor
- Returns:
- 50 by default.
-