public interface Pageable
PageFormat,
Printable
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN_NUMBER_OF_PAGES
返回此常数从
getNumberOfPages方法如果
Pageable实现不知道在其设定的页数。
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfPages()
返回集合中的页数。
|
PageFormat |
getPageFormat(int pageIndex)
返回指定的页面
PageFormat
pageIndex。
|
Printable |
getPrintable(int pageIndex)
返回指定的
pageIndex负责渲染页面的
Printable实例。
|
@Native static final int UNKNOWN_NUMBER_OF_PAGES
getNumberOfPages方法如果
Pageable实现不知道在其设定的页数。
int getNumberOfPages()
Pageable实现返回页面的真实数量而不是unknown_number_of_pages常数。
Pageable页数。
PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException
PageFormat
pageIndex。
pageIndex -基于零的索引页面被请求的
PageFormat
PageFormat。
IndexOutOfBoundsException -如果
Pageable不包含请求的页面。
Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException
pageIndex负责渲染页面的
Printable实例。
pageIndex -基于零的索引页面被请求的
Printable
Printable呈现页。
IndexOutOfBoundsException -如果
Pageable不包含请求的页面。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.