ilog.cpl.util
Class IlpAbstractComparator

java.lang.Object
  extended by ilog.cpl.util.IlpAbstractComparator
All Implemented Interfaces:
IlpMutableComparator, Comparator
Direct Known Subclasses:
IlpAttributeComparator

public abstract class IlpAbstractComparator
extends Object
implements IlpMutableComparator

Abstract implementation of IlpMutableComparator. It provides support for notification.

Since:
JTGO 3.0

Constructor Summary
IlpAbstractComparator()
          Creates an IlpAbstractComparator.
IlpAbstractComparator(Object source)
          Creates and IlpAbstractComparator.
 
Method Summary
 void addChangeListener(ChangeListener l)
          Adds a listener to the comparator.
protected  void fireStateChanged()
          Fires a state change to indicate that the comparator has changed.
 void removeChangeListener(ChangeListener l)
          Removes a listener from the comparator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Constructor Detail

IlpAbstractComparator

public IlpAbstractComparator()
Creates an IlpAbstractComparator. It will use this as the source of events.


IlpAbstractComparator

public IlpAbstractComparator(Object source)
Creates and IlpAbstractComparator. It will use the source parameter as the source of the event, for example, if you extend this class to create a support class.

Method Detail

addChangeListener

public void addChangeListener(ChangeListener l)
Adds a listener to the comparator. This listener will be notified each time a change to the comparator occurs.

Specified by:
addChangeListener in interface IlpMutableComparator
Parameters:
l - The ChangeListener to be added.

removeChangeListener

public void removeChangeListener(ChangeListener l)
Removes a listener from the comparator. This listener was notified each time a change to the comparator occurred.

Specified by:
removeChangeListener in interface IlpMutableComparator
Parameters:
l - The ChangeListener to be removed.

fireStateChanged

protected void fireStateChanged()
Fires a state change to indicate that the comparator has changed.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.