public interface Prompt
| Modifier and Type | Interface and Description |
|---|---|
static class |
Prompt.Option
A prompt option.
|
static class |
Prompt.Options
Predefined options.
|
static class |
Prompt.Type
The prompt type.
|
| Modifier and Type | Method and Description |
|---|---|
Prompt.Option |
confirm(Prompt.Type type,
String message,
Prompt.Options options)
Displays a confirmation message.
|
Prompt.Option |
confirm(Prompt.Type type,
String message,
Prompt.Options options,
Prompt.Option defaultOption)
Displays a confirmation message.
|
Prompt.Option |
confirm(Prompt.Type type,
String title,
String message,
Prompt.Options options)
Displays a confirmation message.
|
Prompt.Option |
confirm(Prompt.Type type,
String title,
String message,
Prompt.Options options,
Prompt.Option defaultOption)
Displays a confirmation message.
|
void |
error(String message)
Displays an error message.
|
void |
error(String title,
String message)
Displays an error message.
|
void |
error(String title,
String message,
Throwable throwable)
Displays an error message.
|
void |
error(String message,
Throwable throwable)
Displays an error message.
|
void |
error(Throwable throwable)
Displays an error message.
|
void |
message(Prompt.Type type,
String message)
Displays a message.
|
void |
message(Prompt.Type type,
String title,
String message)
Displays a message.
|
void |
message(Prompt.Type type,
String title,
String message,
Throwable throwable)
Displays a message.
|
void |
message(Throwable throwable)
Displays a message.
|
void |
warn(String message)
Displays a warning message.
|
void |
warn(String title,
String message)
Displays a warning message.
|
void |
warn(Throwable throwable)
Displays a warning message.
|
void message(Throwable throwable)
throwable - the throwable for displaying detailsvoid message(Prompt.Type type, String message)
type - the type of the messagemessage - the message to displayvoid message(Prompt.Type type, String title, String message)
type - the type of the messagetitle - the message title. If null, the title will be determined from the typemessage - the message to displayvoid message(Prompt.Type type, String title, String message, Throwable throwable)
type - the type of the messagetitle - the message title. If null, the title will be determined from the typemessage - the message to displaythrowable - the throwable for displaying detailsvoid warn(Throwable throwable)
throwable - the throwable for displaying detailsvoid warn(String message)
message - the message to displayvoid warn(String title, String message)
title - the message title. May be nullmessage - the message to displayvoid error(String message)
message - the message to displayvoid error(Throwable throwable)
throwable - the throwable for displaying detailsvoid error(String message, Throwable throwable)
message - the message to displaythrowable - the throwable for displaying detailsvoid error(String title, String message)
title - the message title. May be nullmessage - the message displayvoid error(String title, String message, Throwable throwable)
title - the message title. May be nullmessage - the message displaythrowable - the throwable for displaying detailsPrompt.Option confirm(Prompt.Type type, String message, Prompt.Options options)
type - the type of the messagemessage - the messageoptions - the options which may be selectedPrompt.Option confirm(Prompt.Type type, String message, Prompt.Options options, Prompt.Option defaultOption)
type - the type of the messagemessage - the messageoptions - the options which may be selecteddefaultOption - the default option to selectPrompt.Option confirm(Prompt.Type type, String title, String message, Prompt.Options options)
type - the type of the messagetitle - the message title. May be nullmessage - the messageoptions - the options which may be selectedPrompt.Option confirm(Prompt.Type type, String title, String message, Prompt.Options options, Prompt.Option defaultOption)
type - the type of the messagetitle - the message title. May be nullmessage - the messageoptions - the options which may be selecteddefaultOption - the default option to selectCopyright © 2001–2025. All rights reserved.