示例#1
0
 public void onClick(View view) {
   if (view instanceof CheckBoxWidget) {
     CheckBoxWidget checkboxwidget = (CheckBoxWidget) view;
     checkboxwidget.setCheckBox(!checkboxwidget.isChecked());
   }
 }
示例#2
0
 private void clearFields() {
   autoZoneAutoCBW.setCheckBox(false);
   totesAutoCBW.setCheckBox(false);
   containersAutoCBW.setCheckBox(false);
   flexibleAutoCBW.setCheckBox(false);
   wideTeleCBW.setCheckBox(false);
   narrowTeleCBW.setCheckBox(false);
   stepTeleCBW.setCheckBox(false);
   landfillTeleCBW.setCheckBox(false);
   humanPlayerTeleCBW.setCheckBox(false);
   totesAbilityCBW.setCheckBox(false);
   containersAbilityCBW.setCheckBox(false);
   noodlesAbilityCBW.setCheckBox(false);
   shiftingAbilityCBW.setCheckBox(false);
   coopAbilityCBW.setCheckBox(false);
   driveSpinner.setSelection(0);
   wheelTypeSpinner.setSelection(0);
   wheelNumSpinner.setSelection(0);
   cimNumSpinner.setSelection(0);
   highestPossibleStackSpinner.setSelection(0);
   maxSpeed.setSelection(0);
   teamNumber.setText("");
   // scrollView.scrollTo(0, 0);
 }