java.lang.Object
org.jline.prompt.impl.DefaultPrompt
org.jline.prompt.impl.DefaultTextPrompt
- All Implemented Interfaces:
Prompt,TextPrompt
Default implementation of TextPrompt interface.
This is now the native implementation that doesn't depend on console-ui.
-
Field Summary
Fields inherited from class org.jline.prompt.impl.DefaultPrompt
message, name -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTextPrompt(String name, String message, String text) DefaultTextPrompt(String name, String message, List<org.jline.utils.AttributedString> lines) -
Method Summary
Methods inherited from class org.jline.prompt.impl.DefaultPrompt
getFilter, getMessage, getName, getTransformer, setFilter, setTransformerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
Constructor Details
-
DefaultTextPrompt
-
DefaultTextPrompt
-
-
Method Details
-
getText
Description copied from interface:TextPromptGet the text to display.- Specified by:
getTextin interfaceTextPrompt- Returns:
- the text
-
getLines
Description copied from interface:TextPromptGet the text lines as AttributedString list. This is used for adding to the header like console-ui's Text.getLines().- Specified by:
getLinesin interfaceTextPrompt- Returns:
- the text lines
-