Minor update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@101389 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-11-03 17:12:18 +00:00
parent 2978c2ac41
commit e810709686
1 changed files with 14 additions and 1 deletions

View File

@ -403,9 +403,11 @@ public class TabularResourceProperties extends FramedPanel {
if (tabResource.isFinalized()) {
finalizedField.setReadOnly(true);
finalizedField.setValue(true);
saveButton.setEnabled(false);
} else {
finalizedField.setReadOnly(false);
finalizedField.setValue(false);
saveButton.setEnabled(true);
}
ArrayList<Contacts> contacts = tabResource.getContacts();
@ -632,7 +634,13 @@ public class TabularResourceProperties extends FramedPanel {
}
}
if(vFrom!=null && vUntilTo!=null && vFrom.compareTo(vUntilTo)>0){
Log.debug("Attention Valid From field is higher than Valid Until To field");
UtilsGXT3.info("Attention", "Valid From field is higher than Valid Until To field");
return;
}
if (comboLicences.getCurrentValue() != null
&& comboLicences.getCurrentValue().getLicence() != null
&& !comboLicences.getCurrentValue().getLicence().isEmpty()) {
@ -680,6 +688,11 @@ public class TabularResourceProperties extends FramedPanel {
if (finalizedField.getValue()) {
finalizedField.setReadOnly(true);
finalizedField.setValue(true);
saveButton.setEnabled(false);
} else {
finalizedField.setReadOnly(false);
finalizedField.setValue(false);
saveButton.setEnabled(true);
}
DataViewRequestEvent dataViewRequestEvent=new DataViewRequestEvent();
TabularResourceDataView tabularResouceDataView=new TabularResourceDataView(tabResource.getTrId(),tabResource.getName());