/* * Ext GWT - Ext for GWT * Copyright(c) 2007-2009, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ package com.extjs.gxt.ui.client.event; import java.util.EventListener; /** * Interface for objects that are notified of GXT events. * * <pre> Button btn = new Button(); btn.addListener(Events.Select, new Listener<ButtonEvent>() { public void handleEvent(ButtonEvent be) { Button button = be.button; } }); * </pre> * @param <E> the base event type */ public interface Listener<E extends BaseEvent> extends EventListener { /** * Sent when an event that the listener has registered for occurs. * * @param be the event which occurred */ public void handleEvent(E be); }