Top Description Fields Constructors Methods
com.dlsc.gemsfx.paging

public Class SimplePagingGridTableView<T>

extends PagingGridTableView<T>
Class Inheritance
Type Parameters
<T>
the type of items to show in the list view
Imports
javafx.beans.property.ListProperty, .SimpleListProperty, javafx.collections.FXCollections, .ObservableList

A simple version of the paging grid table view that is completely based on a list of items, just like a normal table view would be. The view uses an internal data loader that accesses the list to retrieve the items of the current page.

Field Summary

Modifier and TypeField and Description
private boolean
private final ListProperty<T>

Constructor Summary

AccessConstructor and Description
public
SimplePagingGridTableView()

Constructs a new table view and sets a loader that uses the data list.

Method Summary

Modifier and TypeMethod and Description
public final ObservableList<T>
public final ListProperty<T>

Returns:

the data model feeding the table view
itemsProperty
()

Stores the data structure to be used by the table view.

public final void
public final void
show(T
the item to show
item
)

Ensures that the given item becomes visible within the table view.

Inherited from com.dlsc.gemsfx.paging.PagingGridTableView:
columnsPropertycreateDefaultSkingetColumnsgetContentBiasgetGridTableViewgetUserAgentStylesheetrefreshsetColumns

Field Detail

internalback to summary
private boolean internal
itemsback to summary
private final ListProperty<T> items

Constructor Detail

SimplePagingGridTableViewback to summary
public SimplePagingGridTableView()

Constructs a new table view and sets a loader that uses the data list.

Method Detail

getItemsback to summary
public final ObservableList<T> getItems()
itemsPropertyback to summary
public final ListProperty<T> itemsProperty()

Stores the data structure to be used by the table view. The internal data loader will simply retrieve the page items from this list.

Returns:ListProperty<T>

the data model feeding the table view

setItemsback to summary
public final void setItems(ObservableList<T> items)
showback to summary
public final void show(T item)

Ensures that the given item becomes visible within the table view. This method will only succeed if the given item is a member of the getItems().

Parameters
item:T

the item to show