Enum Class SimpleMenu.RowsStyle
- All Implemented Interfaces:
Serializable,Comparable<SimpleMenu.RowsStyle>,Constable
- Enclosing class:
SimpleMenu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLayout estilo "livro" (2 páginas centrais, botões laterais)Grade em "anel" (borda, deixando o centro vazio)Compacto, itens bem agrupados no meioGrade cheia (aproveita todos os slots do inventário, exceto os botões)Linha única (para menus simples, tipo barra horizontal) -
Method Summary
Modifier and TypeMethodDescriptionintintgetRows()getSlots()static SimpleMenu.RowsStyleReturns the enum constant of this class with the specified name.static SimpleMenu.RowsStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPACT
Compacto, itens bem agrupados no meio -
COMPACT_XADREZ
-
FULL
Grade cheia (aproveita todos os slots do inventário, exceto os botões) -
XADREZ_THREE_LINES
-
HORIZONTAL_BAR_THREE_LINES
-
HORIZONTAL_BAR
Linha única (para menus simples, tipo barra horizontal) -
BORDER
Grade em "anel" (borda, deixando o centro vazio) -
BOOK
Layout estilo "livro" (2 páginas centrais, botões laterais)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSlots
-
getRows
-
getPreviusPage
public int getPreviusPage() -
getNextPage
public int getNextPage()
-