Class Suggestion

java.lang.Object
io.jmix.ui.widget.addon.aceeditor.Suggestion

public class Suggestion extends Object
A single suggestion. Feel free to subclass.
  • Field Details

    • displayText

      protected final String displayText
    • descriptionText

      protected final String descriptionText
    • suggestionText

      protected final String suggestionText
    • startPosition

      protected final int startPosition
    • endPosition

      protected final int endPosition
  • Constructor Details

    • Suggestion

      public Suggestion(String displayText, String descriptionText)
      Parameters:
      displayText - the text shown in the popup list
      descriptionText - a longer description
    • Suggestion

      public Suggestion(String displayText, String descriptionText, String suggestionText)
      If suggestionText is "cat", the suggestion popup will stay there if user types "c" "ca" or "cat".
      Parameters:
      displayText - the text shown in the popup list
      descriptionText - a longer description
      suggestionText -
    • Suggestion

      public Suggestion(String displayText, String descriptionText, String suggestionText, int startPosition, int endPosition)
  • Method Details

    • asTransport

      public TransportSuggestion asTransport(int index)
    • getDisplayText

      public String getDisplayText()
    • getDescriptionText

      public String getDescriptionText()
    • getSuggestionText

      public String getSuggestionText()
    • getStartPosition

      public int getStartPosition()
    • getEndPosition

      public int getEndPosition()