com.ideo.sweetdevria.event
Class RiaListenerManagerImpl

java.lang.Object
  extended by com.ideo.sweetdevria.event.RiaListenerManagerImpl
All Implemented Interfaces:
IRiaListenerManager
Direct Known Subclasses:
RiaComponentModel

public class RiaListenerManagerImpl
extends java.lang.Object
implements IRiaListenerManager

RiaComponentModel implementation of the listener manager

Author:
Julien Maupoux

Constructor Summary
RiaListenerManagerImpl()
           
 
Method Summary
 void addEventListener(IRiaListener listener)
          Add a listener for all the events of this component
 void addEventTypeListener(IRiaListener listener, int eventType)
          Add a listener for a specific event type of this component
 void fireEventType(RiaEvent event)
          Fire the event to all the listeners waiting for a notification
 void removeAllEventListeners()
          Remove all the listeners on this component, even the ones bound on a specific type
 void removeAllEventTypeListeners(int eventType)
          Remove all the listeners bound on a specific type on this component
 void removeEventListener(IRiaListener listener)
          Remove a listener for all the events of this component
 void removeEventTypeListener(IRiaListener listener, int eventType)
          Remove a listener for a specific event type on this component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiaListenerManagerImpl

public RiaListenerManagerImpl()
Method Detail

addEventListener

public void addEventListener(IRiaListener listener)
Description copied from interface: IRiaListenerManager
Add a listener for all the events of this component

Specified by:
addEventListener in interface IRiaListenerManager
Parameters:
listener - the listener to add

addEventTypeListener

public void addEventTypeListener(IRiaListener listener,
                                 int eventType)
Description copied from interface: IRiaListenerManager
Add a listener for a specific event type of this component

Specified by:
addEventTypeListener in interface IRiaListenerManager
Parameters:
listener - the listener to add
eventType - the type of the event to listen

removeEventListener

public void removeEventListener(IRiaListener listener)
Description copied from interface: IRiaListenerManager
Remove a listener for all the events of this component

Specified by:
removeEventListener in interface IRiaListenerManager
Parameters:
listener - the listener to remove

removeEventTypeListener

public void removeEventTypeListener(IRiaListener listener,
                                    int eventType)
Description copied from interface: IRiaListenerManager
Remove a listener for a specific event type on this component

Specified by:
removeEventTypeListener in interface IRiaListenerManager
Parameters:
listener - the listener to remove
eventType - the type of the event to remove on

removeAllEventListeners

public void removeAllEventListeners()
Description copied from interface: IRiaListenerManager
Remove all the listeners on this component, even the ones bound on a specific type

Specified by:
removeAllEventListeners in interface IRiaListenerManager

removeAllEventTypeListeners

public void removeAllEventTypeListeners(int eventType)
Description copied from interface: IRiaListenerManager
Remove all the listeners bound on a specific type on this component

Specified by:
removeAllEventTypeListeners in interface IRiaListenerManager

fireEventType

public void fireEventType(RiaEvent event)
Description copied from interface: IRiaListenerManager
Fire the event to all the listeners waiting for a notification

Specified by:
fireEventType in interface IRiaListenerManager
Parameters:
event - the event to fire, composed of the component source id and of the type to fire.


Copyright © 2010 Ideo Technologies. All Rights Reserved.