| com.izforge.izpack.util.AbstractUIHandler
All known Subclasses: com.izforge.izpack.installer.PanelAutomationHelper, com.izforge.izpack.installer.IzPanel,
AbstractUIHandler | public interface AbstractUIHandler (Code) | | This interface describes basic functionality neccessary for user interaction.
All methods or functions which perform work and need to notify or ask the user use a listener for
such purposes. This way, we can separate UI from function.
|
Method Summary | |
public int | askQuestion(String title, String question, int choices) Ask the user a question.
Parameters: title - The title of the question (useful for dialogs). | public int | askQuestion(String title, String question, int choices, int default_choice) Ask the user a question.
Parameters: title - The title of the question (useful for dialogs). | public void | emitError(String title, String message) Notify the user of some error. | public void | emitNotification(String message) Notify the user about something. | public boolean | emitWarning(String title, String message) Warn the user about something.
Parameters: title - The message title (used for dialog name, might not be displayed) Parameters: message - The warning message. |
ANSWER_CANCEL | final public static int ANSWER_CANCEL(Code) | | |
ANSWER_NO | final public static int ANSWER_NO(Code) | | |
ANSWER_YES | final public static int ANSWER_YES(Code) | | |
CHOICES_YES_NO | final public static int CHOICES_YES_NO(Code) | | |
CHOICES_YES_NO_CANCEL | final public static int CHOICES_YES_NO_CANCEL(Code) | | |
askQuestion | public int askQuestion(String title, String question, int choices)(Code) | | Ask the user a question.
Parameters: title - The title of the question (useful for dialogs). Might be null. Parameters: question - The question. Parameters: choices - The set of choices to present. Either CHOICES_YES_NO or CHOICES_YES_NO_CANCEL The user's choice. (ANSWER_CANCEL, ANSWER_YES or ANSWER_NO) |
askQuestion | public int askQuestion(String title, String question, int choices, int default_choice)(Code) | | Ask the user a question.
Parameters: title - The title of the question (useful for dialogs). Might be null. Parameters: question - The question. Parameters: choices - The set of choices to present. Either CHOICES_YES_NO or CHOICES_YES_NO_CANCEL Parameters: default_choice - The default choice. One of ANSWER_CANCEL, ANSWER_YES or ANSWER_NO. The user's choice. (ANSWER_CANCEL, ANSWER_YES or ANSWER_NO) |
emitError | public void emitError(String title, String message)(Code) | | Notify the user of some error.
Parameters: title - The message title (used for dialog name, might not be displayed) Parameters: message - The error message. |
emitNotification | public void emitNotification(String message)(Code) | | Notify the user about something.
The difference between notification and warning is that a notification should not need user
interaction and can savely be ignored.
Parameters: message - The notification. |
emitWarning | public boolean emitWarning(String title, String message)(Code) | | Warn the user about something.
Parameters: title - The message title (used for dialog name, might not be displayed) Parameters: message - The warning message. true if the user decided not to continue |
|
|