|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.rsl.jpop.utils.UserUtil
public abstract class UserUtil
Class for obtaining information from the user easily.
Constructor Summary | |
---|---|
UserUtil()
|
Method Summary | |
---|---|
static java.lang.Object |
chooseObject(java.lang.String message,
java.lang.String messageTitle,
java.lang.Object[] objects,
java.lang.Object initialObject)
Asks the User to select an Object from a given array of Objects. |
static boolean |
queryBoolean(java.lang.String message)
Queries the User for a Boolean value. |
static double |
queryDouble(java.lang.String message,
double initialValue)
Queries the User for a Double values using Swing. |
static int |
queryInt(java.lang.String message,
int initialValue)
Queries the User for an Integer value using Swing. |
static java.lang.String |
queryString(java.lang.String message,
java.lang.String initialValue)
Queries the User for a String value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserUtil()
Method Detail |
---|
public static int queryInt(java.lang.String message, int initialValue) throws java.lang.Exception
message
- initialValue
-
java.lang.Exception
public static double queryDouble(java.lang.String message, double initialValue) throws java.lang.Exception
message
- initialValue
-
java.lang.Exception
public static java.lang.String queryString(java.lang.String message, java.lang.String initialValue) throws java.lang.Exception
message
- initialValue
-
java.lang.Exception
public static boolean queryBoolean(java.lang.String message) throws java.lang.Exception
message
-
java.lang.Exception
public static java.lang.Object chooseObject(java.lang.String message, java.lang.String messageTitle, java.lang.Object[] objects, java.lang.Object initialObject) throws java.lang.Exception
message
- messageTitle
- objects
- initialObject
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |