From 1bc2614c026434039c1b840fc707c544c87e44b9 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 20 Mar 2014 13:56:26 +0000 Subject: [PATCH] Fixed Tabular Resource type informations git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@93379 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/TabularResourceProperties.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java index 8630fc6..7792c5c 100644 --- a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java +++ b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java @@ -44,7 +44,8 @@ public class TabularResourceProperties extends FramedPanel { protected TextField agencyField; protected TextField dateField; protected TextArea rightField; - + protected TextField typeField; + protected TRMetadataAccordionPanel trMetadataPanel; protected VerticalLayoutContainer layoutTabularResource; @@ -58,7 +59,7 @@ public class TabularResourceProperties extends FramedPanel { setId(name); this.eventBus = eventBus; forceLayoutOnResize = true; - + vl = new VerticalLayoutContainer(); vl.setScrollMode(ScrollMode.AUTO); vl.setAdjustForScroll(true); @@ -100,13 +101,20 @@ public class TabularResourceProperties extends FramedPanel { dateField.setValue(""); layoutTabularResource.add(new FieldLabel(dateField, "Date"), new VerticalLayoutData(1, -1)); + + typeField = new TextField(); + typeField.setReadOnly(true); + typeField.setValue(""); + layoutTabularResource.add(new FieldLabel(typeField, "Type"), + new VerticalLayoutData(1, -1)); rightField = new TextArea(); //rightField.setReadOnly(true); rightField.setValue(""); layoutTabularResource.add(new FieldLabel(rightField, "Rights"), new VerticalLayoutData(1, -1)); - + + // Save Button saveButton = new TextButton("Save"); SelectHandler saveHandler = new SelectHandler() { @@ -131,8 +139,9 @@ public class TabularResourceProperties extends FramedPanel { descriptionField.setValue(tabResource.getDescription()); agencyField.setValue(tabResource.getAgency()); dateField.setValue(tabResource.getDate()); + typeField.setValue(tabResource.getTrId().getTabularResourceType()); rightField.setValue(tabResource.getRight()); - + } public void addTable() {