edu.neu.ccs.gui
Class SimpleDialog

java.lang.Object
  extended byedu.neu.ccs.gui.SimpleDialog
All Implemented Interfaces:
JPTConstants, SwingConstants

public class SimpleDialog
extends Object
implements JPTConstants

Provides only static convenience methods for simple modal dialog box input.

Since:
1.0
Version:
2.2

Field Summary
 
Fields inherited from interface edu.neu.ccs.util.JPTConstants
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
SimpleDialog()
           
 
Method Summary
static boolean demandBoolean(String inputPrompt, String dialogTitle)
          Returns a boolean using the mandatory model of IO.
static boolean demandBoolean(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a boolean using the mandatory model of IO, with the given default value.
static boolean demandBoolean(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a boolean using the mandatory model of IO, with the given default value and input filter.
static byte demandByte(String inputPrompt, String dialogTitle)
          Returns a byte using the mandatory model of IO.
static byte demandByte(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a byte using the mandatory model of IO, with the given default value.
static byte demandByte(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a byte using the mandatory model of IO, with the given default value and input filter.
static char demandChar(String inputPrompt, String dialogTitle)
          Returns a char using the mandatory model of IO.
static char demandChar(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a char using the mandatory model of IO, with the given default value.
static char demandChar(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a char using the mandatory model of IO, with the given default value and input filter.
static double demandDouble(String inputPrompt, String dialogTitle)
          Returns a double using the mandatory model of IO.
static double demandDouble(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a double using the mandatory model of IO, with the given default value.
static double demandDouble(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a double using the mandatory model of IO, with the given default value and input filter.
static float demandFloat(String inputPrompt, String dialogTitle)
          Returns a float using the mandatory model of IO.
static float demandFloat(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a float using the mandatory model of IO, with the given default value.
static float demandFloat(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a float using the mandatory model of IO, with the given default value and input filter.
static int demandInt(String inputPrompt, String dialogTitle)
          Returns an int using the mandatory model of IO.
static int demandInt(String inputPrompt, String dialogTitle, String defaultValue)
          Returns an int using the mandatory model of IO, with the given default value.
static int demandInt(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns an int using the mandatory model of IO, with the given default value and input filter.
static long demandLong(String inputPrompt, String dialogTitle)
          Returns a long using the mandatory model of IO.
static long demandLong(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a long using the mandatory model of IO, with the given default value.
static long demandLong(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a long using the mandatory model of IO, with the given default value and input filter.
static Stringable demandObject(TypedView viewObject)
          Returns the object produced by the given input view using mandatory dialog box input.
static short demandShort(String inputPrompt, String dialogTitle)
          Returns a short using the mandatory model of IO.
static short demandShort(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a short using the mandatory model of IO, with the given default value.
static short demandShort(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a short using the mandatory model of IO, with the given default value and input filter.
static String demandString(String inputPrompt, String dialogTitle)
          Returns a String using the mandatory model of IO.
static String demandString(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a String using the mandatory model of IO, with the given default value.
static String demandString(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a String using the mandatory model of IO, with the given default value and input filter.
static boolean requestBoolean(String inputPrompt, String dialogTitle)
          Returns a boolean or throws an exception if the user cancels the operation.
static boolean requestBoolean(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a boolean or throws an exception if the user cancels the operation, with the given default value.
static boolean requestBoolean(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a boolean or throws an exception if the user cancels the operation, with the given default value.
static byte requestByte(String inputPrompt, String dialogTitle)
          Returns a byte or throws an exception if the user cancels the operation.
static byte requestByte(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a byte or throws an exception if the user cancels the operation, with the given default value.
static byte requestByte(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a byte or throws an exception if the user cancels the operation, with the given default value.
static char requestChar(String inputPrompt, String dialogTitle)
          Returns a char or throws an exception if the user cancels the operation.
static char requestChar(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a char or throws an exception if the user cancels the operation, with the given default value.
static char requestChar(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a char or throws an exception if the user cancels the operation, with the given default value.
static double requestDouble(String inputPrompt, String dialogTitle)
          Returns a double or throws an exception if the user cancels the operation.
static double requestDouble(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a double or throws an exception if the user cancels the operation, with the given default value.
static double requestDouble(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a double or throws an exception if the user cancels the operation, with the given default value.
static float requestFloat(String inputPrompt, String dialogTitle)
          Returns a float or throws an exception if the user cancels the operation.
static float requestFloat(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a float or throws an exception if the user cancels the operation, with the given default value.
static float requestFloat(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a float or throws an exception if the user cancels the operation, with the given default value.
static int requestInt(String inputPrompt, String dialogTitle)
          Returns an int or throws an exception if the user cancels the operation.
static int requestInt(String inputPrompt, String dialogTitle, String defaultValue)
          Returns an int or throws an exception if the user cancels the operation, with the given default value.
static int requestInt(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns an int or throws an exception if the user cancels the operation, with the given default value.
static long requestLong(String inputPrompt, String dialogTitle)
          Returns a long or throws an exception if the user cancels the operation.
static long requestLong(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a long or throws an exception if the user cancels the operation, with the given default value.
static long requestLong(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a long or throws an exception if the user cancels the operation, with the given default value.
static Stringable requestObject(TypedView viewObject)
          Returns the object produced by the given input view using optional dialog box input, or throws an exception if the operation is cancelled.
static short requestShort(String inputPrompt, String dialogTitle)
          Returns a short or throws an exception if the user cancels the operation.
static short requestShort(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a short or throws an exception if the user cancels the operation, with the given default value.
static short requestShort(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a short or throws an exception if the user cancels the operation, with the given default value.
static String requestString(String inputPrompt, String dialogTitle)
          Returns a String or throws an exception if the user cancels the operation.
static String requestString(String inputPrompt, String dialogTitle, String defaultValue)
          Returns a String or throws an exception if the user cancels the operation, with the given default value.
static String requestString(String inputPrompt, String dialogTitle, String defaultValue, StringableFilter filter)
          Returns a String or throws an exception if the user cancels the operation, with the given default value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDialog

public SimpleDialog()
Method Detail

demandInt

public static int demandInt(String inputPrompt,
                            String dialogTitle)
Returns an int using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandInt(String, String, String), demandInt(String, String, String, StringableFilter), requestInt(String, String), requestInt(String, String, String), requestInt(String, String, String, StringableFilter)

demandInt

public static int demandInt(String inputPrompt,
                            String dialogTitle,
                            String defaultValue)
Returns an int using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandInt(String, String), demandInt(String, String, String, StringableFilter), requestInt(String, String), requestInt(String, String, String), requestInt(String, String, String, StringableFilter)

demandInt

public static int demandInt(String inputPrompt,
                            String dialogTitle,
                            String defaultValue,
                            StringableFilter filter)
Returns an int using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandInt(String, String), demandInt(String, String, String), requestInt(String, String), requestInt(String, String, String), requestInt(String, String, String, StringableFilter)

requestInt

public static int requestInt(String inputPrompt,
                             String dialogTitle)
                      throws CancelledException
Returns an int or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestInt(String, String, String), requestInt(String, String, String, StringableFilter), demandInt(String, String), demandInt(String, String, String), demandInt(String, String, String, StringableFilter)

requestInt

public static int requestInt(String inputPrompt,
                             String dialogTitle,
                             String defaultValue)
                      throws CancelledException
Returns an int or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestInt(String, String), requestInt(String, String, String, StringableFilter), demandInt(String, String, String), demandInt(String, String), demandInt(String, String, String, StringableFilter)

requestInt

public static int requestInt(String inputPrompt,
                             String dialogTitle,
                             String defaultValue,
                             StringableFilter filter)
                      throws CancelledException
Returns an int or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestInt(String, String), requestInt(String, String, String), demandInt(String, String, String), demandInt(String, String), demandInt(String, String, String, StringableFilter)

demandByte

public static byte demandByte(String inputPrompt,
                              String dialogTitle)
Returns a byte using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandByte(String, String, String), demandByte(String, String, String, StringableFilter), requestByte(String, String), requestByte(String, String, String), requestByte(String, String, String, StringableFilter)

demandByte

public static byte demandByte(String inputPrompt,
                              String dialogTitle,
                              String defaultValue)
Returns a byte using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandByte(String, String), demandByte(String, String, String, StringableFilter), requestByte(String, String), requestByte(String, String, String), requestByte(String, String, String, StringableFilter)

demandByte

public static byte demandByte(String inputPrompt,
                              String dialogTitle,
                              String defaultValue,
                              StringableFilter filter)
Returns a byte using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandByte(String, String), demandByte(String, String, String), requestByte(String, String), requestByte(String, String, String), requestByte(String, String, String, StringableFilter)

requestByte

public static byte requestByte(String inputPrompt,
                               String dialogTitle)
                        throws CancelledException
Returns a byte or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestByte(String, String, String), requestByte(String, String, String, StringableFilter), demandByte(String, String), demandByte(String, String, String), demandByte(String, String, String, StringableFilter)

requestByte

public static byte requestByte(String inputPrompt,
                               String dialogTitle,
                               String defaultValue)
                        throws CancelledException
Returns a byte or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestByte(String, String), requestByte(String, String, String, StringableFilter), demandByte(String, String, String), demandByte(String, String), demandByte(String, String, String, StringableFilter)

requestByte

public static byte requestByte(String inputPrompt,
                               String dialogTitle,
                               String defaultValue,
                               StringableFilter filter)
                        throws CancelledException
Returns a byte or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestByte(String, String), requestByte(String, String, String), demandByte(String, String, String), demandByte(String, String), demandByte(String, String, String, StringableFilter)

demandShort

public static short demandShort(String inputPrompt,
                                String dialogTitle)
Returns a short using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandShort(String, String, String), demandShort(String, String, String, StringableFilter), requestShort(String, String), requestShort(String, String, String), requestShort(String, String, String, StringableFilter)

demandShort

public static short demandShort(String inputPrompt,
                                String dialogTitle,
                                String defaultValue)
Returns a short using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandShort(String, String), demandShort(String, String, String, StringableFilter), requestShort(String, String), requestShort(String, String, String), requestShort(String, String, String, StringableFilter)

demandShort

public static short demandShort(String inputPrompt,
                                String dialogTitle,
                                String defaultValue,
                                StringableFilter filter)
Returns a short using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandShort(String, String), demandShort(String, String, String), requestShort(String, String), requestShort(String, String, String), requestShort(String, String, String, StringableFilter)

requestShort

public static short requestShort(String inputPrompt,
                                 String dialogTitle)
                          throws CancelledException
Returns a short or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestShort(String, String, String), requestShort(String, String, String, StringableFilter), demandShort(String, String), demandShort(String, String, String), demandShort(String, String, String, StringableFilter)

requestShort

public static short requestShort(String inputPrompt,
                                 String dialogTitle,
                                 String defaultValue)
                          throws CancelledException
Returns a short or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestShort(String, String), requestShort(String, String, String, StringableFilter), demandShort(String, String, String), demandShort(String, String), demandShort(String, String, String, StringableFilter)

requestShort

public static short requestShort(String inputPrompt,
                                 String dialogTitle,
                                 String defaultValue,
                                 StringableFilter filter)
                          throws CancelledException
Returns a short or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestShort(String, String), requestShort(String, String, String), demandShort(String, String, String), demandShort(String, String), demandShort(String, String, String, StringableFilter)

demandLong

public static long demandLong(String inputPrompt,
                              String dialogTitle)
Returns a long using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandLong(String, String, String), demandLong(String, String, String, StringableFilter), requestLong(String, String), requestLong(String, String, String), requestLong(String, String, String, StringableFilter)

demandLong

public static long demandLong(String inputPrompt,
                              String dialogTitle,
                              String defaultValue)
Returns a long using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandLong(String, String), demandLong(String, String, String, StringableFilter), requestLong(String, String), requestLong(String, String, String), requestLong(String, String, String, StringableFilter)

demandLong

public static long demandLong(String inputPrompt,
                              String dialogTitle,
                              String defaultValue,
                              StringableFilter filter)
Returns a long using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandLong(String, String), demandLong(String, String, String), requestLong(String, String), requestLong(String, String, String), requestLong(String, String, String, StringableFilter)

requestLong

public static long requestLong(String inputPrompt,
                               String dialogTitle)
                        throws CancelledException
Returns a long or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestLong(String, String, String), requestLong(String, String, String, StringableFilter), demandLong(String, String), demandLong(String, String, String), demandLong(String, String, String, StringableFilter)

requestLong

public static long requestLong(String inputPrompt,
                               String dialogTitle,
                               String defaultValue)
                        throws CancelledException
Returns a long or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestLong(String, String), requestLong(String, String, String, StringableFilter), demandLong(String, String, String), demandLong(String, String), demandLong(String, String, String, StringableFilter)

requestLong

public static long requestLong(String inputPrompt,
                               String dialogTitle,
                               String defaultValue,
                               StringableFilter filter)
                        throws CancelledException
Returns a long or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestLong(String, String), requestLong(String, String, String), demandLong(String, String, String), demandLong(String, String), demandLong(String, String, String, StringableFilter)

demandDouble

public static double demandDouble(String inputPrompt,
                                  String dialogTitle)
Returns a double using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandDouble(String, String, String), demandDouble(String, String, String, StringableFilter), requestDouble(String, String), requestDouble(String, String, String), requestDouble(String, String, String, StringableFilter)

demandDouble

public static double demandDouble(String inputPrompt,
                                  String dialogTitle,
                                  String defaultValue)
Returns a double using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandDouble(String, String), demandDouble(String, String, String, StringableFilter), requestDouble(String, String), requestDouble(String, String, String), requestDouble(String, String, String, StringableFilter)

demandDouble

public static double demandDouble(String inputPrompt,
                                  String dialogTitle,
                                  String defaultValue,
                                  StringableFilter filter)
Returns a double using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandDouble(String, String), demandDouble(String, String, String), requestDouble(String, String), requestDouble(String, String, String), requestDouble(String, String, String, StringableFilter)

requestDouble

public static double requestDouble(String inputPrompt,
                                   String dialogTitle)
                            throws CancelledException
Returns a double or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestDouble(String, String, String), requestDouble(String, String, String, StringableFilter), demandDouble(String, String), demandDouble(String, String, String), demandDouble(String, String, String, StringableFilter)

requestDouble

public static double requestDouble(String inputPrompt,
                                   String dialogTitle,
                                   String defaultValue)
                            throws CancelledException
Returns a double or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestDouble(String, String), requestDouble(String, String, String, StringableFilter), demandDouble(String, String, String), demandDouble(String, String), demandDouble(String, String, String, StringableFilter)

requestDouble

public static double requestDouble(String inputPrompt,
                                   String dialogTitle,
                                   String defaultValue,
                                   StringableFilter filter)
                            throws CancelledException
Returns a double or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestDouble(String, String), requestDouble(String, String, String), demandDouble(String, String, String), demandDouble(String, String), demandDouble(String, String, String, StringableFilter)

demandFloat

public static float demandFloat(String inputPrompt,
                                String dialogTitle)
Returns a float using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandFloat(String, String, String), demandFloat(String, String, String, StringableFilter), requestFloat(String, String), requestFloat(String, String, String), requestFloat(String, String, String, StringableFilter)

demandFloat

public static float demandFloat(String inputPrompt,
                                String dialogTitle,
                                String defaultValue)
Returns a float using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandFloat(String, String), demandFloat(String, String, String, StringableFilter), requestFloat(String, String), requestFloat(String, String, String), requestFloat(String, String, String, StringableFilter)

demandFloat

public static float demandFloat(String inputPrompt,
                                String dialogTitle,
                                String defaultValue,
                                StringableFilter filter)
Returns a float using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandFloat(String, String), demandFloat(String, String, String), requestFloat(String, String), requestFloat(String, String, String), requestFloat(String, String, String, StringableFilter)

requestFloat

public static float requestFloat(String inputPrompt,
                                 String dialogTitle)
                          throws CancelledException
Returns a float or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestFloat(String, String, String), requestFloat(String, String, String, StringableFilter), demandFloat(String, String), demandFloat(String, String, String), demandFloat(String, String, String, StringableFilter)

requestFloat

public static float requestFloat(String inputPrompt,
                                 String dialogTitle,
                                 String defaultValue)
                          throws CancelledException
Returns a float or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestFloat(String, String), requestFloat(String, String, String, StringableFilter), demandFloat(String, String, String), demandFloat(String, String), demandFloat(String, String, String, StringableFilter)

requestFloat

public static float requestFloat(String inputPrompt,
                                 String dialogTitle,
                                 String defaultValue,
                                 StringableFilter filter)
                          throws CancelledException
Returns a float or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestFloat(String, String), requestFloat(String, String, String), demandFloat(String, String, String), demandFloat(String, String), demandFloat(String, String, String, StringableFilter)

demandChar

public static char demandChar(String inputPrompt,
                              String dialogTitle)
Returns a char using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandChar(String, String, String), demandChar(String, String, String, StringableFilter), requestChar(String, String), requestChar(String, String, String), requestChar(String, String, String, StringableFilter)

demandChar

public static char demandChar(String inputPrompt,
                              String dialogTitle,
                              String defaultValue)
Returns a char using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandChar(String, String), demandChar(String, String, String, StringableFilter), requestChar(String, String), requestChar(String, String, String), requestChar(String, String, String, StringableFilter)

demandChar

public static char demandChar(String inputPrompt,
                              String dialogTitle,
                              String defaultValue,
                              StringableFilter filter)
Returns a char using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandChar(String, String), demandChar(String, String, String), requestChar(String, String), requestChar(String, String, String), requestChar(String, String, String, StringableFilter)

requestChar

public static char requestChar(String inputPrompt,
                               String dialogTitle)
                        throws CancelledException
Returns a char or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestChar(String, String, String), requestChar(String, String, String, StringableFilter), demandChar(String, String), demandChar(String, String, String), demandChar(String, String, String, StringableFilter)

requestChar

public static char requestChar(String inputPrompt,
                               String dialogTitle,
                               String defaultValue)
                        throws CancelledException
Returns a char or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestChar(String, String), requestChar(String, String, String, StringableFilter), demandChar(String, String, String), demandChar(String, String), demandChar(String, String, String, StringableFilter)

requestChar

public static char requestChar(String inputPrompt,
                               String dialogTitle,
                               String defaultValue,
                               StringableFilter filter)
                        throws CancelledException
Returns a char or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestChar(String, String), requestChar(String, String, String), demandChar(String, String, String), demandChar(String, String), demandChar(String, String, String, StringableFilter)

demandBoolean

public static boolean demandBoolean(String inputPrompt,
                                    String dialogTitle)
Returns a boolean using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandBoolean(String, String, String), demandBoolean(String, String, String, StringableFilter), requestBoolean(String, String), requestBoolean(String, String, String), requestBoolean(String, String, String, StringableFilter)

demandBoolean

public static boolean demandBoolean(String inputPrompt,
                                    String dialogTitle,
                                    String defaultValue)
Returns a boolean using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandBoolean(String, String), demandBoolean(String, String, String, StringableFilter), requestBoolean(String, String), requestBoolean(String, String, String), requestBoolean(String, String, String, StringableFilter)

demandBoolean

public static boolean demandBoolean(String inputPrompt,
                                    String dialogTitle,
                                    String defaultValue,
                                    StringableFilter filter)
Returns a boolean using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandBoolean(String, String), demandBoolean(String, String, String), requestBoolean(String, String), requestBoolean(String, String, String), requestBoolean(String, String, String, StringableFilter)

requestBoolean

public static boolean requestBoolean(String inputPrompt,
                                     String dialogTitle)
                              throws CancelledException
Returns a boolean or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestBoolean(String, String, String), requestBoolean(String, String, String, StringableFilter), demandBoolean(String, String), demandBoolean(String, String, String), demandBoolean(String, String, String, StringableFilter)

requestBoolean

public static boolean requestBoolean(String inputPrompt,
                                     String dialogTitle,
                                     String defaultValue)
                              throws CancelledException
Returns a boolean or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestBoolean(String, String), requestBoolean(String, String, String, StringableFilter), demandBoolean(String, String, String), demandBoolean(String, String), demandBoolean(String, String, String, StringableFilter)

requestBoolean

public static boolean requestBoolean(String inputPrompt,
                                     String dialogTitle,
                                     String defaultValue,
                                     StringableFilter filter)
                              throws CancelledException
Returns a boolean or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestBoolean(String, String), requestBoolean(String, String, String), demandBoolean(String, String, String), demandBoolean(String, String), demandBoolean(String, String, String, StringableFilter)

demandString

public static String demandString(String inputPrompt,
                                  String dialogTitle)
Returns a String using the mandatory model of IO.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
See Also:
demandString(String, String, String), demandString(String, String, String, StringableFilter), requestString(String, String), requestString(String, String, String), requestString(String, String, String, StringableFilter)

demandString

public static String demandString(String inputPrompt,
                                  String dialogTitle,
                                  String defaultValue)
Returns a String using the mandatory model of IO, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
See Also:
demandString(String, String), demandString(String, String, String, StringableFilter), requestString(String, String), requestString(String, String, String), requestString(String, String, String, StringableFilter)

demandString

public static String demandString(String inputPrompt,
                                  String dialogTitle,
                                  String defaultValue,
                                  StringableFilter filter)
Returns a String using the mandatory model of IO, with the given default value and input filter. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
See Also:
demandString(String, String), demandString(String, String, String), requestString(String, String), requestString(String, String, String), requestString(String, String, String, StringableFilter)

requestString

public static String requestString(String inputPrompt,
                                   String dialogTitle)
                            throws CancelledException
Returns a String or throws an exception if the user cancels the operation.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestString(String, String, String), requestString(String, String, String, StringableFilter), demandString(String, String), demandString(String, String, String), demandString(String, String, String, StringableFilter)

requestString

public static String requestString(String inputPrompt,
                                   String dialogTitle,
                                   String defaultValue)
                            throws CancelledException
Returns a String or throws an exception if the user cancels the operation, with the given default value.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestString(String, String), requestString(String, String, String, StringableFilter), demandString(String, String, String), demandString(String, String), demandString(String, String, String, StringableFilter)

requestString

public static String requestString(String inputPrompt,
                                   String dialogTitle,
                                   String defaultValue,
                                   StringableFilter filter)
                            throws CancelledException
Returns a String or throws an exception if the user cancels the operation, with the given default value. If the given filter is null, no input filter is used.

Parameters:
inputPrompt - the prompt for the text field
dialogTitle - the title of the dialog box
defaultValue - the default value for the input
filter - the input filter to be used
Throws:
CancelledException - if the user cancels the input operation
See Also:
requestString(String, String), requestString(String, String, String), demandString(String, String, String), demandString(String, String), demandString(String, String, String, StringableFilter)

demandObject

public static Stringable demandObject(TypedView viewObject)
Returns the object produced by the given input view using mandatory dialog box input.

Parameters:
viewObject - the view to use for the input operation

requestObject

public static Stringable requestObject(TypedView viewObject)
                                throws CancelledException
Returns the object produced by the given input view using optional dialog box input, or throws an exception if the operation is cancelled.

Parameters:
viewObject - the view to use for the input operation
Throws:
CancelledException - if the user cancels the input operation