com.jrefinery.report
Class UnmodifiableGroupList

java.lang.Object
  |
  +--com.jrefinery.report.GroupList
        |
        +--com.jrefinery.report.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(java.lang.Object o)
          Removes an object from the list.
 
Methods inherited from class com.jrefinery.report.GroupList
addAll, clear, clone, get, getStyleSheetCollection, iterator, remove, setStyleSheetCollection, size, toString
 
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(java.lang.Object o)
Removes an object from the list.

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.