All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.MultiCaster

java.lang.Object
   |
   +----dtai.gwt.MultiCaster

public class MultiCaster
extends Object
implements EventListener

Variable Index

 o a
 o b

Constructor Index

 o MultiCaster(EventListener, EventListener)

Method Index

 o addInternal(EventListener, EventListener)
Returns the resulting multicast listener from adding listener-a and listener-b together.
 o remove(EventListener)
Removes a listener from this multicaster and returns the resulting multicast listener.
 o removeInternal(EventListener, EventListener)
Returns the resulting multicast listener after removing the old listener from listener-l.

Variables

 o a
 protected EventListener a
 o b
 protected EventListener b

Constructors

 o MultiCaster
 public MultiCaster(EventListener a,
                    EventListener b)

Methods

 o remove
 protected EventListener remove(EventListener oldl)
Removes a listener from this multicaster and returns the resulting multicast listener.

Parameters:
oldl - the listener to be removed
 o addInternal
 protected static EventListener addInternal(EventListener a,
                                            EventListener b)
Returns the resulting multicast listener from adding listener-a and listener-b together. If listener-a is null, it returns listener-b; If listener-b is null, it returns listener-a If neither are null, then it creates and returns a new GWTEventMulticaster instance which chains a with b.

Parameters:
a - event listener-a
b - event listener-b
 o removeInternal
 protected static EventListener removeInternal(EventListener l,
                                               EventListener oldl)
Returns the resulting multicast listener after removing the old listener from listener-l. If listener-l equals the old listener OR listener-l is null, returns null. Else if listener-l is an instance of GWTEventMulticaster, then it removes the old listener from it. Else, returns listener l.

Parameters:
l - the listener being removed from
oldl - the listener being removed

All Packages  Class Hierarchy  This Package  Previous  Next  Index