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
-
col
- Columns of the TextArea.
-
row
- Rows of the TextArea.
-
str
- Content of the textarea.
-
textArea
- The TextArea of this dialog.
-
TextAreaDialog(Frame, String, String, boolean, int, int)
- Construct a TextAreaDialog without message textArea.
-
TextAreaDialog(Frame, String, String, boolean, int, int, int)
- Construct a TextAreaDialog.
-
TextAreaDialog(Frame, String, String, boolean, String[], int, int)
- Construct a TextAreaDialog without message
-
TextAreaDialog(Frame, String, String, boolean, String[], int, int, int)
- Construct a TextAreaDialog.
-
getArg(Object[])
- Return the parameters of the Dialog get.
-
isTextAreaEditable(boolean)
- Indicates whether or not the TextArea is editable
-
setCentralPanel()
- Initite the custom panel(central)Panel.
-
setStringText(String)
- Set the default text of the TextArea
-
setTextAreaEditable(boolean)
- Sets the flag that determines whether or not the TextArea is editable.
textArea
protected TextArea textArea
- The TextArea of this dialog.
str
protected String str
- Content of the textarea.
row
protected int row
- Rows of the TextArea.
col
protected int col
- Columns of the TextArea.
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.
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.
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.
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.
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 TextArea
- Parameters:
- text - The text to be set.
setTextAreaEditable
public void setTextAreaEditable(boolean editable)
- Sets the flag that determines whether or not the TextArea is editable.
- Parameters:
- editable - Whether the TextArea editable.
isTextAreaEditable
public void isTextAreaEditable(boolean editable)
- Indicates whether or not the TextArea is editable
- Returns:
- editable Whether the TextArea editable.
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