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
This commit is contained in:
Giancarlo Panichi 2014-03-20 13:56:26 +00:00
parent 14e0a7e90e
commit 1bc2614c02
1 changed files with 13 additions and 4 deletions

View File

@ -44,6 +44,7 @@ public class TabularResourceProperties extends FramedPanel {
protected TextField agencyField;
protected TextField dateField;
protected TextArea rightField;
protected TextField typeField;
protected TRMetadataAccordionPanel trMetadataPanel;
protected VerticalLayoutContainer layoutTabularResource;
@ -101,12 +102,19 @@ public class TabularResourceProperties extends FramedPanel {
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,6 +139,7 @@ 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());
}