public abstract class PaginationBox extends MessageBox
Modifier | Constructor and Description |
---|---|
protected |
PaginationBox(java.lang.String title)
Creates a Paginated component
|
protected |
PaginationBox(java.lang.String title,
java.lang.String pageCommand)
Creates a Paginated component
|
Modifier and Type | Method and Description |
---|---|
com.sk89q.worldedit.util.formatting.text.TextComponent |
create()
Create a TextComponent from this producer.
|
com.sk89q.worldedit.util.formatting.text.Component |
create(int page) |
void |
formatForConsole() |
static PaginationBox |
fromStrings(java.lang.String header,
java.lang.String pageCommand,
java.util.List<java.lang.String> lines) |
abstract com.sk89q.worldedit.util.formatting.text.Component |
getComponent(int number) |
abstract int |
getComponentsSize() |
void |
setComponentsPerPage(int componentsPerPage) |
centerAndBorder, getContents
append, append, getBuilder, newline, reset
protected PaginationBox(java.lang.String title)
title
- The titleprotected PaginationBox(java.lang.String title, @Nullable java.lang.String pageCommand)
title
- The titlepageCommand
- The command to run to switch page, with %page% representing page numberpublic abstract com.sk89q.worldedit.util.formatting.text.Component getComponent(int number)
public abstract int getComponentsSize()
public void setComponentsPerPage(int componentsPerPage)
public void formatForConsole()
public com.sk89q.worldedit.util.formatting.text.Component create(int page) throws InvalidComponentException
InvalidComponentException
public com.sk89q.worldedit.util.formatting.text.TextComponent create()
TextComponentProducer
create
in class MessageBox
public static PaginationBox fromStrings(java.lang.String header, @Nullable java.lang.String pageCommand, java.util.List<java.lang.String> lines)