@Override public void setValue(Integer value) { if (!Util.equalsOrNull(this.value, value)) { this.value = value; being.fireValueChangedEvent(this); } }
public boolean checkValue(Integer newRefValue) { boolean changed = false; if (!Util.equalsOrNull(getReferenceValue(), newRefValue)) { setReferenceValue(newRefValue); changed = true; } Integer value = getValue(); if (value != null) { int max = getMaximum(); int min = getMinimum(); if (value > max) { setValue(max); changed = true; } else if (value < min) { setValue(min); changed = true; } } return changed; }