1 13 package com.tonbeller.jpivot.table; 14 15 import javax.servlet.http.HttpSession ; 16 17 import com.tonbeller.wcf.controller.RequestContext; 18 19 20 21 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 { 41 this.table = table; 42 } 43 44 public void destroy(HttpSession session) throws Exception { 45 } 46 47 protected void setDirty(boolean dirty) { 48 if (table != null) 50 table.setDirty(dirty); 51 } 52 53 56 public Object getBookmarkState(int levelOfDetail) { 57 return null; 58 } 59 60 63 public void setBookmarkState(Object state) { 64 } 65 66 } 67 | Popular Tags |