01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08:
09: package com.gwtext.client.widgets.menu.event;
10:
11: import com.gwtext.client.core.EventObject;
12: import com.gwtext.client.widgets.menu.BaseItem;
13: import com.gwtext.client.widgets.event.ComponentListener;
14:
15: public interface BaseItemListener extends ComponentListener {
16:
17: /**
18: * Fires when this item is activated
19: *
20: * @param item this
21: */
22: void onActivate(BaseItem item);
23:
24: /**
25: * Fires when this item is clicked
26: *
27: * @param item the item
28: * @param e the event object
29: */
30: void onClick(BaseItem item, EventObject e);
31:
32: /**
33: * Fires when this item is deactivated
34: *
35: * @param item this
36: */
37: void onDeactivate(BaseItem item);
38: }
|