KickJava   Java API By Example, From Geeks To Geeks.

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


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
21 /**
22  * Created on 18.10.2002
23  *
24  * @author av
25  */

26 public abstract class PartBuilderSupport implements PartBuilder {
27   protected TableComponent table;
28
29
30   public void startBuild(RequestContext context) {
31   }
32   
33   public void stopBuild() {
34   }
35
36   public boolean isAvailable() {
37     return true;
38   }
39
40   public void initialize(RequestContext context, TableComponent table) throws Exception JavaDoc {
41     this.table = table;
42   }
43  
44   public void destroy(HttpSession JavaDoc session) throws Exception JavaDoc {
45   }
46   
47   protected void setDirty(boolean dirty) {
48     // initialized?
49
if (table != null)
50       table.setDirty(dirty);
51   }
52   
53   /**
54    * returns null
55    */

56   public Object JavaDoc getBookmarkState(int levelOfDetail) {
57     return null;
58   }
59
60   /**
61    * does nothing
62    */

63   public void setBookmarkState(Object JavaDoc state) {
64   }
65
66 }
67
Popular Tags