|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.util.InputDialog
public class InputDialog
Modal input dialog.
If the user enters a value with wrong type, the dialog is
displayed again.
All methods run in the Event Dispatch Thread (EDT).
Constructor Summary | |
---|---|
InputDialog()
Construct dialog with default title and prompt. |
|
InputDialog(java.lang.String title,
java.lang.String prompt)
Construct dialog with given title and prompt. |
Method Summary | |
---|---|
static java.lang.Boolean |
getBoolean()
Show the dialog with a yes/no button pair to get a boolean. |
static java.lang.Double |
getDouble()
Show the dialog to get a double value. |
static java.lang.Integer |
getInt()
Show the dialog to get an integer value. |
static java.lang.Long |
getLong()
Show the dialog to get a long value. |
static java.lang.String |
getString()
Show the dialog to get a string value (same as readString()). |
static boolean |
readBoolean()
Show the dialog with a yes/no button pair to get a boolean. |
static double |
readDouble()
Show the dialog to read a double value. |
static int |
readInt()
Show the dialog to read an integer value. |
static long |
readLong()
Show the dialog to read a long value. |
static java.lang.String |
readString()
Show the dialog to get a string value (same as getString()). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputDialog()
public InputDialog(java.lang.String title, java.lang.String prompt)
Method Detail |
---|
public static java.lang.String getString()
public static java.lang.String readString()
public static java.lang.Integer getInt()
public static int readInt()
public static java.lang.Double getDouble()
public static double readDouble()
public static java.lang.Long getLong()
public static long readLong()
public static java.lang.Boolean getBoolean()
public static boolean readBoolean()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |