public class TablePanel extends ArrayPanel
| Constructor and Description |
|---|
TablePanel(int width,
int height) |
TablePanel(int width,
int height,
float verticalSpacing,
float horizontalSpacing,
Widget... widgets) |
TablePanel(int width,
int height,
Widget... widgets) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getData() |
java.lang.String |
getName() |
int |
put(Widget widget)
Puts widget at first free index
|
TablePanel |
put(Widget widget,
int x,
int y)
Set widget to certain cell in table
|
TablePanel |
remove(Widget widget)
Removes all elements that are instance of specified element
|
TablePanel |
removeAll()
Removes all elements stored in this container
|
TablePanel |
removeAt(int x,
int y)
Removes element at specified position
|
TablePanel |
setElementAlign(PanelAlign align)
Sets align of elementd inside container. this is important when
container has few elements with different widths or/and heights
|
TablePanel |
setHorizontalSpacing(float horizontalSpacing)
Sets space betwen elements
|
TablePanel |
setSpacing(float verticalSpacing,
float horizontalSpacing)
Sets space betwen elements
|
TablePanel |
setVerticalSpacing(float verticalSpacing)
Sets space betwen elements
|
putput, put, putFactoriesaddTo, attach, getID, handleData, sendElementpublic TablePanel(int width,
int height)
width - Width of the table(number of columns)height - Height of the table(number of rows)public TablePanel(int width,
int height,
Widget... widgets)
width - Width of the table(number of columns)height - Height of the table(number of rows)widgets - Default set of widgets, from top-left to bottom-rightpublic TablePanel(int width,
int height,
float verticalSpacing,
float horizontalSpacing,
Widget... widgets)
width - Width of the table(number of columns)height - Height of the table(number of rows)verticalSpacing - vertical space betwen elements in pixelshorizontalSpacing - horizontal space betwen elements in pixelswidgets - Default set of widgets, from top-left to bottom-rightpublic TablePanel setElementAlign(PanelAlign align)
align - Alignment type valid for this containerpublic TablePanel setSpacing(float verticalSpacing, float horizontalSpacing)
verticalSpacing - vertical space betwen elements in pixelshorizontalSpacing - horizontal space betwen elements in pixelspublic TablePanel setVerticalSpacing(float verticalSpacing)
verticalSpacing - vertical space betwen elements in pixelspublic TablePanel setHorizontalSpacing(float horizontalSpacing)
horizontalSpacing - horizontal space betwen elements in pixelspublic TablePanel removeAll()
public TablePanel removeAt(int x, int y)
x - Columny - Rowpublic TablePanel remove(Widget widget)
widget - Instance of widget to remove from containerpublic TablePanel put(Widget widget, int x, int y)
put in class ArrayPanelwidget - Widget to setx - Columny - Row