public CachedDynamicIntProperty(String propName, int defaultValue) { super(propName, defaultValue); // Set the initial value of the cached primitive value. this.primitiveValue = chooseValue(); }
@Override protected void propertyChanged() { // Update the cached primitive value when the property is changed. this.primitiveValue = chooseValue(); }