org.siebengeisslein.pgui
Class PListenerList<ListenerType>

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.pgui.PListenerList<ListenerType>
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ListenerType>, CloneAware, Instrumented

public class PListenerList<ListenerType>
extends Persistent
implements java.lang.Iterable<ListenerType>, CloneAware

This implements a list of listeners where listeners can be persistent-objects or normal swing listeners (that may not be persistet).


Constructor Summary
PListenerList()
           
 
Method Summary
 void add(ListenerType listener)
           
 PListenerList clone(CloneHelper helper)
           
protected  void initTransient()
           
 java.util.Iterator<ListenerType> iterator()
           
 void remove(ListenerType listener)
           
 int size()
           
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PListenerList

public PListenerList()
Method Detail

initTransient

protected void initTransient()
Overrides:
initTransient in class Persistent

add

public void add(ListenerType listener)

remove

public void remove(ListenerType listener)

iterator

public java.util.Iterator<ListenerType> iterator()
Specified by:
iterator in interface java.lang.Iterable<ListenerType>

size

public int size()

clone

public PListenerList clone(CloneHelper helper)
                    throws java.lang.CloneNotSupportedException
Specified by:
clone in interface CloneAware
Throws:
java.lang.CloneNotSupportedException