org.placelab.util.swt
Class QuestionBox.QuestionPackage
java.lang.Object
org.placelab.util.swt.QuestionBox.QuestionPackage
- Enclosing class:
- QuestionBox
- public static class QuestionBox.QuestionPackage
- extends java.lang.Object
|
Constructor Summary |
QuestionBox.QuestionPackage(java.lang.String question,
boolean defaultSelection)
This constructor will generate a Yes/No question with
a checkbox |
QuestionBox.QuestionPackage(java.lang.String question,
java.lang.String[] answers,
boolean isEditable)
This constructer will generate a question with a drop
down box containing the given answers. |
QuestionBox.QuestionPackage(java.lang.String question,
java.lang.String defaultAnswer,
int length,
boolean isPassword)
This constructor will generate a question text box |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
question
public java.lang.String question
defaultAnswers
public java.lang.String[] defaultAnswers
length
public int length
isPassword
public boolean isPassword
isSelected
public boolean isSelected
isEditable
public boolean isEditable
QuestionBox.QuestionPackage
public QuestionBox.QuestionPackage(java.lang.String question,
java.lang.String defaultAnswer,
int length,
boolean isPassword)
- This constructor will generate a question text box
- Parameters:
question - the question to ask above the boxdefaultAnswer - the default answer, if anylength - the length of characters allowed in the boxisPassword - use a secure text entry box
QuestionBox.QuestionPackage
public QuestionBox.QuestionPackage(java.lang.String question,
java.lang.String[] answers,
boolean isEditable)
- This constructer will generate a question with a drop
down box containing the given answers.
- Parameters:
question - the question to ask above the boxanswers - the answers to be contained in the drop downisEditable - whether or not to allow the user to enter
a custom answer.
QuestionBox.QuestionPackage
public QuestionBox.QuestionPackage(java.lang.String question,
boolean defaultSelection)
- This constructor will generate a Yes/No question with
a checkbox
boxType
public int boxType()