Example usage for com.google.gwt.editor.client EditorError getValue

List of usage examples for com.google.gwt.editor.client EditorError getValue

Introduction

In this page you can find the example usage for com.google.gwt.editor.client EditorError getValue.

Prototype

Object getValue();

Source Link

Document

Returns the value that triggered the error.

Usage

From source file:com.sencha.gxt.widget.core.client.form.AdapterField.java

License:sencha.com license

@Override
public void flush() {
    if (delegate == null) {
        return;/*from   w  ww  .  j  ava  2  s  .  co  m*/
    }
    if (forceInvalidText != null) {
        delegate.recordError(forceInvalidText, "", this);
    } else {
        validate();
        if (errors != null) {
            for (EditorError e : errors) {
                delegate.recordError(e.getMessage(), e.getValue(), this);
            }
        }
    }
}

From source file:com.sencha.gxt.widget.core.client.form.Field.java

License:sencha.com license

@Override
public void flush() {
    if (delegate == null) {
        return;/*ww  w  .  j a va  2s. com*/
    }
    if (parseError != null) {
        delegate.recordError(parseError, "", this);
    } else if (forceInvalidText != null) {
        delegate.recordError(forceInvalidText, "", this);
    } else {
        validate();
        if (errors != null) {
            for (EditorError e : errors) {
                delegate.recordError(e.getMessage(), e.getValue(), this);
            }
        }
    }
}