org.exolab.castor.builder.util
Class ConsoleDialog
java.lang.Object
org.exolab.castor.builder.util.ConsoleDialog
- Dialog
public class ConsoleDialog
extends java.lang.Object
A simple utility class to handle command line dialogs
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.
|
ConsoleDialog
public ConsoleDialog()
Creates a new Console Dialog
confirm
public boolean confirm(String message)
Presents a confirmation prompt with the given message.
- confirm in interface Dialog
- true if the user has selected a positive confirmation,
otherwise false
confirm
public char confirm(String message,
String values)
Presents a confirmation prompt for values with the
given messge.
- confirm in interface Dialog
message
- the confirmation prompt to displayvalues
- a list of valid characters to accept
- whatever character the user presses
confirm
public char confirm(String message,
String values,
String help)
Presents a confirmation prompt for values with the
given messge
- confirm in interface Dialog
message
- the confirmation prompt to displayvalues
- a list of valid characters to accepthelp
- a help message when the user presses '?'
- whatever character the user presses
notify
public void notify(String message)
Displays the given message to the user. No input is returned from
the user.
- notify in interface Dialog
message
- the message to display to the user
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com