private final class UninstallerFrame.DestroyerHandler extends Object implements AbstractUIProgressHandler
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL
Modifier | Constructor and Description |
---|---|
private |
DestroyerHandler() |
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 error)
The destroyer encountered an error.
|
void |
emitNotification(String text)
Output a notification.
|
boolean |
emitWarning(String title,
String text)
Output a warning.
|
void |
nextStep(String step_name,
int step_no,
int no_of_substeps)
The next step starts.
|
void |
progress(int pos,
String message)
The destroyer progresses.
|
void |
startAction(String name,
int max)
The destroyer starts.
|
void |
stopAction()
The destroyer stops.
|
private DestroyerHandler()
public void startAction(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, String message)
progress
in interface AbstractUIProgressHandler
pos
- The actual position.message
- The message.public void nextStep(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(String text)
emitNotification
in interface AbstractUIHandler
text
- public boolean emitWarning(String title, String text)
emitWarning
in interface AbstractUIHandler
text
- title
- The message title (used for dialog name, might not be displayed)public void emitError(String title, 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(String title, 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(String title, 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)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses