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)
AbstractUIHandleremitNotification in interface AbstractUIHandlermessage - The notification.public boolean emitWarning(java.lang.String title,
java.lang.String message)
AbstractUIHandleremitWarning in interface AbstractUIHandlertitle - 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)
AbstractUIHandleremitError in interface AbstractUIHandlertitle - 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)
AbstractUIHandleraskQuestion in interface AbstractUIHandlertitle - 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)
AbstractUIHandleraskQuestion in interface AbstractUIHandlertitle - 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.