com.liferay.faces.util.model
Class RowMarks
java.lang.Object
java.util.Observable
com.liferay.faces.util.model.RowMarks
- All Implemented Interfaces:
- Map<Object,Boolean>
public class RowMarks
- extends Observable
- implements Map<Object,Boolean>
This class wraps a HashMap that represents rows that are marked, typically for deletion. It also
extends the Observable class so that observers can be notified when the map has changed, according
to the RowMarks.NotificationEvent enumeration.
- Author:
- Neil Griffin
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowMarks
public RowMarks()
clear
public void clear()
- Specified by:
clear in interface Map<Object,Boolean>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map<Object,Boolean>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<Object,Boolean>
entrySet
public Set<Map.Entry<Object,Boolean>> entrySet()
- Specified by:
entrySet in interface Map<Object,Boolean>
get
public Boolean get(Object key)
- Specified by:
get in interface Map<Object,Boolean>
keySet
public Set<Object> keySet()
- Specified by:
keySet in interface Map<Object,Boolean>
markAll
public void markAll()
- Sets all the entries in the map with a value of
Boolean.TRUE.
put
public Boolean put(Object key,
Boolean value)
- Specified by:
put in interface Map<Object,Boolean>
putAll
public void putAll(Map<? extends Object,? extends Boolean> t)
- Specified by:
putAll in interface Map<Object,Boolean>
remove
public Boolean remove(Object key)
- Specified by:
remove in interface Map<Object,Boolean>
size
public int size()
- Specified by:
size in interface Map<Object,Boolean>
unmarkAll
public void unmarkAll()
- Sets all the entries in the map with a value of
Boolean.FALSE.
values
public Collection<Boolean> values()
- Specified by:
values in interface Map<Object,Boolean>
getCount
public int getCount()
- Returns the number of entries in the map that have a value of true.
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<Object,Boolean>
Copyright © 2014 Liferay, Inc.. All Rights Reserved.