TableCell implementation that draws a
TextField node inside the cell.
By default, the TextField2TableCell is rendered as a javafx. when not
being edited, and as a TextField when in editing mode. The TextField will, by
default, stretch to fill the entire table cell.
This table cell supports commit on focus lost
| Modifier and Type | Field and Description |
|---|---|
| private TextField | textField
Hides javafx. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TextField2TableCell(StringConverter<T>
A converter)converter that can convert
the given String (from what the user typed in) into an instance of
type T.Creates a TextField2TableCell that provides a |
| Modifier and Type | Method and Description |
|---|---|
| public void | commitEdit(T item)
Overrides javafx. Commits an edit to the value of the cell. |
| public static < The type of the objects contained within the TableView S> Callback | Returns: ACallback that can be inserted into the
cell factory property of a
TableColumn, that enables textual editing of the content.Hides javafx. Provides a |
| public static < The type of the objects contained within the TableView S, The type of the elements contained within the TableColumn T> Callback | Returns: ACallback that can be inserted into the
cell factory property of a
TableColumn, that enables textual editing of the content.A converter)StringConverter that can convert the given String
(from what the user typed in) into an instance of type T.Hides javafx. Provides a |
| textField | back to summary |
|---|---|
| private TextField textField Hides javafx. * Fields * * | |
| TextField2TableCell | back to summary |
|---|---|
| public TextField2TableCell() Creates a default TextField2TableCell with a null converter. Without a
| |
| TextField2TableCell | back to summary |
|---|---|
| public TextField2TableCell(StringConverter<T> converter) Creates a TextField2TableCell that provides a
| |
| commitEdit | back to summary |
|---|---|
| public void commitEdit(T item) Overrides javafx. Doc from javafx. Commits an edit to the value of the cell. Call this function when appropriate (based on the user interaction requirements of your cell editing user interface) to do two things:
In general there is no need to override this method in custom cell
implementations - it should be sufficient to simply call this method
when appropriate (e.g., when the user pressed the Enter key, you may do something
like
| |
| forTableColumn | back to summary |
|---|---|
| public static <S> Callback Hides javafx. Provides a
| |
| forTableColumn | back to summary |
|---|---|
| public static <S, T> Callback Hides javafx. Provides a
| |