java.lang.Object
io.jmix.flowui.kit.component.codeeditor.autocomplete.Suggestion
All Implemented Interfaces:
Serializable

public class Suggestion extends Object implements Serializable
Class for single suggestion from Suggester for JmixCodeEditor component.
See Also:
  • Field Details

    • displayText

      protected String displayText
    • suggestionText

      protected String suggestionText
    • descriptionText

      protected String descriptionText
  • Constructor Details

    • Suggestion

      public Suggestion(String displayText, String suggestionText)
      Parameters:
      displayText - text displayed in the popup window for suggestions
      suggestionText - the value inserted into the editor if the suggestion is selected
    • Suggestion

      public Suggestion(String displayText, String suggestionText, @Nullable String descriptionText)
      Parameters:
      displayText - text displayed in the popup window for suggestions
      suggestionText - the value inserted into the editor if the suggestion is selected
      descriptionText - the hint text that appears next to the displayText in the popup window for suggestions
  • Method Details

    • getDisplayText

      public String getDisplayText()
      Returns:
      text displayed in the popup window for suggestions
    • getSuggestionText

      public String getSuggestionText()
      Returns:
      the value inserted into the editor if the suggestion is selected
    • getDescriptionText

      public String getDescriptionText()
      Returns:
      the hint text that appears next to the displayText in the popup window for suggestions