public void setRuleProperties(ObservableList<PropertyDescriptorSpec> ruleProperties) { this.ruleProperties.setValue(ruleProperties); }
@Override public void setValue(ObservableList<E> v) { delegate.setValue(v); }
/** * This is a convenience method, allowing ObservableList instances (no * ListProperties) to be synchronized with the result of the * ListDataProvider. * * @param ol The ObservableList instance that should be synchronized with * the data retrieved by this ListDataProvider. Note that this * ObservableList will be cleared when calling this method -- as there is no * data retrieved yet. */ public void setResultObservableList(final ObservableList<T> ol) { this.observableList = ol; this.listWrapper.setValue(this.observableList); }
/** * Create a ListDataProvider with a given Executor and an existing * ListProperty * * @param reader the DataReader that will obtain the real data * @param executor an Executor that will make the (asynchronous) call. * @param existingList the ListProperty that will be populated with the * retrieved data. Note that in the past, we had to use a ListProperty * rather than an ObservableList since we override the getData() method, * which should return ObservableValue<T> */ public ListDataProvider(DataReader<T> reader, Executor executor, ObservableList<T> existingList) { this.reader = reader; this.executor = executor; if (existingList != null) { this.observableList = existingList; } else { this.observableList = FXCollections.<T>observableArrayList();// = new SimpleListProperty<T>(FXCollections.<T>observableArrayList()); } this.listWrapper.setValue(observableList); }