Class SimpleLoader<T>
java.lang.Object
com.dlsc.gemsfx.paging.SimpleLoader<T>
- Type Parameters:
T- the type of the items
- All Implemented Interfaces:
javafx.util.Callback<PagingLoadRequest, PagingLoadResponse<T>>
public class SimpleLoader<T>
extends Object
implements javafx.util.Callback<PagingLoadRequest, PagingLoadResponse<T>>
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:
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLoader(ItemPagingControlBase<T> control, javafx.beans.property.ListProperty<T> data) Constructs a new simple loader for the given list view and the given data. -
Method Summary
Modifier and TypeMethodDescriptioncall(PagingLoadRequest param) javafx.beans.property.ListProperty<T> getItems()
-
Constructor Details
-
SimpleLoader
Constructs a new simple loader for the given list view and the given data.- Parameters:
control- the control where the loader will be useddata- the observable list that is providing the data / the items
-
-
Method Details
-
call
- Specified by:
callin interfacejavafx.util.Callback<PagingLoadRequest, PagingLoadResponse<T>>
-
getItems
-