public abstract class PanelAutomationHelper extends 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(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.
|
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.
|
public PanelAutomationHelper()
public void emitNotification(String message)
AbstractUIHandler
emitNotification
in interface AbstractUIHandler
message
- The notification.public boolean emitWarning(String title, 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(String title, 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(String title, 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(String title, 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.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses