public class ListenerSupport<E>
extends java.util.concurrent.CopyOnWriteArrayList<E>
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
source |
Constructor and Description |
---|
ListenerSupport(java.lang.Object sourceBean)
Construct a ListenerSupport object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o)
Wrapper functions to make the iterator methods' synchronization work.
|
void |
add(int i,
E o) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
void |
clear() |
protected java.lang.Object |
getSource()
Get the source of the events.
|
java.util.Iterator<E> |
iterator()
Return an iterator over a clone of the listeners.
|
java.util.ListIterator<E> |
listIterator()
Return an ListIterator over a clone of the listeners, initialized to the
end of the list.
|
E |
remove(int index) |
boolean |
remove(java.lang.Object o) |
E |
set(int index,
E element) |
protected void |
setSource(java.lang.Object src)
Set the source of the events.
|
int |
size() |
public ListenerSupport(java.lang.Object sourceBean)
sourceBean
- The bean to be given as the source for any events.protected void setSource(java.lang.Object src)
protected java.lang.Object getSource()
public java.util.Iterator<E> iterator()
public java.util.ListIterator<E> listIterator()
public boolean add(E o)
public void add(int i, E o)
public boolean addAll(int index, java.util.Collection<? extends E> c)
public void clear()
public E remove(int index)
public boolean remove(java.lang.Object o)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details