2 * jSite2 - InsertListener.java - Copyright © 2008 David Roden
4 * This program is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation; either version 2 of the License, or (at your option) any later
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16 * Place - Suite 330, Boston, MA 02111-1307, USA.
19 package net.pterodactylus.jsite.core;
21 import java.util.EventListener;
24 * Interface for objects that want to be notified on events emitted by the
25 * {@link InsertManager}.
27 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
29 public interface InsertListener extends EventListener {
32 * Notifies a listener that an insert was added.
35 * The insert that was added
37 public void insertAdded(Insert insert);
40 * Notifies a listener that an insert was removed.
43 * The insert that was removed
45 public void insertRemoved(Insert insert);
48 * Notifies a listener that an insert was started.
51 * The insert that was started
53 public void insertStarted(Insert insert);
56 * Notifies a listener that an insert made some progress.
59 * The insert that made some progress
61 public void insertProgressed(Insert insert);
64 * Notifies listeners that an insert generated a URI.
67 * The insert that generated a URI
71 public void insertGeneratedURI(Insert insert, String uri);
74 * Notifies a listener that an insert has finished.
77 * The insert that has finished
79 public void insertFinished(Insert insert);