Updated TRId

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@100934 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-23 16:26:34 +00:00
parent dc5985a45f
commit 6433dd843c
1 changed files with 22 additions and 12 deletions

View File

@ -93,6 +93,7 @@ public class TabularResourceProperties extends FramedPanel {
protected ListStore<LicenceData> storeCombo; protected ListStore<LicenceData> storeCombo;
protected TextField typeField; protected TextField typeField;
protected TextField tableTypeNameField;
protected IconButton btnShare; protected IconButton btnShare;
protected FieldLabel shareLabel; protected FieldLabel shareLabel;
@ -100,7 +101,7 @@ public class TabularResourceProperties extends FramedPanel {
protected TRMetadataAccordionPanel trMetadataPanel; protected TRMetadataAccordionPanel trMetadataPanel;
protected VerticalLayoutContainer layoutTabularResource; protected VerticalLayoutContainer layoutTabularResource;
protected TextField tableTypeNameField; protected TextField tableTypeDefField;
protected TableMetadataAccordionPanel tableMetadataPanel; protected TableMetadataAccordionPanel tableMetadataPanel;
protected VerticalLayoutContainer layoutTable; protected VerticalLayoutContainer layoutTable;
protected TextButton saveButton; protected TextButton saveButton;
@ -144,6 +145,13 @@ public class TabularResourceProperties extends FramedPanel {
layoutTabularResource.add(new FieldLabel(descriptionField, layoutTabularResource.add(new FieldLabel(descriptionField,
"Description"), new VerticalLayoutData(1, -1)); "Description"), new VerticalLayoutData(1, -1));
typeField = new TextField();
typeField.setReadOnly(true);
typeField.setValue("");
layoutTabularResource.add(new FieldLabel(typeField, "Type"),
new VerticalLayoutData(1, -1));
agencyField = new TextField(); agencyField = new TextField();
// agencyField.setReadOnly(true); // agencyField.setReadOnly(true);
agencyField.setValue(""); agencyField.setValue("");
@ -156,10 +164,10 @@ public class TabularResourceProperties extends FramedPanel {
layoutTabularResource.add(new FieldLabel(dateField, "Date"), layoutTabularResource.add(new FieldLabel(dateField, "Date"),
new VerticalLayoutData(1, -1)); new VerticalLayoutData(1, -1));
typeField = new TextField(); tableTypeNameField = new TextField();
typeField.setReadOnly(true); tableTypeNameField.setReadOnly(true);
typeField.setValue(""); tableTypeNameField.setValue("");
layoutTabularResource.add(new FieldLabel(typeField, "Type"), layoutTabularResource.add(new FieldLabel(tableTypeNameField, "Table Type"),
new VerticalLayoutData(1, -1)); new VerticalLayoutData(1, -1));
rightField = new TextArea(); rightField = new TextArea();
@ -329,9 +337,10 @@ public class TabularResourceProperties extends FramedPanel {
Log.debug(tabResource.toString()); Log.debug(tabResource.toString());
nameField.setValue(tabResource.getName()); nameField.setValue(tabResource.getName());
descriptionField.setValue(tabResource.getDescription()); descriptionField.setValue(tabResource.getDescription());
typeField.setValue(tabResource.getTrId().getTabResourceType().toString());
agencyField.setValue(tabResource.getAgency()); agencyField.setValue(tabResource.getAgency());
dateField.setValue(tabResource.getDate()); dateField.setValue(tabResource.getDate());
typeField.setValue(tabResource.getTrId().getTabularResourceType()); tableTypeNameField.setValue(tabResource.getTableTypeName());
rightField.setValue(tabResource.getRight()); rightField.setValue(tabResource.getRight());
validFromField.clear(); validFromField.clear();
@ -418,6 +427,7 @@ public class TabularResourceProperties extends FramedPanel {
} }
}*/ }*/
/*
public void addTable() { public void addTable() {
tableFieldSet = new FieldSet(); tableFieldSet = new FieldSet();
tableFieldSet.setHeadingText("Table"); tableFieldSet.setHeadingText("Table");
@ -428,14 +438,14 @@ public class TabularResourceProperties extends FramedPanel {
tableFieldSet.add(layoutTable); tableFieldSet.add(layoutTable);
tableTypeNameField = new TextField(); tableTypeDefField = new TextField();
tableTypeNameField.setReadOnly(true); tableTypeDefField.setReadOnly(true);
tableTypeNameField.setValue(""); tableTypeDefField.setValue("");
layoutTable.add(new FieldLabel(tableTypeNameField, "Type"), layoutTable.add(new FieldLabel(tableTypeDefField, "Type"),
new VerticalLayoutData(1, -1)); new VerticalLayoutData(1, -1));
vl.add(tableFieldSet); vl.add(tableFieldSet);
} }*/
protected void openValidations() { protected void openValidations() {
Log.debug("Request Validations Tab"); Log.debug("Request Validations Tab");