Example usage for com.google.gwt.editor.client EditorContext asHasEditorErrors

List of usage examples for com.google.gwt.editor.client EditorContext asHasEditorErrors

Introduction

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

Prototype

HasEditorErrors<T> asHasEditorErrors();

Source Link

Document

Returns a non-null value if the editor returned by #getEditor() implements HasEditorErrors .

Usage

From source file:com.google.gwt.editor.client.testing.EditorHierarchyPrinter.java

License:Apache License

@Override
public <T> boolean visit(EditorContext<T> ctx) {
    println(ctx.getAbsolutePath());// w  w w.java 2  s  .c o m
    data(ctx.getEditedType().getName());
    data(ctx.getEditor().getClass().getName());
    data("Implements: " //
            + ctx.asCompositeEditor() == null ? ""
                    : "CompositeEditor " //
                            + ctx.asHasEditorDelegate() == null ? ""
                                    : "HasEditorDelegate " //
                                            + ctx.asHasEditorErrors() == null ? ""
                                                    : "HasEditorErrors " //
                                                            + ctx.asLeafValueEditor() == null
                                                                    ? ""
                                                                    : "LeafValueEditor " //
                                                                            + ctx.asValueAwareEditor() == null
                                                                                    ? ""
                                                                                    : "ValueAwareEditor ");
    level++;
    return true;
}