public class PageGroupBean extends Object implements Serializable
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
_allPageCount |
protected List<Integer> |
_cachedPageNumberList |
protected int |
_currentPageNumber |
protected PageGroupOption |
_pageGroupOption |
| コンストラクタと説明 |
|---|
PageGroupBean() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertPageGroupValid() |
<LINK extends PageNumberLink> |
buildPageNumberLinkList(PageNumberLinkSetupper<LINK> manyArgLambda)
Build the list of page number link.
|
protected int |
calculateStartPageNumber()
Calculate start page number.
|
protected int[] |
convertListToIntArray(List<Integer> ls) |
List<Integer> |
createPageNumberList()
Create the list of page number.
|
boolean |
existsNextGroup()
Does the next group exist?
|
boolean |
existsPreviousGroup()
Does the previous group exist?
|
int |
getNextGroupNearestPageNumber()
Get the value of nextGroupNearestPageNumber that is calculated.
|
int |
getPreGroupNearestPageNumber()
Get the value of preGroupNearestPageNumber that is calculated.
|
boolean |
isExistNextPageGroup()
非推奨です。
use existsNextGroup()
|
boolean |
isExistPrePageGroup()
非推奨です。
use existsPreviousGroup()
|
void |
setAllPageCount(int allPageCount) |
void |
setCurrentPageNumber(int currentPageNumber) |
void |
setPageGroupOption(PageGroupOption pageGroupOption) |
String |
toString() |
protected int _currentPageNumber
protected int _allPageCount
protected PageGroupOption _pageGroupOption
public <LINK extends PageNumberLink> List<LINK> buildPageNumberLinkList(PageNumberLinkSetupper<LINK> manyArgLambda)
page.setPageGroupSize(10); List<PageNumberLink> linkList = page.pageGroup().buildPageNumberLinkList(new PageNumberLinkSetupper<PageNumberLink>() { public PageNumberLink setup(int pageNumberElement, boolean current) { String href = buildPagingHref(pageNumberElement); // for paging navigation links return new PageNumberLink().initialize(pageNumberElement, current, href); } });
LINK - The type of link.manyArgLambda - Page number link set-upper. (NotNull and Required LINK)public List<Integer> createPageNumberList()
e.g. group-size=10, current-page=8 page.setPageGroupSize(10); List<Integer> numberList = page.pageGroup().createPageNumberList(); // 8 / 23 pages (453 records) // 1 2 3 4 5 6 7 8 9 10 next
protected int calculateStartPageNumber()
public boolean existsPreviousGroup()
e.g. group-size=10, current-page=12 12 / 23 pages (453 records) previous 11 12 13 14 15 16 17 18 19 20 next // this method returns existence of 10
public boolean existsNextGroup()
e.g. group-size=10, current-page=12 12 / 23 pages (453 records) previous 11 12 13 14 15 16 17 18 19 20 next // this method returns existence of 21
public boolean isExistPrePageGroup()
e.g. group-size=10, current-page=12 12 / 23 pages (453 records) previous 11 12 13 14 15 16 17 18 19 20 next // this method returns existence of 10
public boolean isExistNextPageGroup()
e.g. group-size=10, current-page=12 12 / 23 pages (453 records) previous 11 12 13 14 15 16 17 18 19 20 next // this method returns existence of 21
protected void assertPageGroupValid()
public String toString()
public void setCurrentPageNumber(int currentPageNumber)
public void setAllPageCount(int allPageCount)
public void setPageGroupOption(PageGroupOption pageGroupOption)
public int getPreGroupNearestPageNumber()
e.g. group-size=10, current-page=12 12 / 23 pages (453 records) previous 11 12 13 14 15 16 17 18 19 20 next // this method returns 10
public int getNextGroupNearestPageNumber()
e.g. group-size=10, current-page=12 12 / 23 pages (453 records) previous 11 12 13 14 15 16 17 18 19 20 next // this method returns 21
Copyright © 2014–2015 The DBFlute Project. All rights reserved.