Class LazyCustomerDataModel
java.lang.Object
javax.faces.model.DataModel<Customer>
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:
-
Field Summary
Fields inherited from class org.primefaces.model.LazyDataModel
rowKeyConverter -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.primefaces.model.LazyDataModel
getMessage, getPageSize, getRowCount, getRowData, getRowIndex, getRowKeyFromConverter, getWrappedData, isRowAvailable, iterator, iterator, loadOne, recalculateFirst, 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>
-