CCheckbox is an awt-like Checkbox widget. It only works with the
device/property with boolean value or the two state Enum type.
If the data type is not right, the checkbox label will be set to
"Error!!!" and there is no action occur.
By default the widegt has no label. Call the setLabel(String label)
method, can add the label to the CCheckbox widget.
The device name and property name must be set using setDeviceName
and setPropertyName or the correct constructor
CCheckbox(String dname, String pname).
If the current state is true or 1 (second Enum state), the checkbox
is be checked (on). Otherwise is not be checked (off). Clicking on
check box widget set its state from "on" to "off," or from "off"
to "on." If the set operation failed, the checkbox will back to the
original state.
Fig. 1 CCheckbox with label.
Fig. 2 CCheckbox connected to a wrong type of device/property.