com.esri.client.local
Class ServerEventMulticaster

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

public class ServerEventMulticaster
extends AWTEventMulticaster
implements ServerMessageListener, ServerLifetimeListener

The Class ServerEventMulticaster allows multiple listeners to be chained together. Also allows one class to extend both ServerMessageListener and ServerLifetimeListener.

See Also:
AWTEventMulticaster

Field Summary
 
Fields inherited from class java.awt.AWTEventMulticaster
a, b
 
Constructor Summary
protected ServerEventMulticaster(EventListener a, EventListener b)
          Constructs a new server event multicaster.
 
Method Summary
static ServerLifetimeListener add(ServerLifetimeListener a, ServerLifetimeListener b)
          Adds listeners for ServerLifetimeEvent.
static ServerMessageListener add(ServerMessageListener a, ServerMessageListener b)
          Adds listeners for ServerMessageEvent.
protected static EventListener addInternal(EventListener a, EventListener b)
          Adds an event listener.
 void handleMessage(ServerMessageEvent e)
           
protected  EventListener remove(EventListener oldListener)
           
static ServerLifetimeListener remove(ServerLifetimeListener listener, ServerLifetimeListener oldListener)
          Removes listeners for ServerLifetimeEvent.
static ServerMessageListener remove(ServerMessageListener listener, ServerMessageListener oldListener)
          Removes listeners for ServerMessageEvent.
 void serverLifetimeInitialized(ServerLifetimeEvent e)
           
 void serverLifetimeShutdown(ServerLifetimeEvent e)
           
 
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

ServerEventMulticaster

protected ServerEventMulticaster(EventListener a,
                                 EventListener b)
Constructs a new server event multicaster.

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

add

public static ServerMessageListener add(ServerMessageListener a,
                                        ServerMessageListener b)
Adds listeners for ServerMessageEvent.

Parameters:
a - the a
b - the b
Returns:
the server message listener

remove

public static ServerMessageListener remove(ServerMessageListener listener,
                                           ServerMessageListener oldListener)
Removes listeners for ServerMessageEvent.

Parameters:
listener - the listener
oldListener - the old listener
Returns:
the server message listener

add

public static ServerLifetimeListener add(ServerLifetimeListener a,
                                         ServerLifetimeListener b)
Adds listeners for ServerLifetimeEvent.

Parameters:
a - the a
b - the b
Returns:
the server lifetime listener

remove

public static ServerLifetimeListener remove(ServerLifetimeListener listener,
                                            ServerLifetimeListener oldListener)
Removes listeners for ServerLifetimeEvent.

Parameters:
listener - the listener
oldListener - the old listener
Returns:
the server lifetime listener

handleMessage

public void handleMessage(ServerMessageEvent e)
Specified by:
handleMessage in interface ServerMessageListener

serverLifetimeInitialized

public void serverLifetimeInitialized(ServerLifetimeEvent e)
Specified by:
serverLifetimeInitialized in interface ServerLifetimeListener

serverLifetimeShutdown

public void serverLifetimeShutdown(ServerLifetimeEvent e)
Specified by:
serverLifetimeShutdown in interface ServerLifetimeListener

addInternal

protected static EventListener addInternal(EventListener a,
                                           EventListener b)
Adds an event listener.

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.