Class AutoCompletePopup<T>

All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class AutoCompletePopup<T> extends PopupControl
The auto-complete-popup provides an list of available suggestions in order to complete current user input.
  • Property Details

  • Field Details

  • Constructor Details

    • AutoCompletePopup

      public AutoCompletePopup()
      Creates a new AutoCompletePopup
  • Method Details

    • getSuggestions

      public ObservableList<T> getSuggestions()
      Get the suggestions presented by this AutoCompletePopup
      Returns:
    • show

      public void show(Node node)
      Show this popup right below the given Node
      Parameters:
      node -
    • setConverter

      public void setConverter(StringConverter<T> converter)
      Set the string converter used to turn a generic suggestion into a string
    • getConverter

      public StringConverter<T> getConverter()
      Get the string converter used to turn a generic suggestion into a string
    • setVisibleRowCount

      public final void setVisibleRowCount(int value)
      Sets the value of the property visibleRowCount.
      Property description:
      The maximum number of rows to be visible in the popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.
    • getVisibleRowCount

      public final int getVisibleRowCount()
      Gets the value of the property visibleRowCount.
      Property description:
      The maximum number of rows to be visible in the popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.
    • visibleRowCountProperty

      public final IntegerProperty visibleRowCountProperty()
      The maximum number of rows to be visible in the popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.
      See Also:
    • onSuggestionProperty

      public final ObjectProperty<EventHandler<AutoCompletePopup.SuggestionEvent<T>>> onSuggestionProperty()
      * Properties * *
      See Also:
    • setOnSuggestion

      public final void setOnSuggestion(EventHandler<AutoCompletePopup.SuggestionEvent<T>> value)
      Sets the value of the property onSuggestion.
      Property description:
      * Properties * *
    • getOnSuggestion

      public final EventHandler<AutoCompletePopup.SuggestionEvent<T>> getOnSuggestion()
      Gets the value of the property onSuggestion.
      Property description:
      * Properties * *
    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class PopupControl