set column colors

This commit is contained in:
TheStonedTurtle
2019-05-01 00:00:57 -07:00
parent 831c32c5bb
commit 395793b716

View File

@@ -123,6 +123,14 @@ public class TableComponent implements LayoutableRenderableEntity
columns.get(col).setAlignment(alignment);
}
public void setColumnColors(@Nonnull final Color... colors)
{
for (int i = 0; i < colors.length; i++)
{
setColumnColor(i, colors[i]);
}
}
public void addRow(@Nonnull final String... cells)
{
final TableElement[] elements = new TableElement[cells.length];