Skip to content
Snippets Groups Projects
Commit 555c0f08 authored by tpylak's avatar tpylak
Browse files

HCS minor: well in gene details view should not be a link (well view tells nothing)

SVN: 15761
parent 7e2cf530
No related merge requests found
......@@ -21,6 +21,7 @@ import static ch.systemsx.cisd.openbis.plugin.screening.client.web.client.applic
import java.util.List;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.widget.Label;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
......@@ -221,7 +222,7 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
Widget plateLink = createEntityLink(wellContent.getPlate());
container.add(withLabel(plateLink, "Plate: ", margin));
Widget wellLink = createEntityLink(wellContent.getWell());
Widget wellLink = createLabel(wellContent.getWell());
container.add(withLabel(wellLink, "Well: ", margin));
Widget contentLink = createEntityLink(wellContent.getMaterialContent());
......@@ -230,7 +231,7 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
DatasetImagesReference images = wellContent.tryGetImages();
if (images != null)
{
Widget datasetLink = createEntityLink(images.getDatasetReference(), "browse");
Widget datasetLink = createEntityLink(images.getDatasetReference(), "show all images");
container.add(withLabel(datasetLink, "Dataset: ", margin));
container.add(createImageViewer(images, wellContent.tryGetLocation(), channel));
......@@ -238,7 +239,8 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
return container;
}
private Widget createImageViewer(DatasetImagesReference images, WellLocation locationOrNull, int channel)
private Widget createImageViewer(DatasetImagesReference images, WellLocation locationOrNull,
int channel)
{
if (locationOrNull == null)
{
......@@ -253,6 +255,11 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
IMAGE_HEIGHT_PX);
}
private Widget createLabel(IEntityInformationHolder entityInformationHolder)
{
return new Label(entityInformationHolder.getCode());
}
private Widget createEntityLink(IEntityInformationHolder entityInformationHolder)
{
return createEntityLink(entityInformationHolder, entityInformationHolder.getCode());
......
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