|
» 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
Name | Type | Default | Description | text | string | null |
The text string that the checkbox displays.
|
icon | icon | null |
The icon image that the checkbox displays.
|
alignment | choice | center |
The alignment of the text and image similar to label.
Possible values are: left, center, and right.
|
mnemonic | integer | -1 |
Specifies the underlined char and the key combination
which change the checkboxs's state and invokes the action listener.
|
selected | boolean | false |
The state of the checkbox. True if the checkbox is selected, false if it's not.
|
group | string | null |
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).
|
action | method | null |
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
Operation | Action | Spacebar | Selects or deselects |
Tab, Shift-Tab | Navigate forward, backward |
|