Interface TextPrompt

  • All Superinterfaces:
    Prompt
    All Known Implementing Classes:
    DefaultTextPrompt

    public interface TextPrompt
    extends Prompt
    Interface for text prompts. A text prompt displays text to the user without requiring input.
    • Method Detail

      • getText

        java.lang.String getText()
        Get the text to display.
        Returns:
        the text
      • getLines

        java.util.List<org.jline.utils.AttributedString> getLines()
        Get the text lines as AttributedString list. This is used for adding to the header like console-ui's Text.getLines().
        Returns:
        the text lines