Sharkysoft home

lava.gui
Class ButtonQuestionParameters

java.lang.Object
  |
  +--lava.gui.ButtonQuestionParameters
All Implemented Interfaces:
java.lang.Cloneable

public class ButtonQuestionParameters
extends java.lang.Object
implements java.lang.Cloneable

Conveys parameters to class ButtonQuestion.

Details: This class conveys parameters to the constructor for class ButtonQuestion. The motivation for using a parameter class, rather than passing the arguments directly into a ButtonQuestion constructor, is as follows:

Unlike instances of ButtonQuestion, instances of ButtonQuestionParameters can be reused.

Since:
1998.10.11
Version:
1998.10.11
See Also:
ButtonQuestion

Field Summary
static int CANCEL
          Indicates "Cancel" selection.
 java.awt.Image image
          Question icon.
 boolean modal
          Indicates modality.
static int NO
          Indicates "No" selection.
 java.lang.String question
          Question text.
 java.lang.String[] responses
          Responses.
 java.lang.String title
          Title bar text.
 boolean visible
          Initial visibility.
static int YES
          Indicates "Yes" selection.
 
Constructor Summary
ButtonQuestionParameters()
          Constructs an instance with default values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

public java.lang.String title
Title bar text.

Details: This member conveys the text to be displayed in the question box's title bar.

Default value: "Question"

Since:
1998.10.11

image

public java.awt.Image image
Question icon.

Details: This image will be displayed to the left of the question. It will be progressively rendered. If set to null, no image will be displayed.

Default value: null

Since:
1998.10.11

question

public java.lang.String question
Question text.

Details: This member is the question being asked.

Default value: "Are you sure?"

Since:
1998.10.11

responses

public java.lang.String[] responses
Responses.

Details: This String array lists all of the acceptable responses to the question being posed.

Default value: {"Yes", "No", "Cancel"}

Since:
1998.10.11

YES

public static final int YES
Indicates "Yes" selection.

Details: This constant, defined for convenience, corresponds to the position of "Yes" in the default response list. If the default response list is use and the user selects the "Yes" button, waitForResponse will return YES.


NO

public static final int NO
Indicates "No" selection.

Details: This constant, defined for convenience, corresponds to the position of "No" in the default response list. If the default response list is use and the user selects the "No" button, waitForResponse will return NO.


CANCEL

public static final int CANCEL
Indicates "Cancel" selection.

Details: This constant, defined for convenience, corresponds to the position of "Cancel" in the default response list. If the default response list is use and the user selects the "Cancel" button, waitForResponse will return CANCEL.


visible

public boolean visible
Initial visibility.

Details: This member indicates whether the question box should be made instantly visible after construction.

Default value: true (visible)

Since:
1998.10.11

modal

public boolean modal
Indicates modality.

Details: This member indicates whether the question box should be modal or not.

Default value: true (modal)

Since:
1998.10.11
Constructor Detail

ButtonQuestionParameters

public ButtonQuestionParameters()
Constructs an instance with default values.

Details: This constructor creates an instance with all of its members initialized to their default values. Note that you can create subclasses of ButtonQuestionParameters that initialize the members according to your particular needs. Or, you can just use this constructor and then reassign the members.

Since:
1998.10.11

Sharkysoft home