Package io.goobi.viewer.model.jsf
Class CheckboxSelectable<T>
java.lang.Object
io.goobi.viewer.model.jsf.CheckboxSelectable<T>
- Type Parameters:
T- the type of the selectable value
Wraps a single value together with a backing collection to model a checkbox selection state,
where the checkbox is considered selected when the value is present in the collection.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckboxSelectable(Collection<T> dataSet, T value, Function<T, String> labelGetter) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()booleanvoidsetSelected(boolean selected) toString()
-
Constructor Details
-
CheckboxSelectable
- Parameters:
dataSet- collection backing the checkbox selection statevalue- the value represented by this checkboxlabelGetter- function to derive the display label from the value
-
-
Method Details