All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tw.edu.ncnu.im.cnclab.UI.TextAreaDialog

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

public class TextAreaDialog
extends GenericDialog
implements ActionListener
The TextAreaDialog class implements the dialog that show an text area.

Version:
0.4 Jul 8, 1999
Author:
Ding-Yi Chen
See Also:
GenericDialog

Variable Index

 o col
Columns of the TextArea.
 o row
Rows of the TextArea.
 o str
Content of the textarea.
 o textArea
The TextArea of this dialog.

Constructor Index

 o TextAreaDialog(Frame, String, String, boolean, int, int)
Construct a TextAreaDialog without message textArea.
 o TextAreaDialog(Frame, String, String, boolean, int, int, int)
Construct a TextAreaDialog.
 o TextAreaDialog(Frame, String, String, boolean, String[], int, int)
Construct a TextAreaDialog without message
 o TextAreaDialog(Frame, String, String, boolean, String[], int, int, int)
Construct a TextAreaDialog.

Method Index

 o getArg(Object[])
Return the parameters of the Dialog get.
 o isTextAreaEditable(boolean)
Indicates whether or not the TextArea is editable
 o setCentralPanel()
Initite the custom panel(central)Panel.
 o setStringText(String)
Set the default text of the TextArea
 o setTextAreaEditable(boolean)
Sets the flag that determines whether or not the TextArea is editable.

Variables

 o textArea
 protected TextArea textArea
The TextArea of this dialog.

 o str
 protected String str
Content of the textarea.

 o row
 protected int row
Rows of the TextArea.

 o col
 protected int col
Columns of the TextArea.

Constructors

 o TextAreaDialog
 public TextAreaDialog(Frame fr,
                       String title,
                       String promptText,
                       boolean isModal,
                       int row,
                       int col)
Construct a TextAreaDialog without message textArea.

Parameters:
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
row - the rows of the TextArea.
col - the columns of the TextArea.
 o TextAreaDialog
 public TextAreaDialog(Frame fr,
                       String title,
                       String promptText,
                       boolean isModal,
                       int msgLength,
                       int row,
                       int col)
Construct a TextAreaDialog.

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 textArea.
row - the rows of the TextArea.
col - the columns of the TextArea.
 o TextAreaDialog
 public TextAreaDialog(Frame fr,
                       String title,
                       String promptText,
                       boolean isModal,
                       String buttonPrompt[],
                       int row,
                       int col)
Construct a TextAreaDialog 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.
row - the rows of the TextArea.
col - the columns of the TextArea.
 o TextAreaDialog
 public TextAreaDialog(Frame fr,
                       String title,
                       String promptText,
                       boolean isModal,
                       String buttonPrompt[],
                       int msgLength,
                       int row,
                       int col)
Construct a TextAreaDialog.

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 textArea.
row - the rows of the TextArea.
col - the columns of the TextArea.

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 TextArea

Parameters:
text - The text to be set.
 o setTextAreaEditable
 public void setTextAreaEditable(boolean editable)
Sets the flag that determines whether or not the TextArea is editable.

Parameters:
editable - Whether the TextArea editable.
 o isTextAreaEditable
 public void isTextAreaEditable(boolean editable)
Indicates whether or not the TextArea is editable

Returns:
editable Whether the TextArea editable.
 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