com.extjs.gxt.ui.client.mvc
Class DispatcherListener

java.lang.Object
  extended by com.extjs.gxt.ui.client.mvc.DispatcherListener
All Implemented Interfaces:
Listener<MvcEvent>, java.util.EventListener

public class DispatcherListener
extends java.lang.Object
implements Listener<MvcEvent>

Event listener for dispatcher events.


Constructor Summary
DispatcherListener()
           
 
Method Summary
 void afterDispatch(MvcEvent mvce)
          Fires after an event has been dispatched.
 void beforeDispatch(MvcEvent mvce)
          Fires before an event is dispatched.
 void handleEvent(MvcEvent e)
          Sent when an event that the listener has registered for occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatcherListener

public DispatcherListener()
Method Detail

handleEvent

public void handleEvent(MvcEvent e)
Description copied from interface: Listener
Sent when an event that the listener has registered for occurs.

Specified by:
handleEvent in interface Listener<MvcEvent>
Parameters:
e - the event which occurred

beforeDispatch

public void beforeDispatch(MvcEvent mvce)
Fires before an event is dispatched. Listeners can cancel the action by calling BaseEvent.setCancelled(boolean).

Parameters:
mvce - the application event to be dispatched

afterDispatch

public void afterDispatch(MvcEvent mvce)
Fires after an event has been dispatched.

Parameters:
mvce - the event that was dispatched