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

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

Introduction

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

Prototype

EditorDelegate<T> getEditorDelegate();

Source Link

Document

Returns the EditorDelegate associated with the current Editor, which may be null for LeafValueEditor LeafValueEditors .

Usage

From source file:com.google.web.bindery.requestfactory.gwt.client.impl.Initializer.java

License:Apache License

@Override
public <T> boolean visit(EditorContext<T> ctx) {
    RequestFactoryEditorDelegate<?, ?> delegate = (RequestFactoryEditorDelegate<?, ?>) ctx.getEditorDelegate();
    if (delegate != null) {
        delegate.setRequestContext(request);
    }/*from   w w w . j  av  a 2 s .c  o m*/
    Editor<T> editor = ctx.getEditor();
    if (editor instanceof HasRequestContext) {
        ((HasRequestContext<T>) editor).setRequestContext(request);
    }

    return super.visit(ctx);
}