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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
isEmpty()
boolean
isSelected
(T item) keySet()
void
void
setSelectAll
(boolean selectAll) setSelected
(T item, boolean selected) int
size()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
containsKey
in interfaceMap<T,
Boolean>
-
containsValue
- Specified by:
containsValue
in interfaceMap<T,
Boolean>
-
entrySet
-
isEmpty
public boolean isEmpty() -
keySet
-
putAll
-
remove
-
size
public int size() -
values
-