Example usage for com.google.gwt.user.client.ui ValueBoxBase asEditor

List of usage examples for com.google.gwt.user.client.ui ValueBoxBase asEditor

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui ValueBoxBase asEditor.

Prototype

public ValueBoxEditor<T> asEditor() 

Source Link

Document

Returns an Editor that is backed by the ValueBoxBase.

Usage

From source file:com.google.gwt.sample.validation.client.widget.BetterValueBoxEditorDecorator.java

/**
 * Set the widget that the EditorPanel will display. This method will
 * automatically call {@link #setEditor}.
 * //from   w  ww  . j  av a 2s . c  o  m
 * @param widget a {@link ValueBoxBase} widget
 */
@UiChild(limit = 1, tagname = "valuebox")
public void setValueBox(ValueBoxBase<T> widget) {
    contents.add(widget);
    setEditor(widget.asEditor());
}