|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.uninstaller.UninstallerConsole.DestroyerHandler
private final class UninstallerConsole.DestroyerHandler
The destroyer handler.
This class also implements the InstallListener because the FileExecutor needs it. TODO: get rid of the InstallListener - implement generic Listener
Field Summary | |
---|---|
private int |
AUTO_ANSWER_MODE
|
Fields inherited from interface com.izforge.izpack.util.AbstractUIHandler |
---|
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO, CHOICES_YES_NO_CANCEL |
Constructor Summary | |
---|---|
private |
UninstallerConsole.DestroyerHandler()
|
Method Summary | |
---|---|
private boolean |
askOKCancel(java.lang.String question,
int defaultchoice)
|
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. |
private int |
askYesNo(java.lang.String question,
int defaultchoice)
|
private int |
askYesNoCancel(java.lang.String question,
int defaultchoice)
|
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. |
private void |
out(java.lang.String str)
|
void |
progress(int pos,
java.lang.String message)
The destroyer progresses. |
private java.lang.String |
read()
|
private java.lang.String |
readln()
|
void |
setSubStepNo(int no_of_substeps)
Set the number of substeps. |
void |
startAction(java.lang.String name,
int max)
The destroyer starts. |
void |
stopAction()
The destroyer stops. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int AUTO_ANSWER_MODE
Constructor Detail |
---|
private UninstallerConsole.DestroyerHandler()
Method Detail |
---|
private void out(java.lang.String str)
private boolean askOKCancel(java.lang.String question, int defaultchoice)
private int askYesNoCancel(java.lang.String question, int defaultchoice)
private int askYesNo(java.lang.String question, int defaultchoice)
private java.lang.String read() throws java.lang.Exception
java.lang.Exception
private java.lang.String readln() throws java.lang.Exception
java.lang.Exception
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 setSubStepNo(int no_of_substeps)
AbstractUIProgressHandler
setSubStepNo
in interface AbstractUIProgressHandler
no_of_substeps
- The number of substeps.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |