Class IdAndNameSearchableListBox<T>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface org.gwtproject.editor.client.Editor

        org.gwtproject.editor.client.Editor.Ignore, org.gwtproject.editor.client.Editor.Path
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected List<IdAndNameBean<T>> entries  
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler​(com.google.gwt.event.logical.shared.ValueChangeHandler<T> phandler)  
      ValueBoxEditor<T> asEditor()  
      boolean checkValidity()
      Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints.
      protected void ensureDomEventHandlers()  
      void fillEntryCollections​(Collection<? extends IdAndNameBean<T>> pentries)
      fill entries of the listbox.
      String getAutocomplete()
      get autocomplete attribute value.
      String getPlaceholder()
      get place holder text.
      String getValidationMessage()
      A localized message that describes the validation constraints that the control does not satisfy (if any).
      com.google.gwt.user.client.ui.HTMLPanel getValidationMessageElement()
      get validation message element.
      elemental2.dom.ValidityState getValidity()
      The validity states that this element is in.
      T getValue()  
      boolean isAutofocus()
      get autofocus value.
      boolean isRequired()
      Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
      protected void onEnsureDebugId​(String pbaseId)  
      void setAutocomplete​(String arg)
      set autocomplete attribute value.
      void setAutofocus​(boolean arg)
      set autofocus value.
      void setCustomValidity​(String message)
      set custom validity value.
      void setPlaceholder​(String arg)
      set place holder text.
      void setRequired​(boolean arg)
      Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
      void setValidationMessageElement​(com.google.gwt.user.client.ui.HTMLPanel pelement)
      set validation message element.
      void setValue​(T pvalue)  
      void setValue​(T pvalue, boolean pfireEvents)  
      void showErrors​(List<org.gwtproject.editor.client.EditorError> perrors)  
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.event.shared.HasHandlers

        fireEvent
    • Constructor Detail

      • IdAndNameSearchableListBox

        public IdAndNameSearchableListBox()
        constructor.
      • IdAndNameSearchableListBox

        public IdAndNameSearchableListBox​(Collection<? extends IdAndNameBean<T>> pentries)
        constructor.
        Parameters:
        pentries - collection of id and name bean entries
    • Method Detail

      • fillEntryCollections

        public final void fillEntryCollections​(Collection<? extends IdAndNameBean<T>> pentries)
        fill entries of the listbox.
        Parameters:
        pentries - list of entries
      • onEnsureDebugId

        protected void onEnsureDebugId​(String pbaseId)
        Overrides:
        onEnsureDebugId in class com.google.gwt.user.client.ui.UIObject
      • addValueChangeHandler

        public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler​(com.google.gwt.event.logical.shared.ValueChangeHandler<T> phandler)
        Specified by:
        addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>
      • ensureDomEventHandlers

        protected void ensureDomEventHandlers()
      • getValue

        public T getValue()
        Specified by:
        getValue in interface com.google.gwt.user.client.ui.HasValue<T>
        Specified by:
        getValue in interface com.google.gwt.user.client.TakesValue<T>
        Specified by:
        getValue in interface org.gwtproject.editor.client.TakesValue<T>
      • setValue

        public void setValue​(T pvalue)
        Specified by:
        setValue in interface com.google.gwt.user.client.ui.HasValue<T>
        Specified by:
        setValue in interface com.google.gwt.user.client.TakesValue<T>
        Specified by:
        setValue in interface org.gwtproject.editor.client.TakesValue<T>
      • setValue

        public void setValue​(T pvalue,
                             boolean pfireEvents)
        Specified by:
        setValue in interface com.google.gwt.user.client.ui.HasValue<T>
      • asEditor

        public ValueBoxEditor<T> asEditor()
        Specified by:
        asEditor in interface org.gwtproject.editor.client.IsEditor<T>
      • isAutofocus

        public boolean isAutofocus()
        Description copied from interface: HasAutofocus
        get autofocus value.
        Specified by:
        isAutofocus in interface HasAutofocus
        Returns:
        true if input field has autofocus
      • setAutofocus

        public void setAutofocus​(boolean arg)
        Description copied from interface: HasAutofocus
        set autofocus value.
        Specified by:
        setAutofocus in interface HasAutofocus
        Parameters:
        arg - true if input field has autofocus
      • setAutocomplete

        public void setAutocomplete​(String arg)
        Description copied from interface: HasAutocomplete
        set autocomplete attribute value.
        Specified by:
        setAutocomplete in interface HasAutocomplete
        Parameters:
        arg - input field autocomplete attribute value to set
      • setPlaceholder

        public void setPlaceholder​(String arg)
        Description copied from interface: HasPlaceholder
        set place holder text.
        Specified by:
        setPlaceholder in interface HasPlaceholder
        Parameters:
        arg - place holder text displayed when value is empty
      • getValidationMessage

        public String getValidationMessage()
        Description copied from interface: HasValidity
        A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
        Specified by:
        getValidationMessage in interface HasValidity
        Returns:
        localized validation message
      • getValidity

        public elemental2.dom.ValidityState getValidity()
        Description copied from interface: HasValidity
        The validity states that this element is in.
        Specified by:
        getValidity in interface HasValidity
        Returns:
        ValidityState
      • checkValidity

        public boolean checkValidity()
        Description copied from interface: HasValidity
        Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints. In this case, it also fires an invalid event at the element. It returns true if the element is not a candidate for constraint validation, or if it satisfies its constraints.
        Specified by:
        checkValidity in interface HasValidity
        Returns:
        true if input is valid
      • isRequired

        public boolean isRequired()
        Description copied from interface: HasRequired
        Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
        Specified by:
        isRequired in interface HasRequired
        Returns:
        required true/false
      • setRequired

        public void setRequired​(boolean arg)
        Description copied from interface: HasRequired
        Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
        Specified by:
        setRequired in interface HasRequired
        Parameters:
        arg - required true/false