01: package com.teamkonzept.webman.mainint.events;
02:
03: import java.util.*;
04:
05: import com.teamkonzept.web.*;
06:
07: /**
08: * Displays an empty page.
09: * @author $Author: mischa $
10: * @version $Revision: 1.5 $
11: */
12: public class EmptyEventHandler extends DefaultEventHandler {
13:
14: private static EmptyEventHandler instance = new EmptyEventHandler();
15:
16: private EmptyEventHandler() {
17: }
18:
19: public static EmptyEventHandler getInstance() {
20: return instance;
21: }
22:
23: public void handleEvent(TKEvent evt) {
24: evt.doEmptyPage();
25: }
26:
27: public boolean isHandler(TKEvent evt) {
28: return evt.getName().endsWith("EMPTY");
29: }
30:
31: }
|