예제 #1
0
 /**
  * Set the current value of this entry. This is a internal function that is required to update the
  * state of this instance.
  *
  * @param val the value the current value is supposed to be set to
  */
 void setCurrentValue(final int val) {
   currentValue = FastMath.clamp(val, entry.getRange());
   display.setText(Integer.toString(currentValue));
 }
예제 #2
0
 /** Save the value in this text entry to the configuration. */
 @Override
 public void save() {
   entry.setValue(FastMath.clamp(currentValue, entry.getRange()));
 }