Here is an example of a checkbox choice with three choices:
Here is a list of parameters available for a checkbox choice:
Parameter | Value | Description | R/O |
---|---|---|---|
class | guinea.ui.CheckboxChoice | Java class name of checkbox choice | Req. |
question | text | The question shown to subject. | Req. |
questionfont | font name | The font used for question text. | Opt. |
answers | list of answers | The answers sent by the answer component when the corresponding label is selected. The list is a comma separated list of answers (strings only currently). | Req. |
labels | list of labels | The choices (labels) shown to the subject. The subject selects one of the choices and the corresponding answer is sent. The list is a comma separated list of strings that are shown as labels. | Opt. |
# Set question text q5.question=Which sample sounds best?
# The font of the question q5.questionfont=Serif-italic-24You can use the FontTester tool help you select the fonts you want. See also the API of the Java's Font class.
# Set answers (labels are same as answers) q5.answers=A,B,CThis sets the answers and labels as shown in the window example above. If no labels are specified, the answers will be used as labels also. In this case it acts the same as this:
# Set answers and corresponding labels q5.answers=A,B,C q5.labels=A,B,CLabels are used for displaying the selections to the subject. Example:
# Set answers and corresponding labels q5.answers=A,B,C q5.labels=First,Second,Thirdthe labels shown are 'First', 'Second' and 'Third' instead of 'A', 'B' and 'C'. Then the subjects selects 'Second', 'B' will sent to the test system as the answer.