Package org.exolab.castor.util.dialog
Class ConsoleDialog
- java.lang.Object
-
- org.exolab.castor.util.dialog.ConsoleDialog
-
- All Implemented Interfaces:
Dialog
public class ConsoleDialog extends java.lang.Object implements Dialog
A simple utility class to handle command line dialogs- Author:
- Nathan Green, Keith Visco
-
-
Constructor Summary
Constructors Constructor Description ConsoleDialog()Creates a new Console Dialog
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfirm(java.lang.String message)Presents a confirmation prompt with the given message.charconfirm(java.lang.String message, java.lang.String values)Presents a confirmation prompt for values with the given messge.charconfirm(java.lang.String message, java.lang.String values, java.lang.String help)Presents a confirmation prompt for values with the given messgevoidnotify(java.lang.String message)Displays the given message to the user.
-
-
-
Method Detail
-
confirm
public boolean confirm(java.lang.String message)
Presents a confirmation prompt with the given message.
-
confirm
public char confirm(java.lang.String message, java.lang.String values)Presents a confirmation prompt for values with the given messge.
-
confirm
public char confirm(java.lang.String message, java.lang.String values, java.lang.String help)Presents a confirmation prompt for values with the given messge
-
-