public void setName(String name) { if (!ObjectUtils.equalObjects(this.name, name)) { this.name = name; invalidate(); } }
public void setMessageText(String messageText) { String oldValue = this.messageText; if (!ObjectUtils.equalObjects(oldValue, messageText)) { this.messageText = messageText; repaint(); } }
public void setFont(Font font) { if (!ObjectUtils.equalObjects(this.font, font)) { this.font = font; invalidate(); } }
public void setBackgroundColor(Color backgroundColor) { this.backgroundColor = backgroundColor; if (!ObjectUtils.equalObjects(this.backgroundColor, backgroundColor)) { this.backgroundColor = backgroundColor; invalidate(); } }
public void setMinorGridColor(Color minorGridColor) { if (!ObjectUtils.equalObjects(this.minorGridColor, minorGridColor)) { this.minorGridColor = minorGridColor; invalidate(); } }
public void setUnit(String unit) { if (!ObjectUtils.equalObjects(this.unit, unit)) { this.unit = unit; invalidate(); } }
public void setTextGap(int textGap) { if (!ObjectUtils.equalObjects(this.font, font)) { this.textGap = textGap; invalidate(); } }
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 setMajorGridColor(Color majorGridColor) { if (!ObjectUtils.equalObjects(this.majorGridColor, majorGridColor)) { this.majorGridColor = majorGridColor; invalidate(); } }
public void setForegroundColor(Color foregroundColor) { if (!ObjectUtils.equalObjects(this.foregroundColor, foregroundColor)) { this.foregroundColor = foregroundColor; invalidate(); } }
private void changeInternalProperty(String key, Object oldValue, Object newValue) { if (!ObjectUtils.equalObjects(oldValue, newValue)) { if (newValue != null) { _properties.setProperty(key, newValue.toString()); } else { _properties.remove(key); } firePropertyChange(key, oldValue, newValue); } } }
@Override public boolean equals(Object object) { if (!super.equals(object)) { return false; } MetadataAttribute attribute = (MetadataAttribute) object; return ObjectUtils.equalObjects(attribute.getData(), getData()); }
public void setXName(String xName) { Assert.notNull(xName, "xName"); if (!ObjectUtils.equalObjects(this.xName, xName)) { this.xName = xName; invalidate(); } }
public void setYName(String yName) { Assert.notNull(yName, "yName"); if (!ObjectUtils.equalObjects(this.yName, yName)) { this.yName = yName; invalidate(); } }
/** * Sets a short textual description for this products node. * * @param description a description, can be <code>null</code> */ public void setDescription(String description) { if (!ObjectUtils.equalObjects(this.description, description)) { this.description = description; fireProductNodeChanged(PROPERTY_NAME_DESCRIPTION); setModified(true); } }
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); } }
public void setUnit(String unit) { final String oldValue = this.unit; if (!ObjectUtils.equalObjects(oldValue, unit)) { this.unit = unit; fireProductNodeChanged(PROPERTY_NAME_UNIT, oldValue, unit); setModified(true); } }
/** * Replaces createBitmaskTerm() */ private void createMask() { if (ObjectUtils.equalObjects(sensorType, SensorCoefficientManager.MERIS_NAME)) { createMerisMask(); } else { createAatsrMask(); } }
private static boolean compareRefIds(ReferenceIdentifier refId1, ReferenceIdentifier refId2) { return ObjectUtils.equalObjects(refId1.getCodeSpace(), refId2.getCodeSpace()) && ObjectUtils.equalObjects(refId1.getCode(), refId2.getCode()) && compareVersions(refId1.getVersion(), refId2.getVersion()); }
protected void updateProperty(BindingContext bindingContext, String propertyName, Object styleValue) { PropertySet propertySet = bindingContext.getPropertySet(); if (propertySet.isPropertyDefined(propertyName)) { final Object oldValue = propertySet.getValue(propertyName); if (!ObjectUtils.equalObjects(oldValue, styleValue)) { propertySet.setValue(propertyName, styleValue); } } }