|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkirk.gui.dialog.SingleInputRetriever
This class retrieves the value inputted in an SingleInputDialog
.
You retrieve the String
with
SingleInputRetriever.getInputValue(Frame owner, String message, int columns)
.
SingleInputDialog
Field Summary | |
protected String |
value
The value retrieved from the InputDialog . |
Constructor Summary | |
protected |
SingleInputRetriever(Frame owner,
String message,
int width,
int height,
int columns)
Constructs a new SingleInputRetriever . |
Method Summary | |
protected String |
getValue()
Returns the value retrieved from the SingleInputDialog . |
static String |
getValue(Frame owner,
String message,
int width,
int height,
int columns)
Creates an SingleInputRetriever and retrieves its value. |
boolean |
retrieve(InputDialog inputdialog)
Sets the input value to the passed value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String value
InputDialog
.
Constructor Detail |
protected SingleInputRetriever(Frame owner, String message, int width, int height, int columns)
SingleInputRetriever
.
Method Detail |
public boolean retrieve(InputDialog inputdialog)
InputDialog
that was constructed by this class should
use this method.
retrieve
in interface Retriever
inputdialog
- The value from the InputDialog
.
true
if the InputDialog
should close,
false
if it should stay open.protected String getValue()
SingleInputDialog
.
SingleInputDialog
.public static String getValue(Frame owner, String message, int width, int height, int columns)
SingleInputRetriever
and retrieves its value.
owner
- The Frame
a Dialog
has to be popped up
on.message
- The message to be displayed on the popup.columns
- The amount of characters that have to fit in the input field.
String
that contains the contents of the input field,
or null
if the input was canceled.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |