1 /*
2  *  CVS: $Id: EventListener.java,v 1.4 2004/07/16 16:22:33 marcus Exp $
3  * 
4  *  This file is part of Zuul.
5  *
6  *  Zuul is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10 *
11 *  Zuul is distributed in the hope that it will be useful,
12 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 *  GNU General Public License for more details.
15 *
16 *  You should have received a copy of the GNU General Public License
17 *  along with Zuul; if not, write to the Free Software
18 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 * 
20 *  Copyrigth 2004 by marcus, leh
21 * 
22 */
23 
24package org.jzuul.engine;
25
26/**
27 * Dieses Interface definiert die Methoden die eine JZuul Klasse implementieren muss um
28 * von dem Event System benutzt werden zu können 
29 * 
30 * 
31 * @version $Revision: 1.4 $
32 * @see org.jzuul.engine.Event
33 * @see org.jzuul.engine.EventHandler
34 */
35public interface EventListener {
36    /**
37     * Wird von auslösenden Objekten aufgerufen um einem Objekt ein Event mitzuteilen
38     * 
39     * @param id    die Id des Events
40     * @see org.jzuul.engine.Event
41     */
42    void doEvent(int id);
43    
44    /**
45     * Wird von dem Event System benutzt um einem Objekt einen {@link EventHandler} zuzuweisen.
46     * 
47     * @param eventName der Name des Events
48     * @param handler           das EventHandler Objekt für dieses Event
49     * @see org.jzuul.engine.Event
50     * @see org.jzuul.engine.EventHandler
51     */
52     void setHandler(String eventName, EventHandler handler);
53
54}
55