Package org.exolab.castor.util.dialog
Interface Dialog
- All Known Implementing Classes:
ConsoleDialog
public interface Dialog
A simple utility class to handle user interaction.
- Author:
- Nathan Green, Keith Visco
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Presents a confirmation prompt with the given message.char
Presents a confirmation prompt for values with the given message.char
Presents a confirmation prompt for values with the given messge.void
Simply displays a message to the user, no input is returned from the user.
-
Method Details
-
confirm
Presents a confirmation prompt with the given message.- Parameters:
message
- the confirmation prompt message to display- Returns:
- true if the user has selected a positive confirmation, otherwise false
-
confirm
-
confirm
Presents a confirmation prompt for values with the given messge.- Parameters:
message
- the confirmation prompt to displayvalues
- a list of valid characters to accepthelp
- a simple help message that can be associated with the message to give additional details about the prompt.- Returns:
- whatever character the user presses
-
notify
Simply displays a message to the user, no input is returned from the user.- Parameters:
message
- the message to display to the user
-