Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /* 
   * Copyright (C) 2010---2013 星星(wuweixing)<349446658@qq.com>
   * 
   * This file is part of Wabacus 
   * 
   * Wabacus is free software: you can redistribute it and/or modify
   * it under the terms of the GNU Lesser General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 package com.wabacus.system.component.application.report.abstractreport.configbean;
 
 import java.util.List;
 
 
 public class AbsChartReportBean extends AbsExtendConfigBean
 {
     public final static String DATATYPE_XML="xml";
 
     public final static String DATATYPE_JSON="json";
 
     public final static String DATATYPE_XMLURL="xmlurl";
 
     public final static String DATATYPE_XMLURL_SERVLET="xmlurl-servlet";
 
     public final static String DATATYPE_JSONURL="jsonurl";
 
     public final static String DATATYPE_JSONURL_SERVLET="jsonurl-servlet";
 
     private String chartype;
 
     private String datatype;
 
     private String chartstyleproperty;//显示图表<chart/>的样式
 
 
     private List<List<ReportDataSetBean>> lstDatasetGroupBeans;//根据<dataset/>的groupid进行分组存放,相同的groupid存放在一个List中
     
     public AbsChartReportBean(AbsConfigBean owner)
     {
         super(owner);
     }
 
     public String getChartype()
     {
         return ;
     }
 
     public void setChartype(String chartype)
     {
         if(chartype!=null)
         {
             while(chartype.startsWith("/"))
                 chartype=chartype.substring(1);
         }
         this.=chartype;
     }
 
     public String getDatatype()
     {
         if(this.==null||this..trim().equals(""))
         {
             String _datatype=Config.getInstance().getSystemConfigValue("default-chart-datatype",).trim().toLowerCase();
             if(!.equals(_datatype)&&!.equals(_datatype)&&!.equals(_datatype)
                     &&!.equals(_datatype)&&!.equals(_datatype)&&!.equals(_datatype))
             {
                 throw new WabacusConfigLoadingException("在wabacus.cfg.xml的default-chart-datatype中配置的"+this.+"无效");
             }
             this.=_datatype;
         }
         return ;
     }
 
     public void setDatatype(String datatype)
     {
         this.=datatype==null?"":datatype.toLowerCase().trim();
                 &&!.equals(this.)&&!.equals(this.)
                 &&!.equals(this.))
         {
             throw new WabacusConfigLoadingException("报表"+this.getOwner().getReportBean().getPath()+"配置的datatype属性值:"+this.+"无效");
         }
     }
    public String getChartstyleproperty(ReportRequest rrequest,boolean isStaticPart)
    {
        if(isStaticPartreturn this.;
        return WabacusAssistant.getInstance().getStylepropertyWithDynPart(rrequest,this.,this.,"");
    }
    public void setChartstyleproperty(String chartstyleproperty,boolean isStaticPart)
    {
        if(isStaticPart)
        {
            this.=chartstyleproperty;
        }else
        {
            Object[] objArr=WabacusAssistant.getInstance().parseStylepropertyWithDynPart(chartstyleproperty);
            this.=(String)objArr[0];
            this.=(List<String>)objArr[1];
        }
    }
    {
        return ;
    }
    public void setLstDatasetGroupBeans(List<List<ReportDataSetBean>> lstDatasetGroupBeans)
    {
        this.=lstDatasetGroupBeans;
    }
New to GrepCode? Check out our FAQ X