KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > web > TKEventHandler


1
2 /**
3  * Title: <p>
4  * Description: <p>
5  * Copyright: Copyright (c) <p>
6  * Company: <p>
7  * @author
8  * @version 1.0
9  */

10 package com.teamkonzept.web;
11
12 import com.teamkonzept.lib.TKException;
13
14 public interface TKEventHandler
15 {
16     /** handles the event */
17     public void handleEvent(TKEvent evt) throws TKException;
18
19     /** returns true, if it wants to handle this event */
20     public boolean isHandler(TKEvent evt);
21
22     public void addEventHandler(TKEventHandler handler);
23     public void removeEventHandler(TKEventHandler handler);
24
25     /** setzt die zu behandelnden Events*/
26     public void setHandleEvents(TKEvent[] events);
27
28     /** liefert die zu behandelnden Events zurueck */
29     public TKEvent[] getHandleEvents();
30
31     /**
32      * Creates an event object.
33      *
34      * @param http the responsible HTTP interface.
35      * @return an event object.
36      */

37     public abstract TKEvent createEvent (TKHttpInterface http);
38
39 }
40
Popular Tags