1 11 package com.tonbeller.jpivot.chart; 12 13 import javax.servlet.jsp.JspException ; 14 15 import com.tonbeller.jpivot.olap.model.OlapModel; 16 import com.tonbeller.wcf.component.Component; 17 import com.tonbeller.wcf.component.ComponentTag; 18 import com.tonbeller.wcf.controller.RequestContext; 19 20 21 25 public class ChartComponentTag extends ComponentTag { 26 String query; 27 String baseDisplayURL; 28 String controllerURL; 29 30 33 public Component createComponent(RequestContext context) throws Exception { 34 OlapModel model = (OlapModel) context.getModelReference(getQuery()); 36 if (model == null) 38 throw new JspException ("component \"" + getQuery() + "\" not found"); 39 48 return new ChartComponent(id, null, query, baseDisplayURL, controllerURL, context); 49 } 50 51 55 public String getQuery() { 56 return query; 57 } 58 59 63 public void setQuery(String query) { 64 this.query = query; 65 } 66 67 71 public String getBaseDisplayURL() { 72 return baseDisplayURL; 73 } 74 75 79 public void setBaseDisplayURL(String baseDisplayURL) { 80 this.baseDisplayURL = baseDisplayURL; 81 } 82 83 public String getControllerURL() { 84 return controllerURL; 85 } 86 87 public void setControllerURL(String controllerURL) { 88 this.controllerURL = controllerURL; 89 } 90 91 } 92 | Popular Tags |