|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.util.dialog.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(String message)
Presents a confirmation prompt with the given message. |
char |
confirm(String message,
String values)
Presents a confirmation prompt for values with the given messge. |
char |
confirm(String message,
String values,
String help)
Presents a confirmation prompt for values with the given messge |
void |
notify(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(String message)
confirm in interface Dialogmessage - the confirmation prompt message to display
public char confirm(String message,
String values)
confirm in interface Dialogmessage - the confirmation prompt to displayvalues - a list of valid characters to accept
public char confirm(String message,
String values,
String help)
confirm in interface Dialogmessage - the confirmation prompt to displayvalues - a list of valid characters to accepthelp - a help message when the user presses '?'
public void notify(String message)
notify in interface Dialogmessage - the message to display to the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||