gui
Class In

java.lang.Object
  extended by gui.In

public final class In
extends java.lang.Object


Method Summary
static boolean alert(java.lang.String messageString)
          Present the user with a modal dialog containing a message
static boolean getBoolean(java.lang.String messageString)
          Present the user with a modal dialog, prompting the user for a yes or no response.
static java.lang.Object getChoice(java.lang.Object[] options, java.lang.String message, java.lang.String title)
          Present the user with a modal dialog that
static void getChoiceTest()
           
static java.lang.Class getClassFileUser()
           
static java.lang.Class getClassFromUser()
           
static java.awt.Color getColor()
          Present the user with a modal Dialog prompting for a color.
static java.util.Date getDate()
           
static double getDouble(java.lang.Object o)
           
static float getFloat(java.lang.Object o)
          Prompt the user for a floating point number
static float getFloat(java.lang.String prompt, float lo, float hi)
          Prompt the user for an float that is <= the lo value and >= the high value.
static int getInt(java.lang.Object o)
          Prompt the user with a modal dialog for an int.
static int getInt(java.lang.String prompt, int lo, int hi)
          Prompt the user for an int that is <= the lo value and >= the high value.
static java.lang.String getLawyerType()
           
static java.lang.String[] getLawyerTypes()
           
static java.lang.String[] getLawyerTypesRefNum()
           
static java.lang.String[] getMonths()
           
static java.lang.String getPassword(java.lang.String message)
          Prompt the user for a password.
static java.awt.Rectangle getRectangle(java.lang.String s)
           
static java.lang.String getState()
          return a two-letter state abbreviation for the USA.
static java.lang.String getState2()
          return a two-letter state abbreviation for the USA.
static int getStateNum(java.lang.String state)
           
static java.lang.String[] getStates()
           
static java.lang.String[] getStates2()
           
static java.lang.String getString(java.lang.Object o)
          Prompt the user for a string.
static java.net.URL getUrl(java.lang.String prompt)
           
static void main(java.lang.String[] args)
           
static boolean message(java.lang.Exception e)
          Use a modal dialog to display an exception, with an error icon.
static boolean message(java.lang.Object messageString)
          Present the user with a modal dialog containing a message
static void rangeTest()
           
static void testAtomicInput()
           
static void testGetColor()
           
static void testGetString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

testAtomicInput

public static void testAtomicInput()

getString

public static java.lang.String getString(java.lang.Object o)
Prompt the user for a string. Use a modal dialog.

Parameters:
o - prompt for the user
Returns:
a string

getPassword

public static java.lang.String getPassword(java.lang.String message)
Prompt the user for a password. Do not echo the input. Use a modal dialog box.

Returns:
A string (not the typical array of char).

message

public static boolean message(java.lang.Exception e)
Use a modal dialog to display an exception, with an error icon.

Parameters:
e - the exception

testGetColor

public static void testGetColor()

getColor

public static java.awt.Color getColor()
Present the user with a modal Dialog prompting for a color.

Returns:
color upon user selection.

message

public static boolean message(java.lang.Object messageString)
Present the user with a modal dialog containing a message


alert

public static boolean alert(java.lang.String messageString)
Present the user with a modal dialog containing a message


getChoiceTest

public static void getChoiceTest()

getChoice

public static java.lang.Object getChoice(java.lang.Object[] options,
                                         java.lang.String message,
                                         java.lang.String title)
Present the user with a modal dialog that

Parameters:
options - an array of options to select from
message - the message to the user
title - the title of the dialog
Returns:
the selected option

getBoolean

public static boolean getBoolean(java.lang.String messageString)
Present the user with a modal dialog, prompting the user for a yes or no response.

Parameters:
messageString - The prompt
Returns:
true is user selects yes.

getFloat

public static float getFloat(java.lang.Object o)
Prompt the user for a floating point number

Parameters:
o - prompt for the float string
Returns:
a parsed primative float

getFloat

public static float getFloat(java.lang.String prompt,
                             float lo,
                             float hi)
Prompt the user for an float that is <= the lo value and >= the high value. perform error checking on the input.

Parameters:
lo - inclusive lower bound on input
hi - inclusive upper bound on input.
Returns:
a float between lo and hi, inclusive.

rangeTest

public static void rangeTest()

getInt

public static int getInt(java.lang.String prompt,
                         int lo,
                         int hi)
Prompt the user for an int that is <= the lo value and >= the high value. perform error checking on the input.

Parameters:
lo - inclusive lower bound on input
hi - inclusive upper bound on input.
Returns:
an int between lo and hi, inclusive.

getInt

public static int getInt(java.lang.Object o)
Prompt the user with a modal dialog for an int. Perform error checking to make sure that an int is returned.

Returns:
an int

testGetString

public static void testGetString()

getClassFromUser

public static java.lang.Class getClassFromUser()

getClassFileUser

public static java.lang.Class getClassFileUser()

getRectangle

public static java.awt.Rectangle getRectangle(java.lang.String s)

main

public static void main(java.lang.String[] args)

getMonths

public static java.lang.String[] getMonths()

getDate

public static java.util.Date getDate()

getState

public static java.lang.String getState()
return a two-letter state abbreviation for the USA.

Returns:
two letter string

getStateNum

public static int getStateNum(java.lang.String state)

getStates

public static java.lang.String[] getStates()

getUrl

public static java.net.URL getUrl(java.lang.String prompt)

getDouble

public static double getDouble(java.lang.Object o)

getStates2

public static java.lang.String[] getStates2()

getLawyerTypes

public static java.lang.String[] getLawyerTypes()

getLawyerTypesRefNum

public static java.lang.String[] getLawyerTypesRefNum()

getLawyerType

public static java.lang.String getLawyerType()

getState2

public static java.lang.String getState2()
return a two-letter state abbreviation for the USA.

Returns:
two letter string