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 AbsListReportBean extends AbsExtendConfigBean
 {
     public final static int SCROLLTYPE_NONE=0;
     
     public final static int SCROLLTYPE_FIXED=1;
     
     public final static int SCROLLTYPE_VERTICAL=2;
     
     public final static int SCROLLTYPE_HORIZONTAL=3;
     
     public final static int SCROLLTYPE_ALL=4;
     
     private String rowSelectType;
     
     private boolean isSelectRowCrossPages;
 
 
     private List<StringlstRoworderTypes;
     
     
     private int fixedrows;
     
     private int fixedcols;
     
     
     public AbsListReportBean(AbsConfigBean owner)
     {
         super(owner);
     }
 
     public String getRowSelectType()
     {
         return ;
     }
 
     public void setRowSelectType(String rowSelectType)
     {
         this.=rowSelectType;
     }
 
     public boolean isSelectRowCrossPages()
     {
         return ;
     }
 
     public void setSelectRowCrossPages(boolean isSelectRowCrossPages)
     {
         this.=isSelectRowCrossPages;
     }
 
     {
         return ;
     }
 
     public void setLstRowSelectCallBackFuncs(List<StringlstRowSelectCallBackFuncs)
     {
         this.=lstRowSelectCallBackFuncs;
     }
 
     public List<StringgetLstRoworderTypes()
     {
         return ;
     }
 
     public void setLstRoworderTypes(List<StringlstRoworderTypes)
    {
        this.=lstRoworderTypes;
    }
    {
        return ;
    }
    public void setLoadStoreRoworderObject(IListReportRoworderPersistence loadStoreRoworderObject)
    {
        this.=loadStoreRoworderObject;
    }
    public void addRowSelectCallBackFunc(String rowselectMethod)
    {
        if(rowselectMethod==null||rowselectMethod.trim().equals("")||rowselectMethod.trim().equals("''")) return;
        rowselectMethod=rowselectMethod.trim();
        if(==null)
        {
            =new ArrayList<String>();
        }else if(.contains(rowselectMethod))
        {
            return;
        }
        .add(rowselectMethod);
    }
    public int getFixedrows()
    {
        return ;
    }
    public void setFixedrows(int fixedrows)
    {
        this.=fixedrows;
    }
    public int getFixedcols(ReportRequest rrequest)
    {
        if(rrequest==nullreturn ;
        Object objVal=rrequest.getAttribute(this.getOwner().getReportBean().getId(),"DYNAMIC_FIXED_COLSCOUNT");
        if(objVal==nullreturn ;
        return ((Integer)objVal).intValue();
    }
    public void setFixedcols(ReportRequest rrequest,int fixedcols)
    {
        if(rrequest==null)
        {
            this.=fixedcols;
        }else
        {//是运行时设置fixedcols(目前只有交叉动态列报表是这种情况,在运行时计算固定列)
            rrequest.setAttribute(this.getOwner().getReportBean().getId(),"DYNAMIC_FIXED_COLSCOUNT",fixedcols);
        }
    }
    {
        return ;
    }
    public void setSubdisplaybean(AbsListReportSubDisplayBean subdisplaybean)
    {
        this.=subdisplaybean;
    }
    public int getScrollType()
    {
        if(this.>0||this.>0) return ;
        ReportBean rbean=(ReportBean)this.getOwner();
        if(rbean.getScrollheight()!=null&&!rbean.getScrollheight().trim().equals("")&&rbean.getScrollwidth()!=null
                &&!rbean.getScrollwidth().trim().equals("")) return ;
        if(rbean.getScrollheight()!=null&&!rbean.getScrollheight().trim().equals("")) return ;
        if(rbean.getScrollwidth()!=null&&!rbean.getScrollwidth().trim().equals("")) return ;
        return ;
    }
    
    public boolean hasControllCol()
    {
            return true;
        if(this.!=null&&(this..contains(.)
                ||this..contains(.)||this..contains(.))) return true;
        return false;
    }
    
    public AbsExtendConfigBean clone(AbsConfigBean owner)
    {
        AbsListReportBean mynewrbean=(AbsListReportBean)super.clone(owner);
        if(!=null)
        {
            mynewrbean
                            .clone());
        }
        if(this.!=null)
        {
            mynewrbean.setSubdisplaybean((AbsListReportSubDisplayBean).clone(owner));
        }
        
        return mynewrbean;
    }
New to GrepCode? Check out our FAQ X