Class TDlg

java.lang.Object
  |
  +--TObject
        |
        +--TDlg
Direct Known Subclasses:
TInput

public class TDlg
extends TObject

Type Dialog: Class TDlg encapsulates the TI-BASIC dialog function.

Since:
First release

Field Summary
 boolean answer
          The user's answer.
 java.lang.String caption
          The window's title.
 int dimension
          The number of lines displayed.
 java.lang.String[] message
          The text displayed in the window.
 
Constructor Summary
TDlg()
          Instanciates a new Type Dialog.
TDlg(java.lang.String caption)
          Instanciates a new Type Dialog.
TDlg(java.lang.String caption, java.lang.String[] message)
          Instanciates a new Type Dialog.
 
Method Summary
 boolean getAnswer()
          Returns true if the user answered yes.
 java.lang.String getCaption()
          Returns the dialog's title.
 int getDimension()
          Returns the dimension of the dialog.
 java.lang.String[] getMessage()
          Returns the dialog's message.
 void setCaption(java.lang.String caption)
          Sets the dialog's title.
 void setDimension(int dimension)
          Sets the dimension of the dialog.
 void setMessage(java.lang.String[] message)
          Sets the dialog's message.
 void showModal()
          Shows the dialog.
 
Methods inherited from class TObject
clone, Destroy, equals, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

caption

public java.lang.String caption
The window's title.


dimension

public int dimension
The number of lines displayed.


message

public java.lang.String[] message
The text displayed in the window.


answer

public boolean answer
The user's answer.

Constructor Detail

TDlg

public TDlg()
Instanciates a new Type Dialog.

Since:
First release

TDlg

public TDlg(java.lang.String caption)
Instanciates a new Type Dialog.

Since:
First release

TDlg

public TDlg(java.lang.String caption,
            java.lang.String[] message)
Instanciates a new Type Dialog.

Parameters:
caption - The window's title.
message - The text displayed in the window.
Since:
First release
Method Detail

setCaption

public void setCaption(java.lang.String caption)
Sets the dialog's title.

Parameters:
caption - The window's title.
Since:
First release

setMessage

public void setMessage(java.lang.String[] message)
Sets the dialog's message.

Parameters:
message - The text displayed in the window.
Since:
First release

setDimension

public void setDimension(int dimension)
Sets the dimension of the dialog.

Since:
First release

getDimension

public int getDimension()
Returns the dimension of the dialog.

Returns:
dimension: The number of lines displayed.
Since:
First release

getMessage

public java.lang.String[] getMessage()
Returns the dialog's message.

Returns:
message: The text displayed in the window.
Since:
First release

getCaption

public java.lang.String getCaption()
Returns the dialog's title.

Returns:
caption: The window's title.
Since:
First release

getAnswer

public boolean getAnswer()
Returns true if the user answered yes.

Returns:
answer: The user's answer.
Since:
First release

showModal

public void showModal()
Shows the dialog.

Since:
First release.