Package com.sk89q.commandbook.util
Class PaginatedResult<T>
java.lang.Object
com.sk89q.commandbook.util.PaginatedResult<T>
public abstract class PaginatedResult<T>
extends java.lang.Object
Commands that wish to display a paginated list of results can use this class to do
the actual pagination, giving a list of items, a page number, and basic formatting information.
-
Field Summary
Fields Modifier and Type Field Description protected static intPER_PAGE -
Constructor Summary
Constructors Constructor Description PaginatedResult(java.lang.String header) -
Method Summary
-
Field Details
-
PER_PAGE
protected static final int PER_PAGE- See Also:
- Constant Field Values
-
-
Constructor Details
-
PaginatedResult
public PaginatedResult(java.lang.String header)
-
-
Method Details
-
display
public void display(org.bukkit.command.CommandSender sender, java.util.Collection<? extends T> results, int page) throws com.sk89q.minecraft.util.commands.CommandException- Throws:
com.sk89q.minecraft.util.commands.CommandException
-
display
public void display(org.bukkit.command.CommandSender sender, java.util.List<? extends T> results, int page) throws com.sk89q.minecraft.util.commands.CommandException- Throws:
com.sk89q.minecraft.util.commands.CommandException
-
format
-