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

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

Introduction

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

Prototype

EditorError

Source Link

Usage

From source file:org.dashbuilder.client.widgets.dataset.editor.widgets.editors.elasticsearch.ELDataSetDefAttributesEditor.java

License:Apache License

private EditorError createError(final String path, final String message, final Editor<?> editor) {
    return new EditorError() {

        private boolean consumed = false;

        @Override/*from w ww .j  a va 2s .  c  om*/
        public String getAbsolutePath() {
            return path;
        }

        @Override
        public Editor<?> getEditor() {
            return editor;
        }

        @Override
        public String getMessage() {
            return message;
        }

        @Override
        public String getPath() {
            return null;
        }

        @Override
        public Object getUserData() {
            return null;
        }

        @Override
        public Object getValue() {
            return null;
        }

        @Override
        public boolean isConsumed() {
            return consumed;
        }

        @Override
        public void setConsumed(boolean consumed) {
            this.consumed = consumed;
        }
    };
}