Methods Summary |
---|
public void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)
propChanges.addPropertyChangeListener(listener);
|
public synchronized double | getA()
return a;
|
public synchronized double | getB()
return b;
|
public synchronized double | getC()
return c;
|
private void | multiply()
double oldC = c;
c = a * b;
propChanges.firePropertyChange(
"C", new Double(oldC) , new Double(c) );
|
public void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)
propChanges.removePropertyChangeListener(listener);
|
public synchronized void | setA(double val)
a = val;
multiply();
|
public synchronized void | setB(double val)
b = val;
multiply();
|
public synchronized void | setC(double val)
multiply();
|