Parameter | Value | Description | R/O |
---|---|---|---|
class | guinea.ui.ABSubjectUI | Java class name of the subject UI object. | Req. |
title | text | The title of the window. | Opt. |
questions | list | A comma-separated list of question component names. | Opt. |
controls | list | A comma-separated list of control component names. | Opt. |
isResizable | true of false | Is the window resizable? Default is true. | Opt. |
width | number of pixels | The width of the window in pixels. If this is non-zero, the window's width is fixed. Default is 0 (window's width is determined automatically). | Opt. |
height | number of pixels | The height of the window in pixels. If this is non-zero, the window's height is fixed. Default is 0 (window's height is determined automatically). | Opt. |
showTestProgress | true of false | Whether to display a test progress monitor component to the subject that shows how many test items have been done. | Opt. |
# Set window title title=ABC Test
# List of question objects to be used questions=gA,gBTwo question components with IDs 'gA' and 'gB' are used (grade for samples A and B). The parametars for those questions must be included in the UI file. If no questions are used, do not define the questions-parameter at all.
# List of control objects to be used controls=playOne control component with ID 'play'is used (for subject to select which sample to play and to show which sample is playing). The parametars for those controls must be included in the UI file. If no controls are used, do not define the controls-parameter at all.
The window's size can be fixed with the width and height parameters. By default they both are zero which means the size is determined automatically by the Java's layout manager. Example:
# Set window's width to 640 pixels width=640This will set the window's width to 640 pixels. The height will be determined automatically. The window's width will also cause all question and control components to that width.
By default the user can resize the subject UI window with the mouse. This can be prevented by setting the isResizable parameter to false. For example:
# Do not allow the subject to resize the window. isResizable=falsethe isResizable parameters works both when window's size is fixed or automatic.