org.placelab.util.swt
Class QuestionBox.QuestionPackage

java.lang.Object
  extended byorg.placelab.util.swt.QuestionBox.QuestionPackage
Enclosing class:
QuestionBox

public static class QuestionBox.QuestionPackage
extends java.lang.Object


Field Summary
 java.lang.String[] defaultAnswers
           
 boolean isEditable
           
 boolean isPassword
           
 boolean isSelected
           
 int length
           
 java.lang.String question
           
 
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
 
Method Summary
 int boxType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 box
defaultAnswer - the default answer, if any
length - the length of characters allowed in the box
isPassword - 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 box
answers - the answers to be contained in the drop down
isEditable - 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

Method Detail

boxType

public int boxType()