CSS样式 JS特效 Java小工具 文学文档 Java插件 截图软件

  • l4_405721
    了解作者
  • 2.9KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-04 04:54
    上传日期
NULL 博文链接:https://fengshayage.iteye.com/blog/1067622
wap.rar
  • wap
  • use
  • use.jsp
    5.2KB
  • use.jsp.bak
    0B
  • Pager.java
    3.8KB
内容介绍
package com.huawei.iread.ieach.util; import java.util.List; /** * pagination class * * @author Administrator * */ @SuppressWarnings("unchecked") public class Pager { public final static int PAGESIZE = 10; private int pageSize = PAGESIZE; private int totalCount; private int currentPage; private int totalPage; private List items = null; private String staticUrl; private int prePage = 0; private int nextPage = 0; private int wap_version = 1; /** * constructor * * @param list * @param totalCount * @param pageSize * @param currentPage */ public Pager(List list, int totalCount, int currentPage, int pageSize) { if (!(list == null || list.isEmpty())) { this.items = list; this.totalCount = totalCount; this.pageSize = pageSize; this.currentPage = currentPage; this.setTotalPage(totalCount); } } public Pager(List list, int totalCount, int currentPage, int pageSize, String staticUrl) { if (!(list == null || list.isEmpty())) { this.items = list; this.totalCount = totalCount; this.pageSize = pageSize; this.currentPage = currentPage; this.staticUrl = staticUrl; this.setTotalPage(totalCount); } } public Pager(int totalCount, int currentPage, int pageSize, String staticUrl) { this.totalCount = totalCount; this.pageSize = pageSize; this.currentPage = currentPage; this.staticUrl = staticUrl; this.setTotalPage(totalCount); } public Pager(List list, int totalCount, int currentPage, int pageSize, String staticUrl, int wap_version) { if (!(list == null || list.isEmpty())) { this.items = list; this.totalCount = totalCount; this.pageSize = pageSize; this.currentPage = currentPage; this.staticUrl = staticUrl; this.setTotalPage(totalCount); this.wap_version = wap_version; } } /** * get items * * @return */ public List getItems() { return items; } /** * calculate total Page * * @param totalCount */ public void setTotalPage(int totalCount) { int count = 0; count = totalCount / pageSize; if (totalCount % pageSize > 0) { count++; } this.totalPage = count; if (this.totalPage <= this.currentPage) { this.currentPage = this.totalPage; this.nextPage = this.totalPage; } else { this.nextPage = this.currentPage + 1; } if (this.currentPage <= 1) { this.currentPage = 1; this.prePage = 1; } else { this.prePage = this.currentPage - 1; } } public int getTotalCount() { return totalCount; } public int getCurrentPage() { return currentPage; } public int getTotalPage() { return totalPage; } public int getPageSize() { return pageSize; } public String getStaticUrl() { return staticUrl; } public int getPrePage() { return prePage; } public int getNextPage() { return nextPage; } public int getWap_version() { return wap_version; } }
评论
    相关推荐
    • CasseBrique:https
      CasseBrique:https
    • plaintextoffenders:https
      纯文字罪犯 向报告的域的公开列表
    • 使用socket post 数据到httphttps
      使用socket post 数据到httphttps
    • nodejs http-server开启https的证书
      https证书文件,nodejs http-server开启https的证书,可以直接在本地启动https的协议,方便部署和使用。
    • http https 切换
      http https切换代码,能够实现网站在传输信息的过程中不易遭人盗取
    • Http2Https-crx插件
      将书签中的http转换为https 害怕用https书签替换旧的http书签? 随着许多网站迁移到https,旧的http书签使星标图像为空。 搜索并转换为https! ****************************************************** ***********...
    • LocomotiveCMS https to http-crx插件
      语言:English 将登录网址从https替换为http以进行开发 此扩展程序供使用机车cms开发应用程序时供个人使用。 为了易于在开发模式下使用,此扩展程序将https登录网址替换为http
    • http:https的镜像
      框架HTTP
    • CookieIsolator:分离 HTTPHTTPS cookie
      松散隔离:HTTP cookie 只能在 HTTP 通道中发送,而 HTTPS cookie 可以在 HTTP(不带安全标志)和 HTTPS 通道中发送。 严格隔离:HTTP cookie 和 HTTPS cookie 只能分别在 HTTPHTTPS 通道中发送。 Ext Secure...
    • https协议
      NULL 博文链接:https://willwen.iteye.com/blog/1988199