Class InputMethodTextRun

    • Constructor Detail

      • InputMethodTextRun

        public InputMethodTextRun​(String text,
                                  InputMethodHighlight highlight)
        Constructs a single text run of an input method.
        Parameters:
        text - the text in the text run
        highlight - the highlighting of the text
        Since:
        JavaFX 8.0
    • Method Detail

      • getText

        public final String getText​()
        Gets the text in this run.
        Returns:
        the text in this run
      • getHighlight

        public final InputMethodHighlight getHighlight​()
        Gets the highlight used for displaying this text.
        Returns:
        the highlight used for displaying this text
      • toString

        public String toString​()
        Returns a string representation of this InputMethodTextRun object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this InputMethodTextRun object.