001    /*****************************************************************************
002    
003        jBudget.
004        Copyright (C) 2006  Dmitri Petrov
005    
006        This program is free software: you can redistribute it and/or modify
007        it under the terms of the GNU General Public License as published by
008        the Free Software Foundation, either version 3 of the License, or
009        (at your option) any later version.
010    
011        This program is distributed in the hope that it will be useful,
012        but WITHOUT ANY WARRANTY; without even the implied warranty of
013        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014        GNU General Public License for more details.
015    
016        You should have received a copy of the GNU General Public License
017        along with this program.  If not, see <http://www.gnu.org/licenses/>.
018     
019    ******************************************************************************/
020    
021    
022    package org.jbudget.gui;
023    
024    import org.jbudget.Core.TransactionFilter;
025    
026    /**
027     * Interface that should be implemented by all components that wish to 
028     * receive updates informing them that the transaction filter has been 
029     * changed.
030     * 
031     * @author petrov
032     */
033    public interface FilterChangeListener 
034    {
035        /** Method that is called when the state of the TransactionFilter used
036         * by several GUI compoenents changes.
037         * 
038         * @param newFilter the new filter object.
039         * @param initiator reference to the object that initiated the change.
040         */
041        public void filterUpdated(TransactionFilter newFilter, Object initiator);
042    }