Example usage for Java com.badlogic.gdx.scenes.scene2d.ui Table fields, constructors, methods, implement or subclass
The text is from its open source code.
Array | columnDefaults |
Value | padTop |
int | align |
Debug | debug |
Drawable | background |
Table() | |
Table(Skin skin) Creates a table with a skin, which enables the #add(String) and #add(String,String) methods to be used. |
Cell | add(T actor) Adds a new cell to the table with the specified actor. |
void | add(Actor... actors) |
Cell | add(String text) Adds a new cell with a label. |
Cell | add(String text, String fontName, Color color) Adds a new cell with a label. |
Cell | add(String text, String fontName, String colorName) Adds a new cell with a label. |
Cell | add() Adds a cell without an actor. |
Cell | add(String text, String labelStyleName) Adds a new cell with a label. |
Table | bottom() Adds Align#bottom and clears Align#top for the alignment of the logical table within the table actor. |
Table | center() Sets the alignment of the logical table within the table actor to Align#center . |
void | clearChildren() Removes all actors and cells from the table. |
Table | debugCell() Turns on cell debug lines. |
Table | debugTable() Turns on table debug lines. |
Cell | defaults() The cell values that will be used as the defaults for all cells. |
Drawable | getBackground() |
Cell | getCell(T actor) Returns the cell for the specified actor in this table, or null. |
Array | getCells() Returns the cells for this table. |
float | getPrefHeight() |
float | getPrefWidth() |
void | layout() |
Table | left() Adds Align#left and clears Align#right for the alignment of the logical table within the table actor. |
Table | pad(Value pad) Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value. |
Table | pad(float pad) Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value. |
Table | pad(Value top, Value left, Value bottom, Value right) |
Table | pad(float top, float left, float bottom, float right) |
Table | padBottom(Value padBottom) Padding at the bottom edge of the table. |
Table | padBottom(float padBottom) Padding at the bottom edge of the table. |
Table | padLeft(Value padLeft) Padding at the left edge of the table. |
Table | padLeft(float padLeft) Padding at the left edge of the table. |
Table | padRight(Value padRight) Padding at the right edge of the table. |
Table | padRight(float padRight) Padding at the right edge of the table. |
boolean | removeActor(Actor actor) |
Table | right() Adds Align#right and clears Align#left for the alignment of the logical table within the table actor. |
Cell | row() Indicates that subsequent cells should be added to a new row and returns the cell values that will be used as the defaults for all cells in the new row. |
void | setBackground(String drawableName) Sets the background drawable from the skin and adjusts the table's padding to match the background. |
void | setBackground(Drawable background) |
void | setClip(boolean enabled) Causes the contents to be clipped if they exceed the table actor's bounds. |
void | setDebug(boolean enabled) |
void | setSkin(Skin skin) |
Table | top() Adds Align#top and clears Align#bottom for the alignment of the logical table within the table actor. |