List of usage examples for com.google.gwt.user.client.ui ValueBoxBase asEditor
public ValueBoxEditor<T> asEditor()
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()); }