Java javafx.scene.control TableView fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control TableView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control TableView.

The text is from its open source code.

Subclass

javafx.scene.control.TableView has subclasses.
Click this link to see all its subclasses.

Field

CallbackCONSTRAINED_RESIZE_POLICY

Simple policy that ensures the width of all visible leaf columns in this table sum up to equal the width of the table itself.

Constructor

TableView()
Creates a default TableView control with no content.
TableView(ObservableList items)
Creates a TableView with the content provided in the items ObservableList.

Method

ReadOnlyObjectProperty>comparatorProperty()
BooleanPropertyeditableProperty()
Specifies whether this TableView is editable - only if the TableView, the TableColumn (if applicable) and the TableCells within it are both editable will a TableCell be able to go into their editing state.
ObjectProperty>focusModelProperty()
Represents the currently-installed TableViewFocusModel for this TableView.
ObservableList>getColumns()
The TableColumns that are part of this TableView.
ObservableListgetItems()
doublegetPrefWidth()
TableViewSelectionModelgetSelectionModel()
ObservableList>getSortOrder()
The sortOrder list defines the order in which TableColumn instances are sorted.
ObjectProperty>itemsProperty()
The underlying data model for the TableView.
voidscrollTo(int index)
Scrolls the TableView so that the given index is visible within the viewport.
voidscrollTo(S object)
Scrolls the TableView so that the given object is visible within the viewport.
voidsetColumnResizePolicy(Callback callback)
voidsetContextMenu(ContextMenu value)
voidsetEditable(boolean value)
voidsetItems(ObservableList value)
voidsetPlaceholder(Node value)
voidsetPrefHeight(double value)
voidsetPrefWidth(double value)
voidsetRowFactory(Callback, TableRow> value)
voidsetTooltip(Tooltip value)