public abstract class PanelAutomationHelper extends java.lang.Object implements AbstractUIHandler
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL
Constructor and Description |
---|
PanelAutomationHelper() |
Modifier and Type | Method and Description |
---|---|
int |
askQuestion(java.lang.String title,
java.lang.String question,
int choices)
Ask the user a question.
|
int |
askQuestion(java.lang.String title,
java.lang.String question,
int choices,
int default_choice)
Ask the user a question.
|
void |
emitError(java.lang.String title,
java.lang.String message)
Notify the user of some error.
|
void |
emitNotification(java.lang.String message)
Notify the user about something.
|
boolean |
emitWarning(java.lang.String title,
java.lang.String message)
Warn the user about something.
|
public void emitNotification(java.lang.String message)
AbstractUIHandler
emitNotification
in interface AbstractUIHandler
message
- The notification.public boolean emitWarning(java.lang.String title, java.lang.String message)
AbstractUIHandler
emitWarning
in interface AbstractUIHandler
title
- The message title (used for dialog name, might not be displayed)message
- The warning message.public void emitError(java.lang.String title, java.lang.String message)
AbstractUIHandler
emitError
in interface AbstractUIHandler
title
- The message title (used for dialog name, might not be displayed)message
- The error message.public int askQuestion(java.lang.String title, java.lang.String question, int choices)
AbstractUIHandler
askQuestion
in interface AbstractUIHandler
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_CANCELpublic int askQuestion(java.lang.String title, java.lang.String question, int choices, int default_choice)
AbstractUIHandler
askQuestion
in interface AbstractUIHandler
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.