|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.event.LocatedListenerList<L>
L
- the type of listeners in this listpublic class LocatedListenerList<L extends LocatedListener>
An object that can hold some LocatedListener
s and order and filter
them regarding to one element of the tree.
Constructor Summary | |
---|---|
LocatedListenerList()
|
Method Summary | |
---|---|
void |
addListener(L listener)
Adds a listener to the list of listeners. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocatedListenerList()
Method Detail |
---|
public void addListener(L listener)
listener
- the new listenerpublic void removeListener(L listener)
listener
- the listener to removepublic int size()
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |