title: GWT RadioButton Change Handler
body: <p>I have a poll widget with RadioButton choices and Label votes</p>
  
  <ol>
  <li>When user selects a choice, choice votes should +1;</li>
  <li>When another choice selected, old choice votes should -1 and new choice votes should +1.</li>
  </ol>
  
  <p>I used ValueChangeHandler for this:</p>
  
  <pre><code>valueRadioButton.addValueChangeHandler(new ValueChangeHandler&lt;Boolean&gt;() {
              @Override
              public void onValueChange(ValueChangeEvent&lt;Boolean&gt; e) {
                  if(e.getValue() == true)
                  {
                      System.out.println("select");
                      votesPlusDelta(votesLabel, +1);
                  }
                  else
                  {
                      System.out.println("deselect");
                      votesPlusDelta(votesLabel, -1);
                  }
              }
          }); 
  
  private void votesPlusDelta(Label votesLabel, int delta)
  {
      int votes = Integer.parseInt(votesLabel.getText());
      votes = votes + delta;
      votesLabel.setText(votes+"");
  }
  </code></pre>
  
  <p>When user selects new choice, older choice listener should jump in else statement, but it won't (Only +1 part works). What should i do?         </p>