public interface Pageable 
      Pageable实现代表一组要打印的页面。 
       Pageable对象返回集合中的总页数以及指定页面的PageFormat和Printable 。 
      PageFormat , Printable 
       | Modifier and Type | Field and Description | 
|---|---|
| static int | UNKNOWN_NUMBER_OF_PAGES
              如果 
              Pageable实现不知道其集合中的页数,则该常数从getNumberOfPages方法返回。 | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getNumberOfPages()
              返回集合中的页数。 
             | 
| PageFormat | getPageFormat(int pageIndex)
              返回 
              PageFormat指定页面的pageIndex。 | 
| Printable | getPrintable(int pageIndex)
              返回 
              Printable实例,负责渲染由pageIndex指定的页面。 | 
@Native static final int UNKNOWN_NUMBER_OF_PAGES
Pageable实现不知道其集合中的页数,则该常数从 
           getNumberOfPages方法返回。 
          int getNumberOfPages()
Pageable实现返回真实页面数,而不是UNKNOWN_NUMBER_OF_PAGES常量。 
          Pageable 。 
           PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException
PageFormat指定页面的 
           pageIndex 。 
          pageIndex - 正在请求PageFormat的页面的 
            PageFormat基索引 
           PageFormat描述了大小和方向。 
           IndexOutOfBoundsException - 如果 
            Pageable不包含请求的页面。 
           Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException
Printable实例,负责渲染由 
           pageIndex指定的页面。 
          pageIndex - 正在请求Printable的页面的 
            Printable基索引 
           Printable呈现页面。 
           IndexOutOfBoundsException - if the 
            Pageable does not contain the requested page. 
            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.