Skip to content
Snippets Groups Projects
Commit 9a442ad5 authored by kaloyane's avatar kaloyane
Browse files

render well properties of type HYPERLINK as hyperlinks in the WellContentDialog

SVN: 23382
parent 2dd352e6
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.renderer.L ...@@ -49,6 +49,7 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.renderer.L
import ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.listener.OpenEntityDetailsTabClickListener; import ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.listener.OpenEntityDetailsTabClickListener;
import ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithPermId; import ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithPermId;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.BasicEntityType; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.BasicEntityType;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataTypeCode;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.IEntityProperty; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.IEntityProperty;
...@@ -418,6 +419,10 @@ public class WellContentDialog extends Dialog ...@@ -418,6 +419,10 @@ public class WellContentDialog extends Dialog
{ {
container.add(createPlateLocationsMaterialViewerLink(material)); container.add(createPlateLocationsMaterialViewerLink(material));
} }
} else if (property.getPropertyType().getDataType().getCode() == DataTypeCode.HYPERLINK)
{
String link = LinkRenderer.renderAsLinkWithAnchor(propertyValue, propertyValue, true);
container.add(new Html(link));
} else } else
{ {
container.add(new Text(propertyValue), cellLayout); container.add(new Text(propertyValue), cellLayout);
......
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