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 314d6b8..fdfb73f 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 @@ -66,7 +66,9 @@ public class TabularResourceProperties extends FramedPanel { protected TextField dateField; protected TextArea rightField; protected TextField ownerField; + protected CheckBox validField; protected CheckBox finalizedField; + protected TextField typeField; protected IconButton btnShare; @@ -166,6 +168,12 @@ public class TabularResourceProperties extends FramedPanel { new VerticalLayoutData(1, -1)); + validField = new CheckBox(); + validField.setValue(false); + validField.setReadOnly(true); + layoutTabularResource.add(new FieldLabel(validField, "Valid"), + new VerticalLayoutData(1, -1)); + finalizedField = new CheckBox(); // finalizedField.setBoxLabel(""); @@ -233,6 +241,7 @@ public class TabularResourceProperties extends FramedPanel { typeField.setValue(tabResource.getTrId().getTabularResourceType()); rightField.setValue(tabResource.getRight()); ownerField.setValue(tabResource.getOwner().getLogin()); + validField.setValue(tabResource.isValid()); if (tabResource.isFinalized()) { finalizedField.setEnabled(false); finalizedField.setValue(true); @@ -427,6 +436,7 @@ public class TabularResourceProperties extends FramedPanel { tabResource.setDescription(descriptionField.getValue()); tabResource.setAgency(agencyField.getValue()); tabResource.setRight(rightField.getValue()); + tabResource.setValid(validField.getValue()); tabResource.setFinalized(finalizedField.getValue()); TDGWTServiceAsync.INSTANCE.setTabResourceInformation(tabResource,