public class TLcdCompositePageable extends Object implements Pageable
TLcdCompositePageable
is capable of composing a collection of
Pageable
instances.
Note that the delegate Pageable
s should never return
UNKNOWN_NUMBER_OF_PAGES
when
getNumberOfPages
is called.UNKNOWN_NUMBER_OF_PAGES
Constructor and Description |
---|
TLcdCompositePageable(Collection<? extends Pageable> aPageables)
Creates a new
TLcdCompositePageable that is capable of composite a collection
of Pageable instances. |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfPages() |
PageFormat |
getPageFormat(int pageIndex) |
Printable |
getPrintable(int pageIndex) |
public TLcdCompositePageable(Collection<? extends Pageable> aPageables)
TLcdCompositePageable
that is capable of composite a collection
of Pageable
instances.
Note that the given Pageable
s should not returnaPageables
- a collection of Pageable
s.public int getNumberOfPages()
getNumberOfPages
in interface Pageable
public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException
getPageFormat
in interface Pageable
IndexOutOfBoundsException
public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException
getPrintable
in interface Pageable
IndexOutOfBoundsException