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.