Exemplo n.º 1
0
 public void onClick(View view) {
   if (view instanceof CheckBoxWidget) {
     CheckBoxWidget checkboxwidget = (CheckBoxWidget) view;
     boolean flag;
     flag = !checkboxwidget.isChecked();
     checkboxwidget.setChecked(flag);
   }
 }
Exemplo n.º 2
0
 public void onClick(View view) {
   if (view instanceof CheckBoxWidget) {
     CheckBoxWidget checkboxwidget = (CheckBoxWidget) view;
     checkboxwidget.setCheckBox(!checkboxwidget.isChecked());
   }
 }