|
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.klafbang.tincpn.animation.plugin.GetString
public class GetString
GetString allows you get short text-messages from the user.
This class is also a usefull starting point for writing your own animation objects, as it demonstrates how to use simple pre-built modal dialogs.
Constructor Summary | |
---|---|
GetString(java.lang.String header,
java.lang.String id)
Constructs a GetString object. |
Method Summary | |
---|---|
java.lang.String |
getString(java.lang.String message,
java.lang.String def)
Prompt the user for a string. |
void |
reset()
Noop. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetString(java.lang.String header, java.lang.String id)
header
- a header that can be displayed with the request for a
stringid
- Method Detail |
---|
public java.lang.String getString(java.lang.String message, java.lang.String def)
message
- the message to show the userdef
- the default value
public void reset()
|
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |