Code example for Switch

Methods: setEnabled, setChecked