001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.tagging.ac;
003
004import java.util.EventListener;
005
006/**
007 * The listener interface for receiving autoComp events.
008 * The class that is interested in processing an autoComp event
009 * implements this interface, and the object created with that
010 * class is registered with a component, using the component's
011 * <code>addAutoCompListener</code> method. When the autoComp event
012 * occurs, that object's <code>autoCompPerformed</code> method is
013 * invoked.
014 *
015 * @see AutoCompEvent
016 * @since 18221
017 */
018public interface AutoCompListener extends EventListener {
019
020    /**
021     * Invoked before an autocomplete.  You can use this to change the model.
022     *
023     * @param e an {@link AutoCompEvent}
024     */
025    void autoCompBefore(AutoCompEvent e);
026
027    /**
028     * Invoked after an autocomplete happened.
029     *
030     * @param e an {@link AutoCompEvent}
031     */
032    void autoCompPerformed(AutoCompEvent e);
033}