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