Code example for PropertyChangeSupport

Methods: firePropertyChange

0
		support.addPropertyChangeListener(listener);
	} 
 
	protected void firePropertyChange(String propertyName, Object oldValue,
			Object newValue) {
		support.firePropertyChange(propertyName, oldValue, newValue);
	} 
 
	public void removePropertyChangeListener(PropertyChangeListener listener) {
		support.removePropertyChangeListener(listener);
	} 
 
	/** 
	 * Completion between 0..1 
	 * @param value 
	 */ 
	protected void completed(double value) {
		firePropertyChange("pack.progress", null, String.valueOf((int)(100*value))); //$NON-NLS-1$
	} 
}