1 13 package com.tonbeller.jpivot.navigator; 14 15 import javax.servlet.jsp.JspException ; 16 17 import com.tonbeller.jpivot.olap.model.OlapModel; 18 import com.tonbeller.wcf.component.Component; 19 import com.tonbeller.wcf.component.ComponentTag; 20 import com.tonbeller.wcf.controller.RequestContext; 21 22 27 public class NavigatorTag extends ComponentTag { 28 29 String query; 30 31 34 public Component createComponent(RequestContext context) throws JspException { 35 OlapModel olapModel = (OlapModel) context.getModelReference(query); 36 if (olapModel == null) 37 throw new JspException ("query \"" + query + "\" not found"); 38 return new Navigator(getId(), null, olapModel); 39 } 40 41 45 public String getQuery() { 46 return query; 47 } 48 49 53 public void setQuery(String query) { 54 this.query = query; 55 } 56 57 } 58 | Popular Tags |