Beispiel #1
0
  public void smallBoxLongClicked(View v) {
    SmallBox sb2 = (SmallBox) v;
    SmallBox sb1 = stateInfo.selectedSmallBox;
    boolean hadSelectedSmallBox = stateInfo.hasSelectedSmallBox;
    stateInfo.selectedSmallBox = sb2;
    stateInfo.hasSelectedSmallBox = true;
    stateInfo.selectingState = StateInfo.SELECTING_POSSIBLE_VALUE;

    if (hadSelectedSmallBox) sb1.invalidate();
    sb2.invalidate();
    refreshDigitButtons();
  }
Beispiel #2
0
  public void smallBoxClicked(View v) {
    SmallBox sb2 = (SmallBox) v;
    SmallBox sb1 = stateInfo.selectedSmallBox;
    /*
     * set has selected to true
     * set the selected box
     * set setting final value to true
     * invalidate the small box and the previously selected small box
     * invalidate the digitbuttons
     */

    boolean hadSelectedSmallBox = stateInfo.hasSelectedSmallBox;
    stateInfo.selectedSmallBox = sb2;
    stateInfo.hasSelectedSmallBox = true;
    stateInfo.selectingState = StateInfo.SELECTING_FINAL_VALUE;
    if (hadSelectedSmallBox) sb1.invalidate();
    sb2.invalidate();
    refreshDigitButtons();
  }