Class AbstractGlobalDataContainerFilter<T extends DataContainer>

  • Type Parameters:
    T - the type of container to filter

    public abstract class AbstractGlobalDataContainerFilter<T extends DataContainer>
    extends Object
    Ancestor for global filters that are used to filter data containers coming from the database or from files.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • AbstractGlobalDataContainerFilter

        protected AbstractGlobalDataContainerFilter()
        Default constructor.
    • Method Detail

      • setFilter

        public void setFilter​(Filter value)
        Sets the filter to run over the data before it is cached.
        Parameters:
        value - the filter
      • getFilter

        public final Filter getFilter()
        Returns the filter used to pre-process the data before it is cached.
        Returns:
        the filter
      • setupFilter

        protected void setupFilter()
        Sets up the filter to use for filtering the containers before they're put in the cache.
      • filter

        public T filter​(T c)
        Filters the data with the currently set filter.
        Parameters:
        c - the container to filter
        Returns:
        the filtered container
        See Also:
        m_Filter
      • addChangeListener

        public void addChangeListener​(GlobalDataContainerFilterChangeListener l)
        Adds a listener for connect/disconnect events to the internal list.
        Parameters:
        l - the listener to add
      • removeChangeListener

        public void removeChangeListener​(GlobalDataContainerFilterChangeListener l)
        Removes a listener for connect/disconnect events from the internal list.
        Parameters:
        l - the listener to remove
      • notifyChangeListeners

        protected void notifyChangeListeners​(GlobalDataContainerFilterChangeEvent e)
        Notifies all listeners with the given event.
        Parameters:
        e - the event to send to the listeners