edu.neu.ccs.filter
Class NumericFilter

java.lang.Object
  extended byedu.neu.ccs.filter.NumericFilter
All Implemented Interfaces:
Cloneable, Serializable, StringableFilter
Direct Known Subclasses:
BoundFilter, RangeFilter

public abstract class NumericFilter
extends Object
implements StringableFilter, Cloneable, Serializable

Abstract superclass for filters that apply to numeric values.

Since:
1.0
Version:
2.2
See Also:
Serialized Form

Field Summary
protected  SwingPropertyChangeSupport changeAdapter
          Helper object for property change API.
 
Constructor Summary
NumericFilter()
          Constructs a numeric filter.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Registers the given object to listen for property change events generated by this object.
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Registers the given object to listen for property change events generated by this object with the given property name.
 Stringable filterStringable(Stringable obj)
          Returns the given object if it is an instance of type XNumber.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Deregisters the given object from listening for property change events generated by this object.
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Deregisters the given object from listening for property change events generated by this object with the provided property name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeAdapter

protected SwingPropertyChangeSupport changeAdapter
Helper object for property change API.

Constructor Detail

NumericFilter

public NumericFilter()
Constructs a numeric filter.

Method Detail

filterStringable

public Stringable filterStringable(Stringable obj)
                            throws FilterException
Returns the given object if it is an instance of type XNumber.

Specified by:
filterStringable in interface StringableFilter
Parameters:
obj - the object to be filtered
Throws:
FilterException - if the object is not a numeric type.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Registers the given object to listen for property change events generated by this object.

Parameters:
listener - the listener to be registered

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Registers the given object to listen for property change events generated by this object with the given property name.

Parameters:
propertyName - the name of the desired property
listener - the listener to be registered

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Deregisters the given object from listening for property change events generated by this object.

Parameters:
listener - the listener to be deregistered

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
Deregisters the given object from listening for property change events generated by this object with the provided property name.

Parameters:
propertyName - the name of the desired property
listener - the listener to be deregistered