org.portletfaces.liferay.faces.model
Class RowMarks

java.lang.Object
  extended by java.util.Observable
      extended by org.portletfaces.liferay.faces.model.RowMarks
All Implemented Interfaces:
java.util.Map<java.lang.Object,java.lang.Boolean>

public class RowMarks
extends java.util.Observable
implements java.util.Map<java.lang.Object,java.lang.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 Class Summary
static class RowMarks.NotificationEvent
           
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
RowMarks()
           
 
Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Boolean>> entrySet()
           
 java.lang.Boolean get(java.lang.Object key)
           
 int getCount()
          Returns the number of entries in the map that have a value of true.
 int getFoo()
           
 boolean isEmpty()
           
 java.util.Set<java.lang.Object> keySet()
           
 void markAll()
          Sets all the entries in the map with a value of Boolean.TRUE.
 java.lang.Boolean put(java.lang.Object key, java.lang.Boolean value)
           
 void putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Boolean> t)
           
 java.lang.Boolean remove(java.lang.Object key)
           
 int size()
           
 void unmarkAll()
          Sets all the entries in the map with a value of Boolean.FALSE.
 java.util.Collection<java.lang.Boolean> values()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
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
equals, hashCode
 

Constructor Detail

RowMarks

public RowMarks()
Method Detail

clear

public void clear()
Specified by:
clear in interface java.util.Map<java.lang.Object,java.lang.Boolean>

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map<java.lang.Object,java.lang.Boolean>

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map<java.lang.Object,java.lang.Boolean>

entrySet

public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Boolean>> entrySet()
Specified by:
entrySet in interface java.util.Map<java.lang.Object,java.lang.Boolean>

get

public java.lang.Boolean get(java.lang.Object key)
Specified by:
get in interface java.util.Map<java.lang.Object,java.lang.Boolean>

keySet

public java.util.Set<java.lang.Object> keySet()
Specified by:
keySet in interface java.util.Map<java.lang.Object,java.lang.Boolean>

markAll

public void markAll()
Sets all the entries in the map with a value of Boolean.TRUE.


put

public java.lang.Boolean put(java.lang.Object key,
                             java.lang.Boolean value)
Specified by:
put in interface java.util.Map<java.lang.Object,java.lang.Boolean>

putAll

public void putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Boolean> t)
Specified by:
putAll in interface java.util.Map<java.lang.Object,java.lang.Boolean>

remove

public java.lang.Boolean remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<java.lang.Object,java.lang.Boolean>

size

public int size()
Specified by:
size in interface java.util.Map<java.lang.Object,java.lang.Boolean>

unmarkAll

public void unmarkAll()
Sets all the entries in the map with a value of Boolean.FALSE.


values

public java.util.Collection<java.lang.Boolean> values()
Specified by:
values in interface java.util.Map<java.lang.Object,java.lang.Boolean>

getFoo

public int getFoo()

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 java.util.Map<java.lang.Object,java.lang.Boolean>


Copyright © 2011 portletfaces.org. All Rights Reserved.