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:
parent
14e0a7e90e
commit
1bc2614c02
|
@ -44,7 +44,8 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
protected TextField agencyField;
|
protected TextField agencyField;
|
||||||
protected TextField dateField;
|
protected TextField dateField;
|
||||||
protected TextArea rightField;
|
protected TextArea rightField;
|
||||||
|
protected TextField typeField;
|
||||||
|
|
||||||
protected TRMetadataAccordionPanel trMetadataPanel;
|
protected TRMetadataAccordionPanel trMetadataPanel;
|
||||||
protected VerticalLayoutContainer layoutTabularResource;
|
protected VerticalLayoutContainer layoutTabularResource;
|
||||||
|
|
||||||
|
@ -58,7 +59,7 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
setId(name);
|
setId(name);
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
forceLayoutOnResize = true;
|
forceLayoutOnResize = true;
|
||||||
|
|
||||||
vl = new VerticalLayoutContainer();
|
vl = new VerticalLayoutContainer();
|
||||||
vl.setScrollMode(ScrollMode.AUTO);
|
vl.setScrollMode(ScrollMode.AUTO);
|
||||||
vl.setAdjustForScroll(true);
|
vl.setAdjustForScroll(true);
|
||||||
|
@ -100,13 +101,20 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
dateField.setValue("");
|
dateField.setValue("");
|
||||||
layoutTabularResource.add(new FieldLabel(dateField, "Date"),
|
layoutTabularResource.add(new FieldLabel(dateField, "Date"),
|
||||||
new VerticalLayoutData(1, -1));
|
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 = new TextArea();
|
||||||
//rightField.setReadOnly(true);
|
//rightField.setReadOnly(true);
|
||||||
rightField.setValue("");
|
rightField.setValue("");
|
||||||
layoutTabularResource.add(new FieldLabel(rightField, "Rights"),
|
layoutTabularResource.add(new FieldLabel(rightField, "Rights"),
|
||||||
new VerticalLayoutData(1, -1));
|
new VerticalLayoutData(1, -1));
|
||||||
|
|
||||||
|
|
||||||
// Save Button
|
// Save Button
|
||||||
saveButton = new TextButton("Save");
|
saveButton = new TextButton("Save");
|
||||||
SelectHandler saveHandler = new SelectHandler() {
|
SelectHandler saveHandler = new SelectHandler() {
|
||||||
|
@ -131,8 +139,9 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
descriptionField.setValue(tabResource.getDescription());
|
descriptionField.setValue(tabResource.getDescription());
|
||||||
agencyField.setValue(tabResource.getAgency());
|
agencyField.setValue(tabResource.getAgency());
|
||||||
dateField.setValue(tabResource.getDate());
|
dateField.setValue(tabResource.getDate());
|
||||||
|
typeField.setValue(tabResource.getTrId().getTabularResourceType());
|
||||||
rightField.setValue(tabResource.getRight());
|
rightField.setValue(tabResource.getRight());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addTable() {
|
public void addTable() {
|
||||||
|
|
Loading…
Reference in New Issue