KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > tabbed > PanelChangeEvent


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.tabbed;
14
15 import java.util.EventObject JavaDoc;
16
17 import org.w3c.dom.Element JavaDoc;
18
19 /**
20  * @author informs listeners about the panel that changed
21  */

22 public class PanelChangeEvent extends EventObject JavaDoc {
23
24   private Element JavaDoc currentPanel;
25   private TabbedHandler handler;
26
27   public PanelChangeEvent(TabbedHandler handler, Element JavaDoc currentPanel) {
28     super(handler);
29     this.handler = handler;
30     this.currentPanel = currentPanel;
31   }
32   /**
33    * @return Returns the currentPanelId.
34    */

35   public Element JavaDoc getCurrentPanel() {
36     return currentPanel;
37   }
38   /**
39    * @return Returns the handler.
40    */

41   public TabbedHandler getHandler() {
42     return handler;
43   }
44 }
Popular Tags