|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgui.In
public final class In
Field Summary | |
---|---|
static java.lang.String[] |
TWO_LETTER_STATE_ARRAY
|
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 low,
int high)
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.awt.Image |
getScreenImage(java.lang.String s)
|
static java.lang.String |
getState()
return a two-letter state abbreviation for the USA. |
static java.lang.String |
getState(java.lang.String s)
Search s for one of the known states and returns it, if found. |
static int |
getStateNum(java.lang.String state)
|
static java.lang.String[] |
getStates()
|
static java.lang.String |
getString(java.lang.Object o)
Prompt the user for a string. |
static java.lang.String |
getString(java.lang.Object o,
java.lang.String defaultValue)
|
static java.lang.String |
getTwoLetterState()
return a two-letter state abbreviation for the USA. |
static java.net.URL |
getUrl(java.lang.String prompt)
|
static java.lang.String |
getZip(java.lang.String s)
|
static boolean |
inRange(int i,
int min,
int max)
|
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 boolean |
message(java.lang.String s)
|
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 |
Field Detail |
---|
public static final java.lang.String[] TWO_LETTER_STATE_ARRAY
Method Detail |
---|
public static void testAtomicInput()
public static java.lang.String getString(java.lang.Object o)
o
- prompt for the user
public static java.lang.String getString(java.lang.Object o, java.lang.String defaultValue)
public static java.lang.String getPassword(java.lang.String message)
public static boolean message(java.lang.Exception e)
e
- the exceptionpublic static void testGetColor()
public static java.awt.Color getColor()
public static boolean message(java.lang.String s)
public static boolean message(java.lang.Object messageString)
public static boolean alert(java.lang.String messageString)
public static void getChoiceTest()
public static java.lang.Object getChoice(java.lang.Object[] options, java.lang.String message, java.lang.String title)
options
- an array of options to
select frommessage
- the message to the usertitle
- the title of the dialog
public static boolean getBoolean(java.lang.String messageString)
messageString
- The prompt
public static float getFloat(java.lang.Object o)
o
- prompt for the float string
public static float getFloat(java.lang.String prompt, float lo, float hi)
lo
- inclusive lower bound on inputhi
- inclusive upper bound on input.
public static void rangeTest()
public static int getInt(java.lang.String prompt, int low, int high)
low
- inclusive lower bound on inputhigh
- inclusive upper bound on input.
public static boolean inRange(int i, int min, int max)
public static int getInt(java.lang.Object o)
public static void testGetString()
public static java.lang.Class getClassFromUser()
public static java.lang.Class getClassFileUser()
public static java.awt.Image getScreenImage(java.lang.String s) throws java.awt.AWTException
java.awt.AWTException
public static java.awt.Rectangle getRectangle(java.lang.String s)
public static java.lang.String[] getMonths()
public static java.util.Date getDate()
public static java.lang.String getState()
public static int getStateNum(java.lang.String state)
public static java.lang.String getState(java.lang.String s)
s
- a string with one or more states
public static java.lang.String getZip(java.lang.String s)
public static java.lang.String[] getStates()
public static java.net.URL getUrl(java.lang.String prompt)
public static double getDouble(java.lang.Object o)
public static java.lang.String[] getLawyerTypes()
public static java.lang.String[] getLawyerTypesRefNum()
public static java.lang.String getLawyerType()
public static java.lang.String getTwoLetterState()
public static void main(java.lang.String[] args) throws java.awt.AWTException
java.awt.AWTException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |