Code example for PropertyChangeEvent

0
	} 
	 
	public void setBooleanValue(boolean b) {
		boolean old = value;
		this.value = b;
		firePropertyChangedEvent(new PropertyChangeEvent(this, this.getAtttributeName(), old, b));
	} 
 
	@Override 
	public void setValue(String value) {
		if ("true".equals(value)) {
			setBooleanValue(true); 
		} 
		else if ("false".equals(value)) {
			setBooleanValue(false); 
		} 
	} 
}