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.


Fields inherited from interface org.escot.EscotFeature
COLOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, ICON16x16_ATTRIBUTE, TYPE_ATTRIBUTE
 
Method Summary
 void addChangeListener(ChangeListener l)
          adds a change listener to this number, to be notified when the number changes
 Number getNumberValue()
          gets the value of this number property
 void removeChangeListener(ChangeListener l)
          removes a change listener to this number
 String toString()
          converts the number to a String representation
 
Methods inherited from interface org.escot.EscotFeature
addPropertyChangeListener, duplicate, getAttribute, getName, putAttribute, removePropertyChangeListener
 

Method Detail

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