
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
FComboBox and FListBox
|
1005
FCheckBox
support for a standard UI checkbox element
Methods
getEnabled()
Boolean indicating whether a checkbox is enabled (i.e., responds to mouse input).
getLabel()
Returns a checkbox’s string label.
getValue()
Boolean indicating whether a checkbox is checked (i.e., selected or deselected).
registerSkinElement()
Registers a skin element for changing the appearance of a checkbox.
setChangeHandler()
Specifies the callback function to call when the checkbox’s state changes.
setEnabled()
Enables or disables the checkbox (not the same as selecting or deselecting it).
setLabel()
Sets a checkbox’s string label.
setLabelPlacement()
Specifies the label location relative to the checkbox (“left” or “right”).
setSize()
Sets the width of the checkbox element, in pixels.
setStyleProperty()
Sets a particular style property for the check box (for a list of supported properties, see
the FStyleFormat object).
setValue()
Specifies whether the checkbox is checked (
true) or unchecked (false) (i.e., whether it
is selected or deselected).
FComboBox and FListBox
support for standard UI combo boxes (i.e., drop-down lists) and list boxes
Table G-1 juxtaposes the methods of the FComboBox and FListBox objects. Note how they
share the majority of methods, although FListBox supports selecting multiple ...