/** * Informs clients which have registered a {@link ProductNodeListener} with the {@link Product} * containing this {@link VectorDataNode}, that one or more OpenGIS {@code SimpleFeature}s have * been added to the underlying {@code FeatureCollection}. * <p/> * The method fires a product node property change event, where the {@code propertyName} * is {@link #PROPERTY_NAME_FEATURE_COLLECTION}, the {@code oldValue} is {@code null}, and * the {@code newValue} is the array of features added. * * @param features The feature(s) added. */ public void fireFeaturesAdded(SimpleFeature... features) { bounds = null; fireProductNodeChanged(PROPERTY_NAME_FEATURE_COLLECTION, null, features); }
/** * Informs clients which have registered a {@link ProductNodeListener} with the {@link Product} * containing this {@link VectorDataNode}, that one or more OpenGIS {@code SimpleFeature}s from * from the underlying {@code FeatureCollection} have been changed. * <p/> * The method fires a product node property change event, where the {@code propertyName} * is {@link #PROPERTY_NAME_FEATURE_COLLECTION}, and both {@code oldValue} and {@code newValue} * are the same array of features changed. * * @param features The feature(s) changed. */ public void fireFeaturesChanged(SimpleFeature... features) { bounds = null; fireProductNodeChanged(PROPERTY_NAME_FEATURE_COLLECTION, features, features); }
/** * Informs clients which have registered a {@link ProductNodeListener} with the {@link Product} * containing this {@link VectorDataNode}, that one or more OpenGIS {@code SimpleFeature}s have * been removed from the underlying {@code FeatureCollection}. * <p/> * The method fires a product node property change event, where the {@code propertyName} * is {@link #PROPERTY_NAME_FEATURE_COLLECTION}, the {@code oldValue} is the array of features * removed, and the {@code newValue} is {@code null}. * * @param features The feature(s) removed. */ public void fireFeaturesRemoved(SimpleFeature... features) { bounds = null; fireProductNodeChanged(PROPERTY_NAME_FEATURE_COLLECTION, features, null); }
public void setStyleCss(String styleCss) { if (!ObjectUtils.equalObjects(this.styleCss, styleCss)) { String oldValue = this.styleCss; this.styleCss = styleCss; fireProductNodeChanged(PROPERTY_NAME_STYLE_CSS, oldValue, this.styleCss); } }
public void setDefaultStyleCss(String defaultStyleCss) { Assert.notNull(this.defaultStyleCss, PROPERTY_NAME_DEFAULT_STYLE_CSS); if (!ObjectUtils.equalObjects(this.defaultStyleCss, defaultStyleCss)) { String oldValue = this.defaultStyleCss; this.defaultStyleCss = defaultStyleCss; fireProductNodeChanged(PROPERTY_NAME_DEFAULT_STYLE_CSS, oldValue, this.defaultStyleCss); } }