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
7f775ea8
Commit
7f775ea8
authored
15 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
SE-179 allow nulls in DSS reports
SVN: 14274
parent
03b7a9ac
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
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/tasks/SimpleTableModelBuilder.java
+17
-4
17 additions, 4 deletions
...generic/server/plugins/tasks/SimpleTableModelBuilder.java
with
17 additions
and
4 deletions
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/tasks/SimpleTableModelBuilder.java
+
17
−
4
View file @
7f775ea8
...
...
@@ -67,9 +67,13 @@ public class SimpleTableModelBuilder
return
new
TableModel
(
header
,
rows
);
}
public
static
ISerializableComparable
asText
(
String
text
)
public
static
ISerializableComparable
asText
(
String
text
OrNull
)
{
return
new
StringTableCell
(
text
);
if
(
textOrNull
==
null
)
{
return
createNullCell
();
}
return
new
StringTableCell
(
textOrNull
);
}
public
static
ISerializableComparable
asNum
(
int
num
)
...
...
@@ -82,8 +86,17 @@ public class SimpleTableModelBuilder
return
new
DoubleTableCell
(
num
);
}
public
static
ISerializableComparable
asDate
(
Date
date
)
public
static
ISerializableComparable
asDate
(
Date
date
OrNull
)
{
return
new
DateTableCell
(
date
);
if
(
dateOrNull
==
null
)
{
return
createNullCell
();
}
return
new
DateTableCell
(
dateOrNull
);
}
private
static
ISerializableComparable
createNullCell
()
{
return
new
StringTableCell
(
""
);
}
}
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