@Deprecated
public class TableContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Formatter[] |
formatters
Deprecated.
|
protected java.lang.String[] |
header
Deprecated.
|
Constructor and Description |
---|
TableContainer(boolean players,
java.lang.String... header)
Deprecated.
|
TableContainer(java.lang.String... header)
Deprecated.
Constructor, call with super(...).
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.io.Serializable... values)
Deprecated.
|
java.lang.String |
parseBody()
Deprecated.
|
java.lang.String |
parseHeader()
Deprecated.
|
java.lang.String |
parseHtml()
Deprecated.
|
void |
setColor(java.lang.String color)
Deprecated.
|
void |
setFormatter(int index,
Formatter formatter)
Deprecated.
|
void |
useJqueryDataTables()
Deprecated.
Make use of jQuery Data-tables plugin.
|
void |
useJqueryDataTables(java.lang.String sortType)
Deprecated.
Make use of jQuery Data-tables plugin.
|
protected final java.lang.String[] header
protected final Formatter[] formatters
public TableContainer(java.lang.String... header)
header
- Required: example new TableContainer("1st", "2nd"
parses into <thead><tr><th>1st</th><th>2nd</th></tr></thead
.public TableContainer(boolean players, java.lang.String... header)
public final void addRow(java.io.Serializable... values)
public java.lang.String parseHtml()
public final java.lang.String parseBody()
public final void setColor(java.lang.String color)
public final java.lang.String parseHeader()
public final void setFormatter(int index, Formatter formatter)
public void useJqueryDataTables()
Use this with custom tables.
If this is called, result of parseHtml()
should be wrapped with Html.PANEL.parse(Html.PANEL_BODY.parse(result))
public void useJqueryDataTables(java.lang.String sortType)
sortType
- "player-table" or "player-plugin-table"