Exemple #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();
 }
Exemple #2
0
 /**
  * Returns the selected maximum number of hits as property value.
  *
  * @return maximum number of hits
  */
 private int hitsAsProperty() {
   return HITS[limit.value()];
 }