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