Class TextAreaModel.Line

java.lang.Object
dev.xichil.mvui.TextAreaModel.Line
Enclosing class:
TextAreaModel

public static final class TextAreaModel.Line extends Object
One line as drawn: text().substring(start, end), without its line break. Immutable.
  • Method Details

    • start

      public int start()
      Offset of the line's first character in TextAreaModel.text().
      Returns:
      the offset of the line's first character
    • end

      public int end()
      Offset just after the line's last character (before its '\n', if any).
      Returns:
      the offset just after the line's last character
    • wrapped

      public boolean wrapped()
      True if the text goes on in the next line without a line break (word wrap).
      Returns:
      true if the text goes on in the next line without a line break
    • text

      public String text()
      The line's text.
      Returns:
      the characters of the line, without its line break