Class LazyFormCardsViewModel
- java.lang.Object
-
- javax.faces.model.DataModel<E>
-
- javax.faces.model.ListDataModel<T>
-
- org.primefaces.model.LazyDataModel<FormCardModel>
-
- de.xima.fc.user_portal.view_model.LazyFormCardsViewModel
-
- All Implemented Interfaces:
Serializable
,Iterable<FormCardModel>
,org.primefaces.model.SelectableDataModel<FormCardModel>
public class LazyFormCardsViewModel extends org.primefaces.model.LazyDataModel<FormCardModel>
This model is used to display the form cards in a lazy way.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyFormCardsViewModel(List<FormCardModel> formCards)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count(Map<String,org.primefaces.model.FilterMeta> filterBy)
List<FormCardModel>
getFormCards()
FormCardModel
getRowData(String rowKey)
String
getRowKey(FormCardModel formCard)
List<FormCardModel>
load(int offset, int pageSize, Map<String,org.primefaces.model.SortMeta> sortBy, Map<String,org.primefaces.model.FilterMeta> filterBy)
-
Methods inherited from class org.primefaces.model.LazyDataModel
getConverter, getMessage, getPageSize, getRowCount, getRowData, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, iterator, recalculateFirst, setConverter, setPageSize, setRowCount, setRowIndex, setWrappedData
-
Methods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
LazyFormCardsViewModel
public LazyFormCardsViewModel(List<FormCardModel> formCards)
-
-
Method Detail
-
count
public int count(Map<String,org.primefaces.model.FilterMeta> filterBy)
- Specified by:
count
in classorg.primefaces.model.LazyDataModel<FormCardModel>
-
load
public List<FormCardModel> load(int offset, int pageSize, Map<String,org.primefaces.model.SortMeta> sortBy, Map<String,org.primefaces.model.FilterMeta> filterBy)
- Specified by:
load
in classorg.primefaces.model.LazyDataModel<FormCardModel>
-
getRowData
public FormCardModel getRowData(String rowKey)
- Specified by:
getRowData
in interfaceorg.primefaces.model.SelectableDataModel<FormCardModel>
- Overrides:
getRowData
in classorg.primefaces.model.LazyDataModel<FormCardModel>
-
getRowKey
public String getRowKey(FormCardModel formCard)
- Specified by:
getRowKey
in interfaceorg.primefaces.model.SelectableDataModel<FormCardModel>
- Overrides:
getRowKey
in classorg.primefaces.model.LazyDataModel<FormCardModel>
-
getFormCards
public List<FormCardModel> getFormCards()
-
-