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: package com.gwtext.client.widgets.event;
09:
10: import com.gwtext.client.core.EventObject;
11: import com.gwtext.client.widgets.Resizable;
12:
13: public interface ResizableListener {
14:
15: /**
16: * Fires event before the resize.
17: *
18: * @param self this
19: * @param e the event object
20: * @return false to prevent the resize
21: */
22: boolean doBeforeResize(Resizable self, EventObject e);
23:
24: /**
25: * Fires when the element is resized.
26: *
27: * @param self this
28: * @param width the new width
29: * @param height the new height
30: */
31: void onResize(Resizable self, int width, int height);
32: }
|