Repository navigation
Expand file tree
/
Copy pathPage.java
More file actions
executable file
·64 lines (64 loc) · 2.23 KB
/
Copy pathPage.java
File metadata and controls
executable file
·64 lines (64 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package util;
public class Page {
private int everyPage; //ÿҳ��ʾ��¼��
private int totalCount; //�ܼ�¼��
private int totalPage; //��ҳ��
private int currentPage; //��ǰҳ
private int beginIndex; //��ѯ��ʼ��
private boolean hasPrePage; //�Ƿ�����һҳ
private boolean hasNextPage; //�Ƿ�����һҳ
public Page(int everyPage, int totalCount, int totalPage,
int currentPage,int beginIndex, boolean hasPrePage,
boolean hasNextPage) { //�Զ��幹�췽��
this.everyPage = everyPage;
this.totalCount = totalCount;
this.totalPage = totalPage;
this.currentPage = currentPage;
this.beginIndex = beginIndex;
this.hasPrePage = hasPrePage;
this.hasNextPage = hasNextPage;
}
public Page(){} //Ĭ�Ϲ��캯��
public int getEveryPage() { //���ÿҳ��ʾ��¼��
return everyPage;
}
public void setEveryPage(int everyPage) {//����ÿҳ��ʾ��¼��
this.everyPage = everyPage;
}
public int getTotalCount() {//����ܼ�¼��
return totalCount;
}
public void setTotalCount(int totalCount) {//�����ܼ�¼��
this.totalCount = totalCount;
}
public int getTotalPage() {//�����ҳ��
return totalPage;
}
public void setTotalPage(int totalPage) {//������ҳ��
this.totalPage = totalPage;
}
public int getCurrentPage() {//��õ�ǰҳ
return currentPage;
}
public void setCurrentPage(int currentPage) {//���õ�ǰҳ
this.currentPage = currentPage;
}
public int getBeginIndex() {//��ò�ѯ��ʼ��
return beginIndex;
}
public void setBeginIndex(int beginIndex) {//���ò�ѯ��ʼ��
this.beginIndex = beginIndex;
}
public boolean isHasPrePage() {//����Ƿ�����һҳ
return hasPrePage;
}
public void setHasPrePage(boolean hasPrePage) {//�����Ƿ�����һҳ
this.hasPrePage = hasPrePage;
}
public boolean isHasNextPage() {//����Ƿ�����һҳ
return hasNextPage;
}
public void setHasNextPage(boolean hasNextPage) {//�����Ƿ�����һҳ
this.hasNextPage = hasNextPage;
}
}