DispatcherListener.java :  » Ajax » MyGWT » net » mygwt » ui » client » mvc » Java Open Source

Java Open Source » Ajax » MyGWT 
MyGWT » net » mygwt » ui » client » mvc » DispatcherListener.java
/*
 * MyGWT Widget Library
 * Copyright(c) 2007, MyGWT.
 * licensing@mygwt.net
 * 
 * http://mygwt.net/license
 */
package net.mygwt.ui.client.mvc;

import java.util.EventListener;

/**
 * Event interface for dispatcher events.
 */
public interface DispatcherListener extends EventListener {

  /**
   * Fires before an event is dispatched. Listeners can set the
   * <code>doit</code> field to <code>false</code> to cancel the action.
   * 
   * @param ae the app event to be dispatched
   */
  public void beforeDispatch(AppEvent ae);

  /**
   * Fires after an event has been dispatched.
   * 
   * @param ae the event that was dispatched
   */
  public void afterDispatch(AppEvent ae);

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.