com.ideo.sweetdevria.event
Interface IRiaListenerManager

All Known Subinterfaces:
IModel
All Known Implementing Classes:
BaseExportModel, EditableTextModel, FileUploadModel, GridExportModel, GridModel, ListModel, ReaderModel, RiaComponentModel, RiaComponentStateFullModel, RiaListenerManagerImpl, SingleExportModel, SuggestModel, TabLayoutModel, TreeGridBeanModel, TreeGridModel, TreeModel, ZoneModel

public interface IRiaListenerManager

Interface implemented for every component managing some listeners on event processing

Author:
Julien Maupoux
See Also:
RiaListenerManagerImpl, RiaComponentModel

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
 

Method Detail

addEventListener

void addEventListener(IRiaListener listener)
Add a listener for all the events of this component

Parameters:
listener - the listener to add

addEventTypeListener

void addEventTypeListener(IRiaListener listener,
                          int eventType)
Add a listener for a specific event type of this component

Parameters:
listener - the listener to add
eventType - the type of the event to listen

removeEventListener

void removeEventListener(IRiaListener listener)
Remove a listener for all the events of this component

Parameters:
listener - the listener to remove

removeEventTypeListener

void removeEventTypeListener(IRiaListener listener,
                             int eventType)
Remove a listener for a specific event type on this component

Parameters:
listener - the listener to remove
eventType - the type of the event to remove on

removeAllEventListeners

void removeAllEventListeners()
Remove all the listeners on this component, even the ones bound on a specific type


removeAllEventTypeListeners

void removeAllEventTypeListeners(int eventType)
Remove all the listeners bound on a specific type on this component


fireEventType

void fireEventType(RiaEvent event)
Fire the event to all the listeners waiting for a notification

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.