Code example for ToggleButton

Methods: setTextsetChecked, isChecked