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.core.EventObject;
12: import com.gwtext.client.widgets.form.Field;
13: import com.gwtext.client.widgets.event.BoxComponentListenerAdapter;
14:
15: public class FieldListenerAdapter extends BoxComponentListenerAdapter
16: implements FieldListener {
17:
18: public void onBlur(Field field) {
19: }
20:
21: //make old API final so that it results in compile errors when users' previous code overrides this instead of
22: //silently failing. Uses should now use onChange(Field field, Object newVal, Object oldVal)
23: public final void onChange(Field field, String newVal, String oldVal) {
24: }
25:
26: public void onChange(Field field, Object newVal, Object oldVal) {
27: }
28:
29: public void onFocus(Field field) {
30: }
31:
32: public void onInvalid(Field field, String msg) {
33: }
34:
35: public void onSpecialKey(Field field, EventObject e) {
36: }
37:
38: public void onValid(Field field) {
39: }
40: }
|