private void propertyChangedInternal() { load(); propertyChanged(); }
private void propertyChangedInternal() { load(); propertyChanged(); }
private void setup(String propName, List<T> defaultValue, Splitter splitter) { // Make a defensive copy of the default value. Would prefer to use an ImmutableList, but that // does not allow for null values in the List. this.defaultValues = (defaultValue == null ? null : Collections.unmodifiableList(new ArrayList<T>(defaultValue))); this.splitter = splitter; delegate = DynamicPropertyFactory.getInstance().getStringProperty(propName, null); load(); Runnable callback = new Runnable() { @Override public void run() { propertyChangedInternal(); } }; delegate.addCallback(callback); }
private void setup(String propName, List<T> defaultValue, Splitter splitter) { // Make a defensive copy of the default value. Would prefer to use an ImmutableList, but that // does not allow for null values in the List. this.defaultValues = (defaultValue == null ? null : Collections.unmodifiableList(new ArrayList<T>(defaultValue))); this.splitter = splitter; delegate = DynamicPropertyFactory.getInstance().getStringProperty(propName, null); load(); Runnable callback = new Runnable() { @Override public void run() { propertyChangedInternal(); } }; delegate.addCallback(callback); }