org.jfree.report.states
Class UnmodifiableGroupList

java.lang.Object
  extended byorg.jfree.report.GroupList
      extended byorg.jfree.report.states.UnmodifiableGroupList
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class UnmodifiableGroupList
extends GroupList

An unmodifiable list of groups.

Author:
Thomas Morgner.
See Also:
Serialized Form

Constructor Summary
UnmodifiableGroupList(GroupList list)
          Creates a new Unmodifiable GroupList by copying the contents from the given list.
 
Method Summary
 void add(Group o)
          Adds an object to the list.
 boolean remove(Group o)
          Removes an object from the list.
 
Methods inherited from class org.jfree.report.GroupList
addAll, clear, clone, get, getGroupByName, getGroupCache, getStyleSheetCollection, iterator, registerStyleSheetCollection, size, toString, unregisterStyleSheetCollection, updateStyleSheetCollection
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnmodifiableGroupList

public UnmodifiableGroupList(GroupList list)
Creates a new Unmodifiable GroupList by copying the contents from the given list.

Parameters:
list - the base list.
Method Detail

remove

public boolean remove(Group o)
Removes an object from the list.

Overrides:
remove in class GroupList
Parameters:
o - the object.
Returns:
nothing, as this method always fires a UnsupportedOperation exception.
Throws:
java.lang.UnsupportedOperationException - as this GroupList is not modifiable.

add

public void add(Group o)
Adds an object to the list.

Overrides:
add in class GroupList
Parameters:
o - the object (must be an instance of the Group class).
Throws:
java.lang.UnsupportedOperationException - as this GroupList is not modifiable.