|
|||||||||
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 Selection
s 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 Selection s. |
java.util.List<java.util.List<Selection>> |
getLayout()
Returns the whole layout as a List filled with a List filled with Selection s. |
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 Selection s. |
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 Selection s. |
void |
setLayout(java.util.List<java.util.List<Selection>> layout)
Sets the whole new layout as a List filled with a List filled with Selection s. |
boolean |
setRow(int y,
java.util.List<Selection> row)
Sets the row at the y-layout-coordinate as a List filled with Selection s. |
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 Selection
s.
x
- The x-layout-coordinate
List
filled with Selection
s.public boolean setColumn(int x, java.util.List<Selection> column)
List
filled with Selection
s.
x
- The x-layout-coordinatecolumn
- The new column as a List
filled with Selection
s.
public java.util.List<Selection> getRow(int y)
List
filled with Selection
s.
y
- The y-layout-coordinate
List
filled with Selection
s.public boolean setRow(int y, java.util.List<Selection> row)
List
filled with Selection
s.
y
- The y-layout-coordinaterow
- The new row as a List
filled with Selection
s.
public java.util.List<java.util.List<Selection>> getLayout()
List
filled with a List
filled with Selection
s.
List
filled with a List
filled with Selection
s.public void setLayout(java.util.List<java.util.List<Selection>> layout)
List
filled with a List
filled with Selection
s.
layout
- The whole new layout as a List
filled with a List
filled with Selection
s.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |