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

Variable Index

 o str
 o stringField

Constructor Index

 o StringDialog(Frame, String, String, boolean, int)
Construct a StringDialog without message textField.
 o StringDialog(Frame, String, String, boolean, int, int)
Construct a StringDialog.
 o StringDialog(Frame, String, String, boolean, String[], int)
Construct a StringDialog without message
 o StringDialog(Frame, String, String, boolean, String[], int, int)
Construct a StringDialog.

Method Index

 o getArg(Object[])
Return the parameters of the Dialog get.
 o setCentralPanel()
Initite the custom panel(central)Panel.
 o setStringText(String)
Set the default text of the TextField

Variables

 o stringField
 protected TextField stringField
 o str
 protected String str

Constructors

 o 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.
 o 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.
 o 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.
 o 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.

Methods

 o setCentralPanel
 protected void setCentralPanel()
Initite the custom panel(central)Panel.

Overrides:
setCentralPanel in class GenericDialog
 o setStringText
 public void setStringText(String text)
Set the default text of the TextField

Parameters:
text - The text to be set.
 o 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