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

public Class SimpleLoader<T>

extends Object
implements Callback<PagingLoadRequest, PagingLoadResponse<T>>
Class Inheritance
All Implemented Interfaces
javafx.util.Callback
Type Parameters
<T>
the type of the items
Imports
javafx.beans.Observable, javafx.beans.property.ListProperty, javafx.collections.ObservableList, javafx.util.Callback, java.util.ArrayList, .Objects

A paging loader implementation that can be used in combination with a paging list view or a paging grid table view. This loader works based on top of an observable list property. This allows applications to use a paging control even though all the data is already there. Normally a paging control is used when data resides on the server and needs to be loaded page by page.
See Also
PagingListView#setLoader(Callback), PagingGridTableView#setLoader(Callback), SimplePagingListView, SimplePagingGridTableView

Field Summary

Modifier and TypeField and Description
private final ListProperty<T>

Constructor Summary

AccessConstructor and Description
public
SimpleLoader(ItemPagingControlBase<T>
the control where the loader will be used
control
,
ListProperty<T>
the observable list that is providing the data / the items
data
)

Constructs a new simple loader for the given list view and the given data.

Method Summary

Modifier and TypeMethod and Description
public PagingLoadResponse<T>
call(PagingLoadRequest param)

Implements javafx.util.Callback.call.

The call method is called when required, and is given a single argument of type P, with a requirement that an object of type R is returned.

public ListProperty<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

itemsback to summary
private final ListProperty<T> items

Constructor Detail

SimpleLoaderback to summary
public SimpleLoader(ItemPagingControlBase<T> control, ListProperty<T> data)

Constructs a new simple loader for the given list view and the given data.

Parameters
control:ItemPagingControlBase<T>

the control where the loader will be used

data:ListProperty<T>

the observable list that is providing the data / the items

Method Detail

callback to summary
public PagingLoadResponse<T> call(PagingLoadRequest param)

Implements javafx.util.Callback.call.

Doc from javafx.util.Callback.call.

The call method is called when required, and is given a single argument of type P, with a requirement that an object of type R is returned.

Annotations
@Override
getItemsback to summary
public ListProperty<T> getItems()