Class 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>
    • 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

      • asWidget

        public com.google.gwt.user.client.ui.Widget asWidget()
        Specified by:
        asWidget in interface com.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)
      • 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:
        showErrors in interface com.google.gwt.editor.client.HasEditorErrors<String>
      • getValue

        public String getValue()
        Specified by:
        getValue in interface com.google.gwt.user.client.TakesValue<String>
      • setValue

        public void setValue​(String value)
        Specified by:
        setValue in interface com.google.gwt.user.client.TakesValue<String>