Class DropDownEditor
- java.lang.Object
-
- org.dashbuilder.common.client.editor.list.DropDownEditor
-
- All Implemented Interfaces:
com.google.gwt.editor.client.Editor<String>,com.google.gwt.editor.client.HasEditorErrors<String>,com.google.gwt.editor.client.LeafValueEditor<String>,com.google.gwt.user.client.TakesValue<String>,com.google.gwt.user.client.ui.IsWidget,LeafAttributeEditor<String>
@Dependent public class DropDownEditor extends Object implements com.google.gwt.user.client.ui.IsWidget, LeafAttributeEditor<String>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDropDownEditor.Entrystatic interfaceDropDownEditor.View
-
Field Summary
Fields Modifier and Type Field Description DropDownEditor.Viewview
-
Constructor Summary
Constructors Constructor Description DropDownEditor(DropDownEditor.View view, org.uberfire.ext.widgets.common.client.dropdown.LiveSearchDropDown dropDown, javax.enterprise.event.Event<ValueChangeEvent<String>> 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()voidclear()voidgetDropDownEntries(String pattern, int maxResults, org.uberfire.ext.widgets.common.client.dropdown.LiveSearchCallback<String> callback)voidgetExactEntry(String key, org.uberfire.ext.widgets.common.client.dropdown.LiveSearchCallback<String> callback)StringgetSelectedValue()StringgetValue()voidinit()DropDownEditor.EntrynewEntry(String value, String hint)voidonEntrySelected()voidsetEntries(Collection<DropDownEditor.Entry> entries)voidsetSelectHint(String hint)voidsetValue(String value)voidshowErrors(List<com.google.gwt.editor.client.EditorError> errors)GWT EDITOR CONTRACT METHODS **
-
-
-
Field Detail
-
view
public DropDownEditor.View view
-
-
Constructor Detail
-
DropDownEditor
@Inject public DropDownEditor(DropDownEditor.View view, org.uberfire.ext.widgets.common.client.dropdown.LiveSearchDropDown dropDown, javax.enterprise.event.Event<ValueChangeEvent<String>> valueChangeEvent)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
getDropDownEntries
public void getDropDownEntries(String pattern, int maxResults, org.uberfire.ext.widgets.common.client.dropdown.LiveSearchCallback<String> callback)
-
getExactEntry
public void getExactEntry(String key, org.uberfire.ext.widgets.common.client.dropdown.LiveSearchCallback<String> callback)
-
onEntrySelected
public void onEntrySelected()
-
getSelectedValue
public String getSelectedValue()
-
setSelectHint
public void setSelectHint(String hint)
-
newEntry
public DropDownEditor.Entry newEntry(String value, String hint)
-
setEntries
public void setEntries(Collection<DropDownEditor.Entry> entries)
-
addHelpContent
public void addHelpContent(String title, String content, org.gwtbootstrap3.client.ui.constants.Placement placement)
-
clear
public void clear()
-
showErrors
public void showErrors(List<com.google.gwt.editor.client.EditorError> errors)
GWT EDITOR CONTRACT METHODS **- Specified by:
showErrorsin interfacecom.google.gwt.editor.client.HasEditorErrors<String>
-
getValue
public String getValue()
- Specified by:
getValuein interfacecom.google.gwt.user.client.TakesValue<String>
-
-