|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.util.ConsoleDialog
public class ConsoleDialog
A simple utility class to handle command line dialogs
Constructor Summary | |
---|---|
ConsoleDialog()
Creates a new Console Dialog |
Method Summary | |
---|---|
boolean |
confirm(java.lang.String message)
Presents a confirmation prompt with the given message. |
char |
confirm(java.lang.String message,
java.lang.String values)
Presents a confirmation prompt for values with the given messge. |
char |
confirm(java.lang.String message,
java.lang.String values,
java.lang.String help)
Presents a confirmation prompt for values with the given messge |
void |
notify(java.lang.String message)
Displays the given message to the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleDialog()
Method Detail |
---|
public boolean confirm(java.lang.String message)
confirm
in interface Dialog
message,
- the confirmation prompt message to display
public char confirm(java.lang.String message, java.lang.String values)
confirm
in interface Dialog
message
- the confirmation prompt to displayvalues
- a list of valid characters to accept
public char confirm(java.lang.String message, java.lang.String values, java.lang.String help)
confirm
in interface Dialog
message
- the confirmation prompt to displayvalues
- a list of valid characters to accepthelp
- a help message when the user presses '?'
public void notify(java.lang.String message)
notify
in interface Dialog
message
- the message to display to the user
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |