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