public interface AbstractUIHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
ANSWER_CANCEL |
static int |
ANSWER_NO |
static int |
ANSWER_YES |
static int |
CHOICES_YES_NO |
| Modifier and Type | Method and Description |
|---|---|
int |
askQuestion(String title,
String question,
int choices)
Ask the user a question.
|
int |
askQuestion(String title,
String question,
int choices,
int default_choice)
Ask the user a question.
|
int |
askWarningQuestion(String title,
String question,
int choices,
int default_choice)
Ask the use a question in the form of a warning.
|
void |
emitError(String title,
String message)
Notify the user of some error.
|
void |
emitNotification(String message)
Notify the user about something.
|
boolean |
emitWarning(String title,
String message)
Warn the user about something.
|
static final int ANSWER_CANCEL
static final int ANSWER_YES
static final int ANSWER_NO
static final int CHOICES_YES_NO
void emitNotification(String message)
message - The notification.boolean emitWarning(String title, String message)
title - The message title (used for dialog name, might not be displayed)message - The warning message.void emitError(String title, String message)
title - The message title (used for dialog name, might not be displayed)message - The error message.int askQuestion(String title, String question, int choices)
title - The title of the question (useful for dialogs). Might be null.question - The question.choices - The set of choices to present. Either CHOICES_YES_NO or CHOICES_YES_NO_CANCELint askQuestion(String title, String question, int choices, int default_choice)
title - The title of the question (useful for dialogs). Might be null.question - The question.choices - The set of choices to present. Either CHOICES_YES_NO or CHOICES_YES_NO_CANCELdefault_choice - The default choice. One of ANSWER_CANCEL, ANSWER_YES or ANSWER_NO.int askWarningQuestion(String title, String question, int choices, int default_choice)
title - The title of the question (useful for dialogs). Might be null.question - The question.choices - The set of choices to present. Either CHOICES_YES_NO or CHOICES_YES_NO_CANCELdefault_choice - The default choice. One of ANSWER_CANCEL, ANSWER_YES or ANSWER_NO.Copyright © 2001–2025. All rights reserved.