public class TableViewFactory<S>
extends java.lang.Object
cell
value factories that are able to extract the relevant data from a given
Class type.
In addition to this, the TableViewFactory is able to refine the automatically generated TableColumns by reducing the columns added to the TableView, as well as renaming and reordering.
An example of using this API to create a TableView is shown below:
TODO: Example removed
| Modifier and Type | Method and Description |
|---|---|
javafx.collections.ObservableList<javafx.scene.control.TableColumn<S,?>> |
buildColumns() |
javafx.scene.control.TableView<S> |
buildTableView() |
static <S> TableViewFactory<S> |
configure(javafx.scene.control.TableView<S> table) |
static <S> javafx.scene.control.TableView<S> |
create(java.lang.Class<? extends S> dataType) |
static <S> TableViewFactory<S> |
create(java.lang.Class<? extends S> dataType,
java.util.List<S> items) |
static <S> TableViewFactory<S> |
create(java.lang.Class<? extends S> dataType,
javafx.collections.ObservableList<S> items) |
static <S> TableViewFactory<S> |
create(java.util.List<? extends S> items) |
static <S> TableViewFactory<S> |
create(javafx.collections.ObservableList<? extends S> items) |
static <S> void |
print(javafx.collections.ObservableList<javafx.scene.control.TableColumn<S,?>> columns) |
static <S> void |
print(javafx.scene.control.TableView<S> table) |
TableViewFactory<S> |
renameColumn(java.lang.String oldName,
java.lang.String newName) |
TableViewFactory<S> |
selectColumns(java.lang.String... names) |
public static <S> javafx.scene.control.TableView<S> create(java.lang.Class<? extends S> dataType)
public static <S> TableViewFactory<S> create(java.util.List<? extends S> items)
public static <S> TableViewFactory<S> create(java.lang.Class<? extends S> dataType, java.util.List<S> items)
public static <S> TableViewFactory<S> create(javafx.collections.ObservableList<? extends S> items)
public static <S> TableViewFactory<S> create(java.lang.Class<? extends S> dataType, javafx.collections.ObservableList<S> items)
public static <S> TableViewFactory<S> configure(javafx.scene.control.TableView<S> table)
public static <S> void print(javafx.scene.control.TableView<S> table)
public static <S> void print(javafx.collections.ObservableList<javafx.scene.control.TableColumn<S,?>> columns)
public TableViewFactory<S> selectColumns(java.lang.String... names)
public TableViewFactory<S> renameColumn(java.lang.String oldName, java.lang.String newName)
public javafx.collections.ObservableList<javafx.scene.control.TableColumn<S,?>> buildColumns()
public javafx.scene.control.TableView<S> buildTableView()