diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilder.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilder.java index 4254eab1a169334b53b7e7f450e619abeeb89c70..0ecce45dcd87861fd27a3f9e004b55020db95093 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilder.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilder.java @@ -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;