XML Tutorials Radio Buttons
Version 1.6
This is the archives. For the latest Bambookit GUI 2.0, XML GUI Demos & Tutorials visit: www.bambookit.com/_demo.html


Bamboo Suite Radio control/component can be used in web applications or as part of an applet add-onn to enhance a web page. A radio button displays a setting, either on or off, and is part of a group in which only one button can be on at a time. They occur in sets and are called radio buttons because they act like the buttons on a car radio. The user can have only one radio button setting in effect at one time, just as you can listen to only one radio station at a time. This means that radio buttons are mutually exclusive. The active setting has a dot in the middle of the button. Clicking one button in a group turns off whichever button was on before. Radio buttons never initiate an action.

A set of radio buttons should contain from two to approximately seven items. Some sets could be slightly larger, but you must always have at least two radio buttons in each set. Each group of radio buttons usually has a label that identifies the kind of choices the group contains. Usually, each button has a label that identifies what it does. A label can be a few words or a phrase. A set of radio buttons always has the same set of choices. It is never dynamic, changing contents depending on the context. The user can click the button itself or the text that identifies the choice to activate the button.

Bamboo Suite allows also to set font size and font style in the Radio. The Fontname can be configured as Serif, Sanssserif, or monospaced. Fontstyle can be configured as Bold, Italic, Plain, Bolditalic, Underline. The point size can be set from 6 tp 120.

Background and Foreground colors and highlights can be configured to be set to any 6 digit hexadecimal (RGB) value. Radioborder choices are: none, flat, squareraised, squarelowered, roundraised, roundlowered, roundraisedthin, roundloweredthin, squareraisedthin, squareloweredthin, text groove, ridge.

setValue is used to display a selected state in the Radio. It can be set to False or True. Default is False. Opaque is used to set the Radio's transparency, if opaque is set to 'false', then the elements behind the Radioare visible (refer to the applet) and Foreground highlight is set automatically to white. You can use this feature set the transparency of your Radioes if you want the images on your background to be seen through this Radio. setVisible is used to show or hide a Radio. It can be set to False or True. Default is True. You may align your text as you may see fit in the Radio's labels: left aligned, centered and right aligned.

On the left, the navigation tree is provided to easily search though Bamboo Suite controls (if the tree is not displayed click on the Tutorial link below). The tree represents the contents of the Tutorial for Bamboo Suite. The main topics appear under collapsed folder icon. Collapsed folder icon is also an indication that there are more files available under collapsed folder. The expanded folder implies that there are no more files under this item. Clicking on the collapsed/expanded folder icon will open/close items in the tree node. Clicking on the tree item will open the requested topic in the main window.

Most of the topics contain live applet examples along with the property description, HTML source and XML source.

[Home][Tutorial] [Demo]

Buttons
Radio
Borders Fonts & Colors Highlights Images Groups Other