Minor updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-export-widget@86585 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-12-05 09:49:52 +00:00 committed by Giancarlo Panichi
parent 3cf018d120
commit b58f9e82e7
1 changed files with 9 additions and 7 deletions

View File

@ -87,16 +87,19 @@ public class SDMXTableDetailCard extends WizardCard {
agencyName.setEmptyText("Enter Agency...");
agencyName.setValue(exportSession.getAgency().getName());
FieldLabel agencyNameLabel = new FieldLabel(agencyName, "Agency");
agencyNameLabel.setLabelSeparator("");
p.add(agencyNameLabel, new VerticalLayoutData(1, -1));
registryBaseUrl = new TextField();
registryBaseUrl.setVisible(true);
registryBaseUrl.setVisible(false);
registryBaseUrl.setEmptyText("Enter Registry URL...");
registryBaseUrl.setValue(((SDMXRegistrySource)exportSession.getSource()).getUrl());
String urlRegistry=((SDMXRegistrySource)exportSession.getSource()).getUrl();
if(urlRegistry==null||urlRegistry.isEmpty()){
registryBaseUrl.setValue(null);
} else {
registryBaseUrl.setValue(urlRegistry);
}
FieldLabel registryBaseUrlLabel = new FieldLabel(registryBaseUrl, "Registry URL");
registryBaseUrlLabel.setLabelSeparator("");
registryBaseUrlLabel.setVisible(false);
p.add(registryBaseUrlLabel, new VerticalLayoutData(1, -1));
version = new TextField();
@ -157,8 +160,7 @@ public class SDMXTableDetailCard extends WizardCard {
};
if (id.getValue() == null || id.getValue().isEmpty()
|| !id.isValid() || registryBaseUrl.getValue() == null
|| registryBaseUrl.getValue().isEmpty() || !registryBaseUrl.isValid()
|| !id.isValid()
|| version.getValue() == null || version.getValue().isEmpty()
|| !version.isValid() || agencyName.getValue() == null
|| agencyName.getValue().isEmpty() || !agencyName.isValid()) {