Class LazyCustomerDataModel
java.lang.Object
javax.faces.model.DataModel<E>
javax.faces.model.ListDataModel<T>
org.primefaces.model.LazyDataModel<Customer>
org.primefaces.showcase.view.data.datatable.LazyCustomerDataModel
- All Implemented Interfaces:
Serializable,Iterable<Customer>,SelectableDataModel<Customer>
Dummy implementation of LazyDataModel that uses a list to mimic a real datasource like a database.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.primefaces.model.LazyDataModel
getConverter, getMessage, getPageSize, getRowCount, getRowData, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, iterator, recalculateFirst, setConverter, setPageSize, setRowCount, setRowIndex, setWrappedDataMethods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
LazyCustomerDataModel
-
-
Method Details
-
getRowData
- Specified by:
getRowDatain interfaceSelectableDataModel<Customer>- Overrides:
getRowDatain classLazyDataModel<Customer>
-
getRowKey
- Specified by:
getRowKeyin interfaceSelectableDataModel<Customer>- Overrides:
getRowKeyin classLazyDataModel<Customer>
-
count
- Specified by:
countin classLazyDataModel<Customer>
-
load
public List<Customer> load(int offset, int pageSize, Map<String, SortMeta> sortBy, Map<String, FilterMeta> filterBy) - Specified by:
loadin classLazyDataModel<Customer>
-