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
bc5f2228
Commit
bc5f2228
authored
15 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1367 Fix problems with translation from Jython to Java
SVN: 14754
parent
7701f65c
Loading
Loading
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/client/web/client/application/ui/columns/specific/GenericTableRowColumnDefinition.java
+16
-1
16 additions, 1 deletion
.../ui/columns/specific/GenericTableRowColumnDefinition.java
with
16 additions
and
1 deletion
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/columns/specific/GenericTableRowColumnDefinition.java
+
16
−
1
View file @
bc5f2228
...
@@ -18,9 +18,12 @@ package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.column
...
@@ -18,9 +18,12 @@ package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.column
import
ch.systemsx.cisd.openbis.generic.shared.basic.GridRowModel
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.GridRowModel
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IColumnDefinition
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IColumnDefinition
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.DateTableCell
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.DoubleTableCell
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.GenericTableColumnHeader
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.GenericTableColumnHeader
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.GenericTableRow
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.GenericTableRow
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.ISerializableComparable
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.ISerializableComparable
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.IntegerTableCell
;
/**
/**
* @author Franz-Josef Elmer
* @author Franz-Josef Elmer
...
@@ -46,7 +49,19 @@ public class GenericTableRowColumnDefinition implements IColumnDefinition<Generi
...
@@ -46,7 +49,19 @@ public class GenericTableRowColumnDefinition implements IColumnDefinition<Generi
public
Comparable
<?>
tryGetComparableValue
(
GridRowModel
<
GenericTableRow
>
rowModel
)
public
Comparable
<?>
tryGetComparableValue
(
GridRowModel
<
GenericTableRow
>
rowModel
)
{
{
return
getCellValue
(
rowModel
);
ISerializableComparable
value
=
getCellValue
(
rowModel
);
Comparable
<?>
result
;
// TODO CR --This code should be a method on ISerializableComparable and implemented using
// polymorphism.
if
(
value
instanceof
DateTableCell
)
result
=
((
DateTableCell
)
value
).
getDateTime
();
else
if
(
value
instanceof
DoubleTableCell
)
result
=
((
DoubleTableCell
)
value
).
getNumber
();
else
if
(
value
instanceof
IntegerTableCell
)
result
=
((
IntegerTableCell
)
value
).
getNumber
();
else
result
=
value
.
toString
();
return
result
;
}
}
public
String
getHeader
()
public
String
getHeader
()
...
...
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