KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > table > PartBuilderDecorator


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.jpivot.table;
14
15 import javax.servlet.http.HttpSession JavaDoc;
16
17 import com.tonbeller.wcf.controller.RequestContext;
18
19 /**
20  * forwards lifecycle events to decoree
21  * @author av
22  */

23 public abstract class PartBuilderDecorator extends PartBuilderSupport {
24   PartBuilder delegate;
25
26   protected PartBuilderDecorator(PartBuilder delegate) {
27     this.delegate = delegate;
28   }
29   
30   public void startBuild(RequestContext context) {
31     super.startBuild(context);
32     delegate.startBuild(context);
33   }
34
35   public void stopBuild() {
36     delegate.stopBuild();
37     super.stopBuild();
38   }
39
40   public void initialize(RequestContext context, TableComponent table) throws Exception JavaDoc {
41     super.initialize(context, table);
42     delegate.initialize(context, table);
43   }
44
45   public void destroy(HttpSession JavaDoc session) throws Exception JavaDoc {
46     super.destroy(session);
47     delegate.destroy(session);
48   }
49
50 }
51
Popular Tags