|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.installer.PanelAutomationHelper
public abstract class PanelAutomationHelper
Abstract class implementing basic functions needed by all panel automation helpers.
Field Summary |
---|
Fields inherited from interface com.izforge.izpack.util.AbstractUIHandler |
---|
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL |
Constructor Summary | |
---|---|
PanelAutomationHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PanelAutomationHelper()
Method Detail |
---|
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_CANCEL
public 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |