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.
18 package net.pterodactylus.jsite.core;
20 import java.util.EventListener;
23 * Interface for objects that want to be notified on events emitted by the
24 * {@link InsertManager}.
26 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
28 public interface InsertListener extends EventListener {
31 * Notifies a listener that an insert was added.
34 * The insert that was added
36 public void insertAdded(Insert insert);
39 * Notifies a listener that an insert was removed.
42 * The insert that was removed
44 public void insertRemoved(Insert insert);
47 * Notifies a listener that an insert was started.
50 * The insert that was started
52 public void insertStarted(Insert insert);
55 * Notifies a listener that an insert made some progress.
58 * The insert that made some progress
60 public void insertProgressed(Insert insert);
63 * Notifies listeners that an insert generated a URI.
66 * The insert that generated a URI
70 public void insertGeneratedURI(Insert insert, String uri);
73 * Notifies a listener that an insert has finished.
76 * The insert that has finished
78 public void insertFinished(Insert insert);