public abstract class AbstractCalculation<N> extends java.lang.Object implements Calculation<N>
| Constructor and Description |
|---|
AbstractCalculation(N initialValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl) |
protected void |
fireValueChange(N oldValue,
N newValue)
A convenience method for firing a PropertyChangeEvent describing a
change in the value of this calculation.
|
java.lang.String |
getName() |
N |
getValue() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl) |
void |
setName(java.lang.String name)
Adjusts the Calculation to have the new
name; |
protected void |
setValue(N value)
Subclasses should call this method in order to update the value that is
reported from this calculation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposepublic AbstractCalculation(N initialValue)
initialValue - the value that should immediately be reported as the
value of this Calculationpublic void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
addPropertyChangeListener in interface Calculation<N>pcl - a PropertyChangeListener to notify any time the
value changespublic void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
removePropertyChangeListener in interface Calculation<N>pcl - a PropertyChangeListener which should no longer be notified
of value changespublic java.lang.String getName()
getName in interface Calculation<N>public void setName(java.lang.String name)
Calculationname;setName in interface Calculation<N>name - the new human-readable name of this Calculationpublic N getValue()
getValue in interface Calculation<N>protected void setValue(N value)
fireValueChange(Object, Object).value - the new value of this calculationprotected void fireValueChange(N oldValue, N newValue)
oldValue - the old value reported from this calculationnewValue - the new value reported from this calculationGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2017-07-26 15:03