Class ValueBoxEditor<T>
- java.lang.Object
-
- org.dashbuilder.common.client.editor.ValueBoxEditor<T>
-
- All Implemented Interfaces:
com.google.gwt.editor.client.Editor<T>,com.google.gwt.editor.client.HasEditorErrors<T>,com.google.gwt.editor.client.LeafValueEditor<T>,com.google.gwt.user.client.TakesValue<T>,com.google.gwt.user.client.ui.IsWidget,LeafAttributeEditor<T>
@Dependent public class ValueBoxEditor<T> extends Object implements com.google.gwt.user.client.ui.IsWidget, LeafAttributeEditor<T>
Provides an editor for a ValueBoxBase widget of type T.
It displays the editor errors using a bootstrap tooltip.
- Since:
- 0.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceValueBoxEditor.View<T>
-
Field Summary
Fields Modifier and Type Field Description ValueBoxEditor.View<T>view
-
Constructor Summary
Constructors Constructor Description ValueBoxEditor(ValueBoxEditor.View<T> view, javax.enterprise.event.Event<ValueChangeEvent<T>> valueChangeEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHelpContent(String title, String content, org.gwtbootstrap3.client.ui.constants.Placement placement)com.google.gwt.user.client.ui.WidgetasWidget()TgetValue()voidinit()voidsetValue(T value)voidshowErrors(List<com.google.gwt.editor.client.EditorError> errors)
-
-
-
Field Detail
-
view
public ValueBoxEditor.View<T> view
-
-
Constructor Detail
-
ValueBoxEditor
@Inject public ValueBoxEditor(ValueBoxEditor.View<T> view, javax.enterprise.event.Event<ValueChangeEvent<T>> valueChangeEvent)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
addHelpContent
public void addHelpContent(String title, String content, org.gwtbootstrap3.client.ui.constants.Placement placement)
-
showErrors
public void showErrors(List<com.google.gwt.editor.client.EditorError> errors)
- Specified by:
showErrorsin interfacecom.google.gwt.editor.client.HasEditorErrors<T>
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
setValue
public void setValue(T value)
- Specified by:
setValuein interfacecom.google.gwt.user.client.TakesValue<T>
-
-