Package de.xima.fc.gui.common.model.data
Class DataTableEntriesModel<T extends Serializable>
- java.lang.Object
-
- de.xima.fc.gui.common.model.data.DataTableEntriesModel<T>
-
- Type Parameters:
T
- type of entry. Needs to haveObject.equals(Object)
implemented!
- All Implemented Interfaces:
Serializable
public class DataTableEntriesModel<T extends Serializable> extends Object implements Serializable
Generic model for markable & selectable data table entries.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataTableEntriesModel.Builder<T extends Serializable>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>
getAll()
List<T>
getMarked()
T
getSelected()
static <T extends Serializable>
DataTableEntriesModel.Builder<T>newBuilder(ISerializableFunction<IEntityContext,List<T>> fetchAll, ISerializableSupplier<IEntityContext> entityContextSupplier)
void
onRowSelect(org.primefaces.event.SelectEvent<T> event)
void
setMarked(List<T> marked)
void
setSelected(T selected)
void
update(IEntityContext ec)
-
-
-
Method Detail
-
newBuilder
public static <T extends Serializable> DataTableEntriesModel.Builder<T> newBuilder(ISerializableFunction<IEntityContext,List<T>> fetchAll, ISerializableSupplier<IEntityContext> entityContextSupplier)
-
getSelected
public T getSelected()
-
setSelected
public void setSelected(T selected)
-
update
public void update(IEntityContext ec)
-
onRowSelect
public void onRowSelect(org.primefaces.event.SelectEvent<T> event)
-
-