001 /* PAVLOV -- Multiple Choice Study System
002 * Copyright (C) 2000 - 2004 T.J. Willis
003 *
004 * This program is free software; you can redistribute it and/or
005 * modify it under the terms of the GNU General Public License
006 * as published by the Free Software Foundation; either version 2
007 * of the License, or (at your option) any later version.
008 *
009 * This program is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012 * GNU General Public License for more details.
013 *
014 * You should have received a copy of the GNU General Public License
015 * along with this program; if not, write to the Free Software
016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
017 *
018 * $Header: /cvsroot/pavlov/net/sourceforge/pavlov/event/AnswerListener.java,v 1.3 2004/05/10 14:51:57 tj_willis Exp $
019 */
020 package net.sourceforge.pavlov.event;
021
022 /**
023 * This interface is implemented by classes that want to be informed when
024 * a user answers a question. Such classes should implement this interface
025 * and register themselves with the appropriate AnswerEventProducer. In
026 * the Pavlov application, this should be the Quiz object. Note that
027 * Pavlov feedback pluglets are automatically registered at load time.
028 *
029 * @author <a href="mailto:tj_willis@users.sourceforge.net"></a>
030 * @version $Revision: 1.3 $
031 */
032 public interface AnswerListener {
033 /**
034 * Called when the user has answered a question.
035 *
036 * @param e an <code>AnswerEvent</code> value
037 */
038 void answerEvent(AnswerEvent e);
039 }
040
041
042
043
044
045
046
047
048