|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface Pageable
Pageable 實作表示要列印的頁面集合。Pageable 物件返回該集合中的頁面總數,以及指定頁面的 PageFormat 和 Printable。
PageFormat,
Printable| 欄位摘要 | |
|---|---|
static int |
UNKNOWN_NUMBER_OF_PAGES
如果集合中的頁面數對於 Pageable 實作是未知的,則從 getNumberOfPages 方法返回此常數。 |
| 方法摘要 | |
|---|---|
int |
getNumberOfPages()
返回集合中的頁面數。 |
PageFormat |
getPageFormat(int pageIndex)
返回 pageIndex 指定的頁面的 PageFormat。 |
Printable |
getPrintable(int pageIndex)
返回負責呈現 pageIndex 指定的頁面的 Printable 實例。 |
| 欄位詳細資訊 |
|---|
static final int UNKNOWN_NUMBER_OF_PAGES
Pageable 實作是未知的,則從 getNumberOfPages 方法返回此常數。
| 方法詳細資訊 |
|---|
int getNumberOfPages()
Pageable 實作返回頁面的實際數,而不是 UNKNOWN_NUMBER_OF_PAGES 常數。
Pageable 中的頁面數。
PageFormat getPageFormat(int pageIndex)
throws IndexOutOfBoundsException
pageIndex 指定的頁面的 PageFormat。
pageIndex - 其 PageFormat 正被請求的頁面基於零的索引
PageFormat。
IndexOutOfBoundsException - 如果 Pageable 不包含請求的頁面
Printable getPrintable(int pageIndex)
throws IndexOutOfBoundsException
pageIndex 指定的頁面的 Printable 實例。
pageIndex - 其 Printable 正被請求的頁面基於零的索引
Printable。
IndexOutOfBoundsException - 如果 Pageable 不包含請求的頁面
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。