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.event;
10:
11: import com.gwtext.client.widgets.Panel;
12: import com.gwtext.client.widgets.TabPanel;
13: import com.gwtext.client.core.EventObject;
14:
15: public interface TabPanelListener extends PanelListener {
16:
17: /**
18: * Fires before the active tab changes. Return false to cancel the tab change.
19: *
20: * @param source this
21: * @param newPanel the new panel
22: * @param oldPanel the old panel
23: * @return false to cancel the tab change
24: */
25: boolean doBeforeTabChange(TabPanel source, Panel newPanel,
26: Panel oldPanel);
27:
28: /**
29: * Fires when the contextmenu event originated from a tab element.
30: *
31: * @param source this
32: * @param tab the tab
33: * @param e the event object
34: */
35: void onContextMenu(TabPanel source, Panel tab, EventObject e);
36:
37: /**
38: * Fires after the active tab has changed.
39: *
40: * @param source this
41: * @param tab the selected tab
42: */
43: void onTabChange(TabPanel source, Panel tab);
44: }
|