Uses of Class
javafx.scene.control.TableColumn
Package
Description
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
The
javafx.scene.control.cell
package is where all cell-related
classes are located, other than the core classes such as
Cell
, IndexedCell
,
ListCell
, TreeCell
,
and TableCell
.The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
-
Uses of TableColumn in javafx.scene.control
Modifier and TypeFieldDescriptionstatic final Callback<TableColumn<?,
?>, TableCell<?, ?>> TableColumn.DEFAULT_CELL_FACTORY
If no cellFactory is specified on a TableColumn instance, then this one will be used by default.Modifier and TypeMethodDescriptionTableColumn<S,
?> TableView.ResizeFeatures.getColumn()
Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a TableView resize operation.final TableColumn<S,
T> TableCell.getTableColumn()
Gets the value of thetableColumn
property.TableColumn.CellDataFeatures.getTableColumn()
Returns theTableColumn
passed in to the constructor.TableColumn.CellEditEvent.getTableColumn()
Returns the TableColumn upon which this event occurred.final TableColumn<S,
T> TablePosition.getTableColumn()
The TableColumn that this TablePosition represents in the TableView.TableColumn<S,
?> TableView.getVisibleLeafColumn
(int column) Returns the TableColumn in the given column index, relative to all other visible leaf columns.Modifier and TypeMethodDescriptionfinal ObjectProperty<Callback<TableColumn<S,
T>, TableCell<S, T>>> TableColumn.cellFactoryProperty()
The cell factory for all cells in this column.TableColumn.getCellFactory()
Gets the value of thecellFactory
property.final ObservableList<TableColumn<S,
?>> TableColumn.getColumns()
This enables support for nested columns, which can be useful to group together related data.final ObservableList<TableColumn<S,
?>> TableView.getColumns()
The TableColumns that are part of this TableView.TableView.getOnScrollToColumn()
Gets the value of theonScrollToColumn
property.final ObservableList<TableColumn<S,
?>> TableView.getSortOrder()
The sortOrder list defines the order in whichTableColumn
instances are sorted.TableView.getVisibleLeafColumns()
Returns an unmodifiable list containing the currently visible leaf columns.TableView.onScrollToColumnProperty()
Called when there's a request to scroll a column into view usingTableView.scrollToColumn(TableColumn)
orTableView.scrollToColumnIndex(int)
final ReadOnlyObjectProperty<TableColumn<S,
T>> TableCell.tableColumnProperty()
The TableColumn instance that backs this TableCell.Modifier and TypeMethodDescriptionabstract void
TableView.TableViewSelectionModel.clearAndSelect
(int row, TableColumn<S, ?> column) Clears all selection, and then selects the cell at the given row/column intersection.abstract void
TableView.TableViewSelectionModel.clearSelection
(int row, TableColumn<S, ?> column) Removes selection from the specified row/column position (in view indexes).void
TableView.edit
(int row, TableColumn<S, ?> column) Causes the cell at the given row/column view indexes to switch into its editing state, if it is not already in it, and assuming that the TableView and column are also editable.void
TableView.TableViewFocusModel.focus
(int row, TableColumn<S, ?> column) Causes the item at the given index to receive the focus.int
TableView.getVisibleLeafIndex
(TableColumn<S, ?> column) Returns the position of the given column, relative to all other visible leaf columns.boolean
TableView.TableViewFocusModel.isFocused
(int row, TableColumn<S, ?> column) Tests whether the row / cell at the given location currently has the focus within the TableView.abstract boolean
TableView.TableViewSelectionModel.isSelected
(int row, TableColumn<S, ?> column) Convenience function which tests whether the given row and column index is currently selected in this table instance.boolean
TableView.resizeColumn
(TableColumn<S, ?> column, double delta) Applies the currently installed resize policy against the given column, resizing it based on the delta value provided.void
TableView.scrollToColumn
(TableColumn<S, ?> column) Scrolls the TableView so that the given column is visible within the viewport.abstract void
TableView.TableViewSelectionModel.select
(int row, TableColumn<S, ?> column) Selects the cell at the given row/column intersection.final void
TableCell.updateTableColumn
(TableColumn col) Updates the TableColumn associated with this TableCell.Modifier and TypeMethodDescriptionfinal void
TableColumn.setCellFactory
(Callback<TableColumn<S, T>, TableCell<S, T>> value) Sets the value of thecellFactory
property.void
TableView.setOnScrollToColumn
(EventHandler<ScrollToEvent<TableColumn<S, ?>>> value) Sets the value of theonScrollToColumn
property.ModifierConstructorDescriptionCellDataFeatures
(TableView<S> tableView, TableColumn<S, T> tableColumn, S value) Instantiates a CellDataFeatures instance with the given properties set as read-only values of this instance.ResizeFeatures
(TableView<S> table, TableColumn<S, ?> column, Double delta) Creates an instance of this class, with the provided TableView, TableColumn and delta values being set and stored in this immutable instance.TablePosition
(TableView<S> tableView, int row, TableColumn<S, T> tableColumn) Constructs a TablePosition instance to represent the given row/column position in the given TableView instance. -
Uses of TableColumn in javafx.scene.control.cell
Modifier and TypeMethodDescriptionstatic <S> Callback<TableColumn<S,
Boolean>, TableCell<S, Boolean>> CheckBoxTableCell.forTableColumn
(TableColumn<S, Boolean> column) Creates a cell factory for use in aTableColumn
cell factory.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> CheckBoxTableCell.forTableColumn
(Callback<Integer, ObservableValue<Boolean>> getSelectedProperty) Creates a cell factory for use in aTableColumn
cell factory.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> CheckBoxTableCell.forTableColumn
(Callback<Integer, ObservableValue<Boolean>> getSelectedProperty, boolean showLabel) Creates a cell factory for use in aTableColumn
cell factory.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> CheckBoxTableCell.forTableColumn
(Callback<Integer, ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter) Creates a cell factory for use in aTableColumn
cell factory.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ChoiceBoxTableCell.forTableColumn
(ObservableList<T> items) Creates a ChoiceBox cell factory for use inTableColumn
controls.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ChoiceBoxTableCell.forTableColumn
(StringConverter<T> converter, ObservableList<T> items) Creates a ChoiceBox cell factory for use inTableColumn
controls.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ChoiceBoxTableCell.forTableColumn
(StringConverter<T> converter, T... items) Creates a ChoiceBox cell factory for use inTableColumn
controls.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ChoiceBoxTableCell.forTableColumn
(T... items) Creates a ChoiceBox cell factory for use inTableColumn
controls.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ComboBoxTableCell.forTableColumn
(ObservableList<T> items) Creates a ComboBox cell factory for use inTableColumn
controls.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ComboBoxTableCell.forTableColumn
(StringConverter<T> converter, ObservableList<T> items) Creates a ComboBox cell factory for use inTableColumn
controls.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ComboBoxTableCell.forTableColumn
(StringConverter<T> converter, T... items) Creates a ComboBox cell factory for use inTableColumn
controls.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> ComboBoxTableCell.forTableColumn
(T... items) Creates a ComboBox cell factory for use inTableColumn
controls.static <S> Callback<TableColumn<S,
Double>, TableCell<S, Double>> ProgressBarTableCell.forTableColumn()
Provides aProgressBar
that allows easy visualisation of a Number value as it proceeds from 0.0 to 1.0.static <S> Callback<TableColumn<S,
String>, TableCell<S, String>> TextFieldTableCell.forTableColumn()
Provides aTextField
that allows editing of the cell content when the cell is double-clicked, or whenTableView.edit(int, javafx.scene.control.TableColumn)
is called.static <S,
T> Callback<TableColumn<S, T>, TableCell<S, T>> TextFieldTableCell.forTableColumn
(StringConverter<T> converter) Provides aTextField
that allows editing of the cell content when the cell is double-clicked, or whenTableView.edit(int, javafx.scene.control.TableColumn)
is called.Modifier and TypeMethodDescriptionstatic <S> Callback<TableColumn<S,
Boolean>, TableCell<S, Boolean>> CheckBoxTableCell.forTableColumn
(TableColumn<S, Boolean> column) Creates a cell factory for use in aTableColumn
cell factory. -
Uses of TableColumn in javafx.scene.control.skin
Modifier and TypeMethodDescriptionprotected TableColumn<T,
?> TableRowSkin.getTableColumn
(TableCell<T, ?> cell) Returns theTableColumnBase
instance for the given cell instance.Modifier and TypeMethodDescriptionprotected ObservableList<TableColumn<T,
?>> TableRowSkin.getVisibleLeafColumns()
Returns an unmodifiable list containing the currently visible leaf columns.TableCellSkin.tableColumnProperty()
The TableColumnBase instance that is responsible for this Cell.