|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.event.EventSupport<T>
T
- the type of event listeners supported.public class EventSupport<T extends EventListener>
Support class to manage listeners and fire events.
Constructor Summary | |
---|---|
EventSupport()
Creates a new, empty event support. |
Method Summary | |
---|---|
void |
addListener(T listener)
Adds a listener for events fired by this event support. |
void |
dispatchEvent(EventDispatcher<T> eventDispatcher)
Dispatches an event to all registered listeners. |
void |
removeListener(T listener)
Removes a listener from this event support. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventSupport()
Method Detail |
---|
public void addListener(T listener)
The same listener
object may be added more than once, and will be called as many
times as it is added.
If the listener
is null
, no action is taken.
listener
- the listener to add, may be null
.public void removeListener(T listener)
If the same listener
was added more than once, it will be notified one less
time after being removed.
If the listener
is null
, or was never added, no action is taken.
listener
- the listener to be removed, may be null
.public void dispatchEvent(EventDispatcher<T> eventDispatcher)
eventDispatcher
- the dispatcher to use.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG