Example usage for com.google.gwt.editor.client IsEditor asEditor

List of usage examples for com.google.gwt.editor.client IsEditor asEditor

Introduction

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

Prototype

E asEditor();

Source Link

Document

Returns the Editor encapsulated by the view object.

Usage

From source file:com.gafactory.core.client.ui.editors.BaseEditorView.java

License:Open Source License

private void initFieldvalidation() {
    final Widget[] widgets = validationFields();
    for (Widget widget : widgets) {
        final Widget parent = widget.getParent();
        if (parent instanceof FormGroup) {
            FormGroup formGroup = (FormGroup) parent;
            if (widget instanceof IsEditor) {
                IsEditor isEditor = (IsEditor) widget;
                groupMap.put(isEditor.asEditor(), formGroup);
            } else if (widget instanceof Editor) {
                groupMap.put((Editor) widget, formGroup);
            }/*from   www  .ja v  a2s.c  om*/
        }

        ///add change handler
        setupChangeHandler(widget);
    }
}