|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.quartercode.quarterbukkit.api.select.InventoryLayout
public class InventoryLayout
This class represents the layout of the Selections in a SelectInventory.
| Constructor Summary | |
|---|---|
InventoryLayout()
Creates a new InventoryLayout. |
|
| Method Summary | |
|---|---|
Selection |
get(int x,
int y)
Returns the Selection at the x- and y-layout-coordinates. |
java.util.List<Selection> |
getColumn(int x)
Returns the column at the x-layout-coordinate as a List filled with Selections. |
java.util.List<java.util.List<Selection>> |
getLayout()
Returns the whole layout as a List filled with a List filled with Selections. |
int |
getMaxColumns()
Returns the maximal amount of columns. |
java.util.List<Selection> |
getRow(int y)
Returns the row at the y-layout-coordinate as a List filled with Selections. |
boolean |
set(int x,
int y,
Selection selection)
Sets the Selection at the x- and y-layout-coordinates. |
boolean |
setColumn(int x,
java.util.List<Selection> column)
Sets the column at the x-layout-coordinate as a List filled with Selections. |
void |
setLayout(java.util.List<java.util.List<Selection>> layout)
Sets the whole new layout as a List filled with a List filled with Selections. |
boolean |
setRow(int y,
java.util.List<Selection> row)
Sets the row at the y-layout-coordinate as a List filled with Selections. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InventoryLayout()
| Method Detail |
|---|
public int getMaxColumns()
public Selection get(int x,
int y)
Selection at the x- and y-layout-coordinates.
x - The x-layout-coordinate.y - The y-layout-coordinate.
Selection at the x- and y-layout-coordinates.
public boolean set(int x,
int y,
Selection selection)
Selection at the x- and y-layout-coordinates.
x - The x-layout-coordinate.y - The y-layout-coordinate.selection - The new Selection at the x- and y-layout-coordinates.
Selection was set successfully.public java.util.List<Selection> getColumn(int x)
List filled with Selections.
x - The x-layout-coordinate
List filled with Selections.
public boolean setColumn(int x,
java.util.List<Selection> column)
List filled with Selections.
x - The x-layout-coordinatecolumn - The new column as a List filled with Selections.
public java.util.List<Selection> getRow(int y)
List filled with Selections.
y - The y-layout-coordinate
List filled with Selections.
public boolean setRow(int y,
java.util.List<Selection> row)
List filled with Selections.
y - The y-layout-coordinaterow - The new row as a List filled with Selections.
public java.util.List<java.util.List<Selection>> getLayout()
List filled with a List filled with Selections.
List filled with a List filled with Selections.public void setLayout(java.util.List<java.util.List<Selection>> layout)
List filled with a List filled with Selections.
layout - The whole new layout as a List filled with a List filled with Selections.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||