Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.filter
Class AndFilterHeaderCallback

java.lang.Object
  extended by com.sciapp.filter.AndFilterHeaderCallback
All Implemented Interfaces:
FilterHeaderCallback

public class AndFilterHeaderCallback
extends Object
implements FilterHeaderCallback

AndFilterHeaderCallback combines two or more call backs together. Thus mouse events from the header are propagated to more than one call back.


Field Summary
protected  FilterHeaderCallback[] callBacks
          an array of call backs
 
Constructor Summary
AndFilterHeaderCallback(FilterHeaderCallback[] callBacks)
          Constructs an AndFilterHeaderCallback.
AndFilterHeaderCallback(FilterHeaderCallback callBack1, FilterHeaderCallback callBack2)
          Constructs an AndFilterHeaderCallback.
 
Method Summary
 boolean shouldProcessEvent(MouseEvent e)
          Determines whether the mouse event generated on the table's header should be propagated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callBacks

protected FilterHeaderCallback[] callBacks
an array of call backs

Constructor Detail

AndFilterHeaderCallback

public AndFilterHeaderCallback(FilterHeaderCallback[] callBacks)
Constructs an AndFilterHeaderCallback.


AndFilterHeaderCallback

public AndFilterHeaderCallback(FilterHeaderCallback callBack1,
                               FilterHeaderCallback callBack2)
Constructs an AndFilterHeaderCallback.

Method Detail

shouldProcessEvent

public boolean shouldProcessEvent(MouseEvent e)
Determines whether the mouse event generated on the table's header should be propagated.

Specified by:
shouldProcessEvent in interface FilterHeaderCallback
Parameters:
e - the mouse event.
Returns:
true if the event is to be processed, false otherwise.

Copyright © 2005 Scientific Applications. All Rights Reserved.