Class Toggle

Superclasses :
lang::Object
Subclasses :
gui::Button
gui::CheckBoxMenuItem
Package :
gui

This is a class for representing objects which can have an on-off state, in particular checkboxes, toggle buttons, and menu checkboxes.

Source

Class summary
Methods inherited from lang::Object
clone(seen) equals(other, seen) get_class() get_class_name() get_id() hash_code(depth, seen) is_instance(name) to_string(depth, seen)
Methods defined in this class
clear_is_checked() get_status() into_cbg() is_checked() set_is_checked() set_parent_check_box_group(x) toggle_is_checked()
Variables defined in this class
is_checked_flag parent_check_box_group

Method detail

clear_is_checked()

Set the status to unchecked.
Source

get_status()

Return the status of the object; 1 if the object is checked, &null otherwise.
Source

into_cbg()

This empty method may be overridden; it is invoked when the object is added to a CheckBoxGroup. Note that it is overridden by some of the subclasses described below.
Source

is_checked()

Succeed if the object is checked.
Source

set_is_checked()

Set the status to checked.
Source

set_parent_check_box_group(x)

Set the parent CheckBoxGroup.
Parameters :
x - The parent CheckBoxGroup.
Source

toggle_is_checked()

Toggle the status of the object.
Source

Variable detail

is_checked_flag


parent_check_box_group