edu.UCL.satin.impl.container
Class ComponentListenerFilter

java.lang.Object
  extended byedu.UCL.satin.impl.container.ComponentListenerFilter

public class ComponentListenerFilter
extends java.lang.Object

This is a datastructure that maps between a component listener and a matching filter.

Author:
Stefanos Zachariadis

Field Summary
private  java.util.Hashtable filter
           
private  ComponentListener listener
           
 
Constructor Summary
ComponentListenerFilter(ComponentListener listener)
          Creates a new ComponentListenerFilter, for a component listener that wishes to be notified for all new components found (no filter)
ComponentListenerFilter(ComponentListener listener, java.util.Hashtable filter)
          Creates a new ComponentListenerFilter
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Hashtable getFilter()
          returns the filter for this component listner
 ComponentListener getListener()
          returns the actual component listener
 boolean hasFilter()
          Checks whether this listener has a particular filter assignesd to it.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

private ComponentListener listener

filter

private java.util.Hashtable filter
Constructor Detail

ComponentListenerFilter

public ComponentListenerFilter(ComponentListener listener,
                               java.util.Hashtable filter)
Creates a new ComponentListenerFilter

Parameters:
listener - the component listener
filter - its filter that is used to match components

ComponentListenerFilter

public ComponentListenerFilter(ComponentListener listener)
Creates a new ComponentListenerFilter, for a component listener that wishes to be notified for all new components found (no filter)

Parameters:
listener -
Method Detail

equals

public boolean equals(java.lang.Object obj)

getListener

public ComponentListener getListener()
returns the actual component listener

Returns:
the component listener

getFilter

public java.util.Hashtable getFilter()
returns the filter for this component listner

Returns:
the filter, or null if there is no filter

hasFilter

public boolean hasFilter()
Checks whether this listener has a particular filter assignesd to it.

Returns:
true if it has a filter, or false otherwise