Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@97927 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-06-27 14:36:54 +00:00
parent c621d56bb1
commit c97b3753fc
1 changed files with 10 additions and 0 deletions

View File

@ -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,