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 AbstractUIProgressHandler
name
- The name of the overall action. Not used here.max
- The maximum value of the progress.public void stopAction()
stopAction
in interface AbstractUIProgressHandler
public void progress(int pos, java.lang.String message)
progress
in interface AbstractUIProgressHandler
pos
- The actual position.message
- The message.public void nextStep(java.lang.String step_name, int step_no, int no_of_substeps)
AbstractUIProgressHandler
nextStep
in interface AbstractUIProgressHandler
step_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 AbstractUIHandler
text
- public boolean emitWarning(java.lang.String title, java.lang.String text)
emitWarning
in interface AbstractUIHandler
text
- 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 AbstractUIHandler
error
- 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 AbstractUIHandler
title
- 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 AbstractUIHandler
title
- 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)