KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > events > EmptyEventHandler


1 package com.teamkonzept.webman.mainint.events;
2
3 import java.util.*;
4
5 import com.teamkonzept.web.*;
6
7 /**
8  * Displays an empty page.
9  * @author $Author: mischa $
10  * @version $Revision: 1.5 $
11  */

12 public class EmptyEventHandler extends DefaultEventHandler
13 {
14
15     private static EmptyEventHandler instance = new EmptyEventHandler();
16     
17     private EmptyEventHandler()
18     {}
19     
20     public static EmptyEventHandler getInstance()
21     {
22         return instance;
23     }
24     
25     public void handleEvent(TKEvent evt)
26     {
27         evt.doEmptyPage();
28     }
29     
30     public boolean isHandler(TKEvent evt)
31     {
32         return evt.getName().endsWith( "EMPTY" );
33     }
34
35
36 }
37
Popular Tags