Checkbox XML Tutorials
Version 1.6

Bamboo Suite Checkbox control/component can be used in web applications or as part of an applet add-onn to enhance a web page. Checkboxes, like radio buttons, provide alternative choices for users. A Checkbox is a square with label text next to it. The user clicks the checkbox to select or deselect it. When the option is on, an x appears in the box. When the option is off, the box is empty. Checkboxes act like toggle switches, meaning that the setting for each checkbox is either off or on. Use checkboxes to indicate one or more options that must be either off or on. Checkboxes are independent of each other, even when they offer related options. Any number of checkboxes can be on or off at the same time.

You can have one checkbox or as many as you need. It's a good idea to group sets of checkboxes that are related and to separate the groups from other groups of checkboxes and radio buttons. Each checkbox has a label. If you can't find a label for the checkbox that clearly implies its opposite state, you might be better off using radio buttons. With radio buttons, you can use two labels, thereby clarifying the states. It's sometimes tempting to use a checkbox because one item takes up less space than two. However, the resulting item may be ambiguous and thus difficult for your users to understand.

Bamboo Suite allows also to set font size and font style in the Checkbox. 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. Checkbox border 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 Checkbox. It can be set to False or True. Default is False. Opaque is used to set the Checkbox's transparency, if opaque is set to 'false', then the elements behind the Checkbox are visible (refer to the applet) and Foreground highlight is set automatically to white. You can use this feature set the transparency of your Checkboxes if you want the images on your background to be seen through this Checkbox. setVisible is used to show or hide a Checkbox. It can be set to False or True. Default is True. You may align your text as you may see fit in the Checkbox'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]

Shape Borders Fonts & Colors Highlights Images Other