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() {