All Packages Class Hierarchy This Package Previous Next Index
Class tw.edu.ncnu.im.cnclab.UI.StringDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----tw.edu.ncnu.im.cnclab.UI.GenericDialog
|
+----tw.edu.ncnu.im.cnclab.UI.StringDialog
- public class StringDialog
- extends GenericDialog
- implements ActionListener
The StringDialog class implements the dialog that ask single string.
- Version:
- 0.4 Jul 8, 1999
- Author:
- Ding-Yi Chen
- See Also:
- GenericDialog
-
str
-
-
stringField
-
-
StringDialog(Frame, String, String, boolean, int)
- Construct a StringDialog without message textField.
-
StringDialog(Frame, String, String, boolean, int, int)
- Construct a StringDialog.
-
StringDialog(Frame, String, String, boolean, String[], int)
- Construct a StringDialog without message
-
StringDialog(Frame, String, String, boolean, String[], int, int)
- Construct a StringDialog.
-
getArg(Object[])
- Return the parameters of the Dialog get.
-
setCentralPanel()
- Initite the custom panel(central)Panel.
-
setStringText(String)
- Set the default text of the TextField
stringField
protected TextField stringField
str
protected String str
StringDialog
public StringDialog(Frame fr,
String title,
String promptText,
boolean isModal,
int strlen)
- Construct a StringDialog without message textField.
- Parameters:
- fr - the parent window.
- title - the window title.
- promptText - the prompt text. '\n' can be used as separator.
- isModal - whether the dialog modal.
- strlen - the length of the TextField.
StringDialog
public StringDialog(Frame fr,
String title,
String promptText,
boolean isModal,
int msgLength,
int strlen)
- Construct a StringDialog.
- Parameters:
- fr - the parent window.
- title - the window title.
- promptText - the prompt text. '\n' can be used as separator.
- isModal - whether the dialog modal.
- msgLength - specify the length of the message textField.
- strlen - the length of the TextField.
StringDialog
public StringDialog(Frame fr,
String title,
String promptText,
boolean isModal,
String buttonPrompt[],
int strlen)
- Construct a StringDialog without message
- Parameters:
- fr - the parent window.
- title - the window title.
- promptText - the prompt text. '\n' can be used as separator.
- isModal - whether the dialog modal.
- buttonPrompt - the prompt of buttons.
- strlen - the length of the TextField.
StringDialog
public StringDialog(Frame fr,
String title,
String promptText,
boolean isModal,
String buttonPrompt[],
int msgLength,
int strlen)
- Construct a StringDialog.
- Parameters:
- fr - the parent window.
- title - the window title.
- promptText - the prompt text. '\n' can be used as separator.
- isModal - whether the dialog modal.
- buttonPrompt - the prompt of buttons.
- msgLength - specify the length of the message textField.
- strlen - the length of the TextField.
setCentralPanel
protected void setCentralPanel()
- Initite the custom panel(central)Panel.
- Overrides:
- setCentralPanel in class GenericDialog
setStringText
public void setStringText(String text)
- Set the default text of the TextField
- Parameters:
- text - The text to be set.
getArg
public Object[] getArg(Object additionalArg[])
- Return the parameters of the Dialog get.
- Parameters:
- additionalArg - Additional arguments for another method.
- Returns:
- The parameters of the dialog get. (Default:
null
- Overrides:
- getArg in class GenericDialog
- See Also:
- setArg
All Packages Class Hierarchy This Package Previous Next Index