Example usage for com.google.gwt.editor.client HasEditorDelegate setDelegate

List of usage examples for com.google.gwt.editor.client HasEditorDelegate setDelegate

Introduction

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

Prototype

void setDelegate(EditorDelegate<T> delegate);

Source Link

Document

Called by the EditorDriver to provide access to the EditorDelegate the Editor is peered with.

Usage

From source file:com.github.apetrelli.gwtintegration.editor.client.widget.LeafValueEditorDecorator.java

License:Apache License

@Override
public void setDelegate(EditorDelegate<T> delegate) {
    if (editor instanceof HasEditorDelegate) {
        @SuppressWarnings({ "unchecked", "rawtypes" })
        HasEditorDelegate<T> hasDelegate = (HasEditorDelegate) editor;
        hasDelegate.setDelegate(delegate);
    }//from w w  w .ja v  a2s .c o m
}