3 new apache icons; thanks to Anderson Forteleza
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / wizards / PropertyChangeWizardPage.java
1 package com.quantum.wizards;
2
3 import java.beans.PropertyChangeListener;
4 import java.beans.PropertyChangeSupport;
5
6 import org.eclipse.jface.wizard.WizardPage;
7
8
9 /**
10  * @author BC
11  */
12 public abstract class PropertyChangeWizardPage extends WizardPage {
13
14         protected PropertyChangeWizardPage(String pageName) {
15                 super(pageName);
16         }
17
18         private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);
19
20         /**
21          * @param listener
22          */
23         public void addPropertyChangeListener(PropertyChangeListener listener) {
24                 this.propertyChangeSupport.addPropertyChangeListener(listener);
25         }
26
27         /**
28          * @param listener
29          */
30         public void removePropertyChangeListener(PropertyChangeListener listener) {
31                 this.propertyChangeSupport.removePropertyChangeListener(listener);
32         }
33
34         /**
35          * @param propertyName
36          * @param oldValue
37          * @param newValue
38          */
39         protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
40                 this.propertyChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
41         }
42         /**
43          * @param propertyName
44          * @param oldValue
45          * @param newValue
46          */
47         protected void firePropertyChange(String propertyName, int oldValue, int newValue) {
48                 this.propertyChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
49         }
50         /**
51          * @param propertyName
52          * @param oldValue
53          * @param newValue
54          */
55         protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
56                 this.propertyChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
57         }
58 }