private final class UninstallerFrame.DestroyerHandler extends java.lang.Object implements AbstractUIProgressHandler
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL| Modifier | Constructor and Description |
|---|---|
private |
UninstallerFrame.DestroyerHandler() |
| 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 error)
The destroyer encountered an error.
|
void |
emitNotification(java.lang.String text)
Output a notification.
|
boolean |
emitWarning(java.lang.String title,
java.lang.String text)
Output a warning.
|
void |
nextStep(java.lang.String step_name,
int step_no,
int no_of_substeps)
The next step starts.
|
void |
progress(int pos,
java.lang.String message)
The destroyer progresses.
|
void |
startAction(java.lang.String name,
int max)
The destroyer starts.
|
void |
stopAction()
The destroyer stops.
|
public void startAction(java.lang.String name,
int max)
startAction in interface AbstractUIProgressHandlername - The name of the overall action. Not used here.max - The maximum value of the progress.public void stopAction()
stopAction in interface AbstractUIProgressHandlerpublic void progress(int pos,
java.lang.String message)
progress in interface AbstractUIProgressHandlerpos - The actual position.message - The message.public void nextStep(java.lang.String step_name,
int step_no,
int no_of_substeps)
AbstractUIProgressHandlernextStep in interface AbstractUIProgressHandlerstep_name - The name of the step which starts now.step_no - The number of the step.no_of_substeps - The number of sub-steps this step consists of.public void emitNotification(java.lang.String text)
emitNotification in interface AbstractUIHandlertext - public boolean emitWarning(java.lang.String title,
java.lang.String text)
emitWarning in interface AbstractUIHandlertext - title - The message title (used for dialog name, might not be displayed)public void emitError(java.lang.String title,
java.lang.String error)
emitError in interface AbstractUIHandlererror - The error message.title - The message title (used for dialog name, might not be displayed)public int askQuestion(java.lang.String title,
java.lang.String question,
int choices)
askQuestion in interface AbstractUIHandlertitle - Message title.question - The question.choices - The set of choices to present.AbstractUIHandler.askQuestion(String, String, int)public int askQuestion(java.lang.String title,
java.lang.String question,
int choices,
int default_choice)
askQuestion in interface AbstractUIHandlertitle - Message title.question - The question.choices - The set of choices to present.default_choice - The default choice. (-1 = no default choice)AbstractUIHandler.askQuestion(String, String, int, int)