Skip to content
Snippets Groups Projects
Commit f696f7cd authored by cramakri's avatar cramakri
Browse files

LMS-1949 Extensions to SimpleTableModelBuilder to simplify adding headers and columns from jython.

SVN: 19461
parent 720bc0ca
No related branches found
No related tags found
No related merge requests found
......@@ -238,6 +238,27 @@ public class SimpleTableModelBuilder
return DataTypeCode.VARCHAR;
}
public SimpleTableModelBuilder addFullHeader(String... titles)
{
for (String title : titles)
{
addHeader(title);
}
return this;
}
public SimpleTableModelBuilder addFullRow(String... values)
{
List<ISerializableComparable> rowValues = new ArrayList<ISerializableComparable>();
for (String value : values)
{
rowValues.add(SimpleTableModelBuilder.asText(value));
}
addRow(rowValues);
return this;
}
public String tryGetMessage()
{
return messageOrNull;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment