|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lava.gui.ButtonQuestionParameters
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:
ButtonQuestion
, without breaking existing programs.
ButtonQuestion
constructor.
Unlike instances of ButtonQuestion, instances of ButtonQuestionParameters can be reused.
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 |
public java.lang.String title
Details: This member conveys the text to be displayed in the question box's title bar.
Default value: "Question"
public java.awt.Image image
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
public java.lang.String question
Details: This member is the question being asked.
Default value: "Are you sure?"
public java.lang.String[] responses
Details: This String
array lists all of the acceptable responses to the question being posed.
Default value: {"Yes", "No", "Cancel"}
public static final int YES
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,
will return waitForResponse
YES
.
public static final int NO
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,
will return waitForResponse
NO
.
public static final int CANCEL
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,
will return waitForResponse
CANCEL
.
public boolean visible
Details: This member indicates whether the question box should be made instantly visible after construction.
Default value: true
(visible)
public boolean modal
Details: This member indicates whether the question box should be modal or not.
Default value: true
(modal)
Constructor Detail |
public ButtonQuestionParameters()
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.
|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |