Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
f696f7cd
Commit
f696f7cd
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilder.java
+21
-0
21 additions, 0 deletions
.../openbis/generic/shared/util/SimpleTableModelBuilder.java
with
21 additions
and
0 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilder.java
+
21
−
0
View file @
f696f7cd
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment