PlayPanel

The PlayPanel component is a control component that is used by the subjects to play samples. It also acts as a monitor that can show which sample is currently playing. Possible choices are user-definable and the corresponding labels shown to the subject can be set. Also a 'stop' button is added to stop sample playing (some tests may ignore this button).

Here is an example of a play panel choice with three choices:

[image of a PlayPanel]

Here is a list of parameters available for a play panel controller:

Parameter Value Description R/O
class guinea.ui.PlayPanel Java class name of the PlayPanel component Req.
font font name The font used for buttons. Opt.
choices list of choices The choicess sent by the play component when the corresponding label is pressed. The list is a comma separated list of choices (strings only currently). Req.
labels list of labels The labels shown to the subject. The subject selects one of the choices and the corresponding choice is sent. The list is a comma separated list of strings that are shown as labels. Opt.

Buttons font

The font used to display the text of choices can be set with the font parameter. It takes a valid Java font specification as a value. For example:
   # The font for the buttons
   play.font=SansSerif-bold-48
You can use the FontTester tool help you select the fonts you want. See also the API of the Java's Font class.

Choices and labels

The choices list defines the choices of commands that are sent to the test system. In all tests the choices are sample names such like "A", "B" or "Ref" that refer to the corresponding test item parameters. The labels list defines the labels that are shown to the subject on the buttons on the UI. Labels can be used to display a different label that corresponds to a specific command. Both are comma-separated lists of strings. Example:
   # Set choices (and labels)
   play.choices=Ref,A,B
This sets the choices and labels as shown in the window example above. If no labels are specified, the choices will be used as labels also. In this case it acts the same as this:
   # Set choices and corresponding labels
   play.choices=Ref,A,B
   play.labels=Ref,A,B
Labels are used for displaying the selections to the subject. Example:
   # Set choices and labels
   play.choices=Ref,A,B
   play.labels=Reference,System A,System B
the labels shown are 'Reference', 'System A' and 'System B' instead of 'Ref', 'A' and 'B'. Then the subjects selects 'System A', 'A' will sent to the test system as the command.
· UI index · Document index ·

Last modified: Thu Dec 9 19:12:40 EET 1999