- java.lang.Object
-
- org.jline.prompt.impl.DefaultPrompt
-
- org.jline.prompt.impl.DefaultKeyPressPrompt
-
- All Implemented Interfaces:
KeyPressPrompt,Prompt
public class DefaultKeyPressPrompt extends DefaultPrompt implements KeyPressPrompt
Default implementation of KeyPressPrompt.
-
-
Field Summary
-
Fields inherited from class org.jline.prompt.impl.DefaultPrompt
message, name
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyPressPrompt(java.lang.String name, java.lang.String message, java.lang.String hint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHint()Get the hint text displayed to the user (e.g., "Press any key to continue...").-
Methods inherited from class org.jline.prompt.impl.DefaultPrompt
getFilter, getMessage, getName, getTransformer, setFilter, setTransformer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
-
-
-
Method Detail
-
getHint
public java.lang.String getHint()
Description copied from interface:KeyPressPromptGet the hint text displayed to the user (e.g., "Press any key to continue...").- Specified by:
getHintin interfaceKeyPressPrompt- Returns:
- the hint text
-
-