Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gwtext.client.widgets.form.event
Interface FieldListener

All Superinterfaces:
  BoxComponentListener, ComponentListener

All Known Subinterfaces:
  CheckboxListener, ComboBoxListener, HtmlEditorListener, TextFieldListener

All Known Implementing Classes:
  CheckboxListenerAdapter, ComboBoxListenerAdapter, FieldListenerAdapter, HtmlEditorListenerAdapter, TextFieldListenerAdapter

    public interface FieldListener

extends BoxComponentListener

Method Summary
`void` | `onBlur(Field field)` Fires when this field loses input focus.
`void` | `onChange(Field field, java.lang.Object newVal, java.lang.Object oldVal)` Fires just before the field blurs if the field value has changed.
`void` | `onFocus(Field field)` Fires when this field receives input focus.
`void` | `onInvalid(Field field, java.lang.String msg)` Fires after the field has been marked as invalid.
`void` | `onSpecialKey(Field field, EventObject e)` Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed.
`void` | `onValid(Field field)` Fires after the field has been validated with no errors.

Methods inherited from interface com.gwtext.client.widgets.event.BoxComponentListener
`onMove, onResize`

Methods inherited from interface com.gwtext.client.widgets.event.ComponentListener
`doBeforeDestroy, doBeforeHide, doBeforeRender, doBeforeShow, doBeforeStateRestore, doBeforeStateSave, onDestroy, onDisable, onEnable, onHide, onRender, onShow, onStateRestore, onStateSave`

Method Detail

### onBlur

    void onBlur(Field field)

  Fires when this field loses input focus.

  Parameters:
    `field` - this

### onChange

    void onChange(Field field,
                  java.lang.Object newVal,
                  java.lang.Object oldVal)

  Fires just before the field blurs if the field value has changed.

  Parameters:
    `field` - this
    `newVal` - the new value
    `oldVal` - the old value

### onFocus

    void onFocus(Field field)

  Fires when this field receives input focus.

  Parameters:
    `field` - this

### onInvalid

    void onInvalid(Field field,
                   java.lang.String msg)

  Fires after the field has been marked as invalid.

  Parameters:
    `field` - this
    `msg` - the validation message

### onSpecialKey

    void onSpecialKey(Field field,
                      EventObject e)

  Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check `EventObject.getKey()` to determine which key was pressed.

  Parameters:
    `field` - this
    `e` - the event object

### onValid

    void onValid(Field field)

  Fires after the field has been validated with no errors.

  Parameters:
    `field` - this

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD