public interface PaginationBuilder
Text
s.Modifier and Type | Method and Description |
---|---|
PaginationBuilder |
contents(Iterable<Text> contents)
Set the contents of this output as an Iterable.
|
PaginationBuilder |
contents(Text... contents)
Set the contents of this output to be the given array of contents.
|
PaginationBuilder |
footer(Text footer)
Set the footer to be displayed for this output on all pages after the contents and page navigation bar.
|
PaginationBuilder |
header(Text header)
Set the header to be displayed for this output on all pages after the title bar but before the contents
Header and footer will use this Text's style and color for formatting.
|
PaginationBuilder |
paddingString(String padding)
Set the padding character to be used when centering headers and footers.
|
void |
sendTo(CommandSource source)
Send the constructed to the given source.
|
PaginationBuilder |
title(Text title)
Set the title text to be used in the title bar of this pagination.
|
PaginationBuilder contents(Iterable<Text> contents)
Iterable
is a List
, bidirectional navigation is supported.
Otherwise, only going to the next page will be supportedcontents
- The contents to outputPaginationBuilder contents(Text... contents)
contents
- The contents to outputPaginationBuilder title(Text title)
title
- The title to use.PaginationBuilder header(Text header)
header
- The header to setPaginationBuilder footer(Text footer)
footer
- The footer to setPaginationBuilder paddingString(String padding)
padding
- The padding to usevoid sendTo(CommandSource source)
source
- The source to send to