Package com.google.code.lightssh.common.web.tag.table.components

Examples of com.google.code.lightssh.common.web.tag.table.components.Pagination


  protected String pageSizeArray;

  @Override
  public Component getBean(ValueStack stack, HttpServletRequest req,
      HttpServletResponse res) {
    return new Pagination(stack, req, res);
  }
View Full Code Here


   * @see com.opensymphony.webwork.views.jsp.ui.AbstractUITag#populateParams()
   */
  protected void populateParams() {
    super.populateParams();

    Pagination pagination = ((Pagination) component);
    pagination.setValue(value);
   
    if( StringUtil.hasText(length))
      pagination.setLength( Integer.valueOf(length) );
   
    if( StringUtil.hasText(pageSizeArray)){
      try{
        String[] array = pageSizeArray.split(",");
        int[] pageSize = new int[array.length];
        for( int i=0;i<array.length;i++ )
          pageSize[i] = Integer.valueOf(array[i]);
        pagination.setPageSizeArray( pageSize );
      }catch( Exception e ){
        LOG.warn("分页标签参数设置错误:",e);
      }
    }
   
    pagination.setPageParamPrefix(pageParamPrefix);
   
  }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.common.web.tag.table.components.Pagination

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.