-
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<org.jline.utils.AttributedString>getLines()Get the text lines as AttributedString list.java.lang.StringgetText()Get the text to display.-
Methods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
-
-
-
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
-
-