L
- the type of listeners in this listpublic class LocatedListenerList<L extends LocatedListener>
extends java.lang.Object
LocatedListener
s and order and filter
them regarding to one element of the tree.Constructor and Description |
---|
LocatedListenerList() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(L listener)
Adds a listener to the list of listeners.
|
java.util.List<L> |
affected(DockElement element)
Creates a list of all
LocatedListener s which are affected
by an event which occurs on element . |
void |
removeListener(L listener)
Removes a list of the list of listeners.
|
int |
size()
Gets the number of listeners in this list.
|
public void addListener(L listener)
listener
- the new listenerpublic void removeListener(L listener)
listener
- the listener to removepublic int size()
public java.util.List<L> affected(DockElement element)
LocatedListener
s which are affected
by an event which occurs on element
. The list is ordered
by the distance of the listeners to element
.element
- the element which is the source of an event