F O R · R E A L L Y · T H I N · C L I E N T S
 Home  |  Overview  |  Widgets  |  Demo  |  License  |  History 

» Component
» Label
» Button
» CheckBox
» ComboBox
» TextField
» PasswordField
» TextArea
» TabbedPane
» Panel
» Desktop
» Dialog
» SpinBox
» ProgressBar
» Slider
» SplitPane
» List
» Table
» Tree
» Separator
» MenuBar

CheckBox
The first checkbox has a short text and an icon, its state is selected. The second one is a deselected radio button, one of a set of buttons identified by a string id.
<checkbox text="CheckBox" icon="image.gif" selected="true"/>
<checkbox text="RadioButton" group="group"/>

Parameters
NameTypeDefaultDescription
textstringnull The text string that the checkbox displays.
iconiconnull The icon image that the checkbox displays.
alignmentchoicecenter The alignment of the text and image similar to label. Possible values are: left, center, and right.
mnemonicinteger-1 Specifies the underlined char and the key combination which change the checkboxs's state and invokes the action listener.
selectedbooleanfalse The state of the checkbox. True if the checkbox is selected, false if it's not.
groupstringnull Identifies the radio button group if not null. Only one radio button at a time can be selected. User can set on a radio button, the selected button of the group will be set off (the group members is searched only in the same parent).
actionmethodnull Invokes the given method when the checkbox state is changed by mouse or keyboard event.
name, enabled, visible, tooltip, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component

Keyboard-actions
OperationAction
SpacebarSelects or deselects
Tab, Shift-TabNavigate forward, backward

Copyright © 2002 Robert Bajzat - info@thinlet.com - All rights reserved.