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

public Class SimplePagingListView<T>

extends PagingListView<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 list view that is completely based on a list of items, just like a normal list 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
SimplePagingListView()

Constructs a new list 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 list view
itemsProperty
()

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

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

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

Inherited from com.dlsc.gemsfx.paging.PagingListView:
cellFactoryPropertycreateDefaultSkingetCellFactorygetListViewgetProgressIndicatorgetUserAgentStylesheetprogressIndicatorPropertyrefreshsetCellFactorysetProgressIndicator

Field Detail

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

Hides com.dlsc.gemsfx.paging.PagingListView.items.

Constructor Detail

SimplePagingListViewback to summary
public SimplePagingListView()

Constructs a new list 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 list view. The internal data loader will simply retrieve the page items from this list.

Returns:ListProperty<T>

the data model feeding the list 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 list view. This method will only succeed if the given item is a member of the getItems().

Parameters
item:T

the item to show