예제 #1
0
 @Override
 public void action(final Object comp) {
   if (comp instanceof BaseXButton) {
     // reset default values
     sliderRed.setValue(GUIOptions.COLORRED.value());
     sliderGreen.setValue(GUIOptions.COLORGREEN.value());
     sliderBlue.setValue(GUIOptions.COLORBLUE.value());
   }
   sliderRed.assign();
   sliderGreen.assign();
   sliderBlue.assign();
   gui.updateLayout();
 }
예제 #2
0
 /**
  * Returns the selected maximum number of hits as property value.
  *
  * @return maximum number of hits
  */
 private int hitsAsProperty() {
   return HITS[limit.value()];
 }