|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.event.EventManager.EventDelegateImpl
public final class EventManager.EventDelegateImpl
Inner delegating class that manages event listener addition and
removal. Classes that generate events can obtain an instance of
this class from the EventManager and delegate responsibility
to it. Interaction with this delegating class is done via the
methods of the EventDelegate API.
| Constructor Summary | |
|---|---|
protected |
EventManager.EventDelegateImpl(Object client)
Constructor for an EventDelegateImpl, provided with the client Object it will service, or the Class of client, the latter when used to preload a future incoming delegate. |
| Method Summary | |
|---|---|
boolean |
addChangeListener(ChangeListener listener)
Adds listener as a listener for events fired by the EventDelegate. |
void |
fireEvent(ChangeEvent event)
Notify all listeners having a registered interest in change events of the supplied ChangeEvent. |
Set |
getChangeListeners()
Return an unmodifiable Set containing the ChangeListeners of this EventDelegateImpl. |
protected Class |
getClientClass()
Returns the class of the client-less delegate, null if this delegate is attached to a client Object. |
boolean |
isListening()
Returns true if there are one or more listeners registered with this instance. |
boolean |
removeChangeListener(ChangeListener listener)
Removes listener from the EventDelegate. |
protected void |
setClient(Object client)
Set this EventDelegateImpl's client Object to client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EventManager.EventDelegateImpl(Object client)
| Method Detail |
|---|
protected void setClient(Object client)
protected Class getClientClass()
public Set getChangeListeners()
UnsupportedOperationException - if any attempt is made to modify the Setpublic boolean addChangeListener(ChangeListener listener)
addChangeListener in interface EventDelegatelistener - the ChangeListener to be added
public boolean removeChangeListener(ChangeListener listener)
removeChangeListener in interface EventDelegatelistener - the ChangeListener to be removed
public boolean isListening()
isListening in interface EventDelegatepublic void fireEvent(ChangeEvent event)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||