Radio class derives from Area class and creates a number of mutually exclusive buttons allowing the user to make a single choice. The buttons are embedded inside a group with a frame and an optional frame title.
When you declare a radio widget in XML, you have to use the
<item>
tag to fill the radio widget with items. Every radio
widget needs to have at least one item.
Here is an example XML excerpt for creating a radio widget:
<radio id="printer"> <item>HP Deskjet</item> <item>NEC P6</item> <item>Okimate 20</item> </radio> |
You can use the Radio.Columns attribute to fine-tune the layout of the radio buttons. By default, they appear in a single-column vertical layout. Setting Radio.Columns allows you to change that to a horizontal layout, for example.