AI2 Component  (Version nb184) Class Reference
Inheritance diagram for< android.widget.CheckBox >

Public Member Functions

 CheckBox (ComponentContainer container)
boolean Checked ()
void Checked (boolean value)
- Public Member Functions inherited from< android.widget.CheckBox >
 ToggleBase (ComponentContainer container)
View getView ()
void Changed ()
void GotFocus ()
void LostFocus ()
void BackgroundColor (int argb)
int BackgroundColor ()
void Enabled (boolean enabled)
boolean Enabled ()
void FontBold (boolean bold)
boolean FontBold ()
void FontItalic (boolean italic)
boolean FontItalic ()
void FontSize (float size)
float FontSize ()
void FontTypeface (int typeface)
int FontTypeface ()
void Text (String text)
String Text ()
void TextColor (int argb)
int TextColor ()
void onCheckedChanged (CompoundButton buttonView, boolean isChecked)
void onFocusChange (View previouslyFocused, boolean gainFocus)

Additional Inherited Members

- Protected Member Functions inherited from< android.widget.CheckBox >
void initToggle ()
- Protected Attributes inherited from< android.widget.CheckBox >

Detailed Description

Example of a CheckBox

CheckBox components can detect user taps and can change their boolean state in response.

A CheckBox component raises an event when the user taps it. There are many properties affecting its appearance that can be set in the Designer or Blocks Editor.

Definition at line 33 of file

Constructor & Destructor Documentation

◆ CheckBox() ( ComponentContainer  container)

Creates a new CheckBox component.

containercontainer, component will be placed in

Definition at line 40 of file

Member Function Documentation

◆ Checked() [1/2]

boolean ( )

Set to true{:.logic.block} if the box is checked, false{:.logic.block} otherwise.

indicates checked,

Definition at line 55 of file

◆ Checked() [2/2]

void ( boolean  value)

Checked property setter method.



Definition at line 68 of file

The documentation for this class was generated from the following file: