|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.client.util.EventMulticaster
public class EventMulticaster
EventMulticaster multicasts events to IEntitySetListener, IPropertyListener, and IInteractionListener. Its design and purpose are similar to AWTEventMulticaster.
thinkmap.client.IEntitySetListener,
thinkmap.expression.runtime.IPropertyListener,
thinkmap.client.IInteractionListener| Field Summary | |
|---|---|
protected EventListener |
a
|
protected EventListener |
b
|
| Constructor Summary | |
|---|---|
protected |
EventMulticaster(EventListener a,
EventListener b)
|
| Method Summary | |
|---|---|
static IContextListener |
add(IContextListener a,
IContextListener b)
|
static IErrorListener |
add(IErrorListener a,
IErrorListener b)
|
protected static EventListener |
addInternal(EventListener a,
EventListener b)
Returns the resulting multicast listener from adding listener a and listener b together. |
static boolean |
contains(EventListener l,
EventListener oldl)
Determine if an EventListener constains a specified listener. |
void |
contextDestroyed(IThinkmapContext itc)
Called when the given context has been destroyed. |
void |
contextInitializing(IThinkmapContext itc)
Called when the given context is initializing. |
void |
contextStarting(IThinkmapContext itc)
Called when the given context is starting. |
void |
contextStopping(IThinkmapContext itc)
Called when the given context is stopping. |
void |
errorOccurred(Throwable t)
|
static int |
getListenerCount(EventListener l)
|
static EventListener[] |
getListeners(EventListener l,
Class listenerType)
Get all listeners in a particular EventListener of a particular type. |
protected EventListener |
remove(EventListener oldl)
|
static IContextListener |
remove(IContextListener a,
IContextListener b)
|
static IErrorListener |
remove(IErrorListener a,
IErrorListener b)
|
protected static EventListener |
removeInternal(EventListener l,
EventListener oldl)
Returns the resulting multicast listener after removing the old listener from listener l. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final EventListener a
protected final EventListener b
| Constructor Detail |
|---|
protected EventMulticaster(EventListener a,
EventListener b)
| Method Detail |
|---|
public static IContextListener add(IContextListener a,
IContextListener b)
public static IContextListener remove(IContextListener a,
IContextListener b)
public static IErrorListener add(IErrorListener a,
IErrorListener b)
public static IErrorListener remove(IErrorListener a,
IErrorListener b)
public void contextInitializing(IThinkmapContext itc)
throws Exception
IContextListener
contextInitializing in interface IContextListeneritc - the context that is initializing
Exception - if an error occurs while processing this event.public void contextStarting(IThinkmapContext itc)
IContextListener
contextStarting in interface IContextListeneritc - the context that is startingpublic void contextStopping(IThinkmapContext itc)
IContextListener
contextStopping in interface IContextListeneritc - the context that is startingpublic void contextDestroyed(IThinkmapContext itc)
IContextListener
contextDestroyed in interface IContextListeneritc - the context that is being destroyedpublic void errorOccurred(Throwable t)
errorOccurred in interface IErrorListener
public static boolean contains(EventListener l,
EventListener oldl)
l - an EventListeneroldl - a listener to search for
protected static EventListener addInternal(EventListener a,
EventListener b)
a - event listener ab - event listener b
protected static EventListener removeInternal(EventListener l,
EventListener oldl)
l - the listener being removed fromoldl - the listener being removed
protected EventListener remove(EventListener oldl)
public static int getListenerCount(EventListener l)
public static EventListener[] getListeners(EventListener l,
Class listenerType)
l - the event listenerlistenerType - a class of listeners to find
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||