Class TextAssistContentProvider


  • public abstract class TextAssistContentProvider
    extends java.lang.Object
    This class is a content provider for the TextAssist widget. When the user types something, an instance returns an arraylist of proposition based on the typed text.
    • Constructor Detail

      • TextAssistContentProvider

        public TextAssistContentProvider()
    • Method Detail

      • getContent

        public abstract java.util.List<java.lang.String> getContent​(java.lang.String entry)
        Provides the content
        Parameters:
        entry - text typed by the user
        Returns:
        an array list of String that contains propositions for the entry typed by the user
      • setTextAssist

        protected void setTextAssist​(TextAssist textAssist)
        Parameters:
        textAssist - the textAssist to set
      • getMaxNumberOfLines

        protected int getMaxNumberOfLines()
        Returns:
        the max number of propositions.