+ if( button.GetName() == "checkbox1" )
+ {
+ if( button.IsSelected() )
+ {
+ button.SetLabel("CheckBox1 is selected");
+ }
+ else
+ {
+ button.SetLabel("CheckBox1 is unselected");
+ }
+ }
+
+ if( button.GetName() == "checkbox2" )
+ {
+ if( button.IsSelected() )
+ {
+ button.SetLabel("CheckBox2 is selected");
+ }
+ else
+ {
+ button.SetLabel("CheckBox2 is unselected");
+ }
+ }
+
+ if( button.GetName() == "checkbox3" )
+ {
+ if( button.IsSelected() )
+ {
+ button.SetLabel("CheckBox3 is selected");
+ }
+ else
+ {
+ button.SetLabel("CheckBox3 is unselected");
+ }
+ }
+