org.escot
Interface NumberProperty
- All Superinterfaces:
- EscotFeature
- All Known Implementing Classes:
- BasicNumber
- public interface NumberProperty
- extends EscotFeature
A number data type which supports change notification.
getNumberValue
public Number getNumberValue()
- gets the value of this number property
- Returns:
- the value of this number property
addChangeListener
public void addChangeListener(ChangeListener l)
- adds a change listener to this number, to be notified when the number changes
- Parameters:
l - a ChangeListener that wants to be notified of changes to this
NumberProperty
removeChangeListener
public void removeChangeListener(ChangeListener l)
- removes a change listener to this number
- Parameters:
l - a ChangeListener that no longer wants to listen to change events
from this NumberProperty
toString
public String toString()
- converts the number to a String representation
- Overrides:
toString in class Object
- Returns:
- the value of the number in String format