public void setStringValue(String newValue) { System.out.println("String value set: " + newValue); String oldValue = stringValue; this.stringValue = newValue; changeSupport.firePropertyChange("stringValue", oldValue, newValue); }
public void addPropertyChangeListener(PropertyChangeListener x) { changeSupport.addPropertyChangeListener(x); }
public void removePropertyChangeListener(PropertyChangeListener x) { changeSupport.removePropertyChangeListener(x); }
public void setBooleanValue(boolean newValue) { System.out.println("Boolean value set: " + newValue); boolean oldValue = booleanValue; booleanValue = newValue; changeSupport.firePropertyChange("booleanValue", oldValue, newValue); }