arlut.csd.JDialog
Class JDialogBuff

java.lang.Object
  |
  +--arlut.csd.JDialog.JDialogBuff
All Implemented Interfaces:
java.io.Serializable

public class JDialogBuff
extends java.lang.Object
implements java.io.Serializable

This class is a serializable description of a dialog object that a server is asking a client to present.

If you don't need to send a dialog definition object across an RMI link, you can just construct a DialogRsrc directly.

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String cancelText
           
(package private) static boolean debug
           
(package private)  java.lang.String imageName
           
(package private)  java.lang.String okText
           
(package private)  java.util.Vector resources
           
(package private)  java.lang.StringBuffer text
           
(package private)  java.lang.String title
           
 
Constructor Summary
JDialogBuff(java.lang.String Title, java.lang.String Text)
          Constructor for JDialogBuff
JDialogBuff(java.lang.String Title, java.lang.String Text, java.lang.String OK, java.lang.String Cancel)
          Constructor with special "Ok" and "Cancel" strings
JDialogBuff(java.lang.String Title, java.lang.String Text, java.lang.String OK, java.lang.String Cancel, java.lang.String image)
          Constructor with special "Ok" and "Cancel" strings
 
Method Summary
 void addBoolean(java.lang.String string)
          Adds a labeled check box field
 void addBoolean(java.lang.String string, boolean value)
          Adds a labeled check box field
 void addChoice(java.lang.String label, java.util.Vector choices)
          Adds a choice field to the dialog
 void addChoice(java.lang.String label, java.util.Vector choices, java.lang.String selectedValue)
          Adds a choice field to the dialog
 void addDate(java.lang.String label, java.util.Date currentDate, java.util.Date maxDate)
          Adds a labeled date field
 void addMultiString(java.lang.String string, java.lang.String value)
          Adds a labeled multi-line text field
 void addPassword(java.lang.String label)
          Adds a text-hidden password string field to the dialog
 void addPassword(java.lang.String label, boolean isNew)
          Adds a text-hidden password string field to the dialog
 void addString(java.lang.String string)
          Adds a labeled text field
 void addString(java.lang.String string, java.lang.String value)
          Adds a labeled text field
 void appendText(java.lang.String text)
          Adds a newline and the provided text to the end of the text encoded in this dialog.
 DialogRsrc extractDialogRsrc(java.awt.Frame frame)
           
 java.lang.String getText()
          This is a convenience function for the server.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debug

static final boolean debug

title

java.lang.String title

text

java.lang.StringBuffer text

okText

java.lang.String okText

cancelText

java.lang.String cancelText

imageName

java.lang.String imageName

resources

java.util.Vector resources
Constructor Detail

JDialogBuff

public JDialogBuff(java.lang.String Title,
                   java.lang.String Text)
Constructor for JDialogBuff
Parameters:
Title - String for title of Dialog box.
Text - String for message at top of dialog box.

JDialogBuff

public JDialogBuff(java.lang.String Title,
                   java.lang.String Text,
                   java.lang.String OK,
                   java.lang.String Cancel)
Constructor with special "Ok" and "Cancel" strings
Parameters:
Title - String for title of Dialog box.
Text - String for message at top of dialog box.
OK - String for Ok button
Cancel - String for Cancel button

JDialogBuff

public JDialogBuff(java.lang.String Title,
                   java.lang.String Text,
                   java.lang.String OK,
                   java.lang.String Cancel,
                   java.lang.String image)
Constructor with special "Ok" and "Cancel" strings
Parameters:
Title - String for title of Dialog box.
Text - String for message at top of dialog box.
OK - String for Ok button
Cancel - String for Cancel button
image - Filename of image to display next to text
Method Detail

extractDialogRsrc

public DialogRsrc extractDialogRsrc(java.awt.Frame frame)

addString

public void addString(java.lang.String string)

Adds a labeled text field

Parameters:
string - String to use as the label

addString

public void addString(java.lang.String string,
                      java.lang.String value)

Adds a labeled text field

Parameters:
string - String to use as the label
value - Initial value for string

addMultiString

public void addMultiString(java.lang.String string,
                           java.lang.String value)

Adds a labeled multi-line text field

Parameters:
string - String to use as the label
value - Initial value for string

addBoolean

public void addBoolean(java.lang.String string)

Adds a labeled check box field

Parameters:
string - String to use as the label

addBoolean

public void addBoolean(java.lang.String string,
                       boolean value)

Adds a labeled check box field

Parameters:
string - String to use as the label
value - Initial value

addDate

public void addDate(java.lang.String label,
                    java.util.Date currentDate,
                    java.util.Date maxDate)

Adds a labeled date field

Parameters:
label - String to use as the label
currentDate - Date to initialize the date field to
maxDate - Latest date that the user may choose for this field.

addChoice

public void addChoice(java.lang.String label,
                      java.util.Vector choices)

Adds a choice field to the dialog

Parameters:
label - String to use as the label
choices - Vector of Strings to add to the choice

addChoice

public void addChoice(java.lang.String label,
                      java.util.Vector choices,
                      java.lang.String selectedValue)

Adds a choice field to the dialog

Parameters:
label - String to use as the label
choices - Vector of Strings to add to the choice

addPassword

public void addPassword(java.lang.String label)

Adds a text-hidden password string field to the dialog

Parameters:
label - String to use as label

addPassword

public void addPassword(java.lang.String label,
                        boolean isNew)

Adds a text-hidden password string field to the dialog

Parameters:
label - String to use as label
value - Initial value

appendText

public void appendText(java.lang.String text)

Adds a newline and the provided text to the end of the text encoded in this dialog.


getText

public java.lang.String getText()

This is a convenience function for the server.