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.form.event;
10:
11: import com.gwtext.client.widgets.form.Field;
12:
13: public interface TextFieldListener extends FieldListener {
14:
15: /**
16: * Fires when the autosize function is triggered. The field may or may not have actually changed size according to
17: * the default logic, but this event provides a hook for the developer to apply additional logic at runtime to
18: * resize the field if needed.
19: *
20: * @param field this
21: * @param width the new field width
22: */
23: void onAutoSize(Field field, int width);
24: }
|