com.esri.client.local
Class LocalServiceEventMulticaster

java.lang.Object
  extended by java.awt.AWTEventMulticaster
      extended by com.esri.client.local.LocalServiceEventMulticaster
All Implemented Interfaces:
LocalServiceStartCompleteListener, LocalServiceStopCompleteListener, ActionListener, AdjustmentListener, ComponentListener, ContainerListener, FocusListener, HierarchyBoundsListener, HierarchyListener, InputMethodListener, ItemListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, TextListener, WindowFocusListener, WindowListener, WindowStateListener, EventListener

public class LocalServiceEventMulticaster
extends AWTEventMulticaster
implements LocalServiceStartCompleteListener, LocalServiceStopCompleteListener

The Class LocalServiceEventMulticaster allows multiple listeners to be chained together. Also allows one class to extend both LocalServiceStartCompleteListener and LocalServiceStopCompleteListener.

See Also:
AWTEventMulticaster

Field Summary
 
Fields inherited from class java.awt.AWTEventMulticaster
a, b
 
Constructor Summary
protected LocalServiceEventMulticaster(EventListener a, EventListener b)
          Instantiates a new local service event multicaster.
 
Method Summary
static LocalServiceStartCompleteListener add(LocalServiceStartCompleteListener a, LocalServiceStartCompleteListener b)
          Adds listeners for StartCompleteEvent.
static LocalServiceStopCompleteListener add(LocalServiceStopCompleteListener a, LocalServiceStopCompleteListener b)
          Adds listeners for StopCompleteEvent.
protected static EventListener addInternal(EventListener a, EventListener b)
          Adds the internal.
 void localServiceStartComplete(LocalServiceStartCompleteEvent e)
           
 void localServiceStopComplete(LocalServiceStopCompleteEvent e)
           
protected  EventListener remove(EventListener oldListener)
           
static LocalServiceStartCompleteListener remove(LocalServiceStartCompleteListener listener, LocalServiceStartCompleteListener oldListener)
          Removes listeners for StartCompleteEvent.
static LocalServiceStopCompleteListener remove(LocalServiceStopCompleteListener listener, LocalServiceStopCompleteListener oldListener)
          Removes listeners for StopCompleteEvent.
 
Methods inherited from class java.awt.AWTEventMulticaster
actionPerformed, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, adjustmentValueChanged, ancestorMoved, ancestorResized, caretPositionChanged, componentAdded, componentHidden, componentMoved, componentRemoved, componentResized, componentShown, focusGained, focusLost, getListeners, hierarchyChanged, inputMethodTextChanged, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeInternal, save, saveInternal, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalServiceEventMulticaster

protected LocalServiceEventMulticaster(EventListener a,
                                       EventListener b)
Instantiates a new local service event multicaster.

Parameters:
a - the a
b - the b
Method Detail

add

public static LocalServiceStartCompleteListener add(LocalServiceStartCompleteListener a,
                                                    LocalServiceStartCompleteListener b)
Adds listeners for StartCompleteEvent.

Parameters:
a - the a
b - the b
Returns:
the local service start complete listener

remove

public static LocalServiceStartCompleteListener remove(LocalServiceStartCompleteListener listener,
                                                       LocalServiceStartCompleteListener oldListener)
Removes listeners for StartCompleteEvent.

Parameters:
listener - the listener
oldListener - the old listener
Returns:
the local service start complete listener

add

public static LocalServiceStopCompleteListener add(LocalServiceStopCompleteListener a,
                                                   LocalServiceStopCompleteListener b)
Adds listeners for StopCompleteEvent.

Parameters:
a - the a
b - the b
Returns:
the local service stop complete listener

remove

public static LocalServiceStopCompleteListener remove(LocalServiceStopCompleteListener listener,
                                                      LocalServiceStopCompleteListener oldListener)
Removes listeners for StopCompleteEvent.

Parameters:
listener - the listener
oldListener - the old listener
Returns:
the local service stop complete listener

localServiceStartComplete

public void localServiceStartComplete(LocalServiceStartCompleteEvent e)
Specified by:
localServiceStartComplete in interface LocalServiceStartCompleteListener

localServiceStopComplete

public void localServiceStopComplete(LocalServiceStopCompleteEvent e)
Specified by:
localServiceStopComplete in interface LocalServiceStopCompleteListener

addInternal

protected static EventListener addInternal(EventListener a,
                                           EventListener b)
Adds the internal.

Parameters:
a - the a
b - the b
Returns:
the event listener

remove

protected EventListener remove(EventListener oldListener)
Overrides:
remove in class AWTEventMulticaster


Copyright © 2012. All Rights Reserved.