⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pagebean.java

📁 在线购物系统,ajax+jsp实现
💻 JAVA
字号:
package com.accp.gz.th.zm.client.javabean;

import java.util.*;

import com.accp.gz.th.zm.server.action.*;

public class PageBean {
    public PageBean() {
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    private int pageNo=1; // 页码
    private int linesPerPage=10;  // 每页几行
    private int tid;  // 类别ID

    private int totalLines;  // 总行数
    private int totalPages;  // 总页数
    private int linesInLastPage;  // 最后一页的行数
    private ArrayList dataList;  // 要显示的数据集


    public int getPageNo() {
        return pageNo;
    }

    public int getLinesPerPage() {
        return linesPerPage;
    }

    public int getTotalLines() {
        return totalLines;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public int getLinesInLastPage() {
        return linesInLastPage;
    }

    /**
     * 获得要显示的数据集
     */
    public ArrayList getDataList() {
        dataList = BusinessDelegate.select(this);
        return dataList;
    }

    public int getTid() {
        return tid;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public void setLinesPerPage(int linesPerPage) {
        this.linesPerPage = linesPerPage;
    }

    public void setTotalLines(int totalLines) {
        this.totalLines = totalLines;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public void setLinesInLastPage(int linesInLastPage) {
        this.linesInLastPage = linesInLastPage;
    }

    public void setDataList(ArrayList dataList) {
        this.dataList = dataList;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    private void jbInit() throws Exception {
    }


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -