Package io.goobi.viewer.model.misc
Class SelectionManager<T>
java.lang.Object
io.goobi.viewer.model.misc.SelectionManager<T>
- Type Parameters:
T-
- Author:
- florian
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()booleanisSelected(T item) keySet()voidvoidsetSelectAll(boolean selectAll) setSelected(T item, boolean selected) intsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SelectionManager
- Parameters:
allEntries-
-
SelectionManager
public SelectionManager()
-
-
Method Details
-
isSelectAll
public boolean isSelectAll()- Returns:
- the selectAll
-
setSelectAll
public void setSelectAll(boolean selectAll) - Parameters:
selectAll- the selectAll to set
-
select
-
deselect
-
get
-
put
-
isSelected
-
setSelected
-
getAllSelected
- Returns:
- List
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<T,Boolean>
-
containsValue
- Specified by:
containsValuein interfaceMap<T,Boolean>
-
entrySet
-
isEmpty
public boolean isEmpty() -
keySet
-
putAll
-
remove
-
size
public int size() -
values
-