Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@99436 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-09-03 15:42:42 +00:00
parent e7bfcb4ded
commit 9089bede58
1 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.Command; import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.VerticalPanel;
import com.sencha.gxt.cell.core.client.form.ComboBoxCell.TriggerAction;
import com.sencha.gxt.data.client.loader.RpcProxy; import com.sencha.gxt.data.client.loader.RpcProxy;
import com.sencha.gxt.data.shared.ListStore; import com.sencha.gxt.data.shared.ListStore;
import com.sencha.gxt.data.shared.loader.ListLoadConfig; import com.sencha.gxt.data.shared.loader.ListLoadConfig;
@ -169,6 +170,9 @@ public class ExtractCodelistDetailsCard extends WizardCard {
}); });
} }
}; };
comboLicences.setEditable(false);
comboLicences.setTypeAhead(false);
comboLicences.setTriggerAction(TriggerAction.ALL);
Log.trace("Combo Licence created"); Log.trace("Combo Licence created");
// / // /
@ -305,7 +309,8 @@ public class ExtractCodelistDetailsCard extends WizardCard {
} }
} }
if(comboLicences.getCurrentValue()!=null&& comboLicences.getCurrentValue().getLicence()!=null){ if(comboLicences.getCurrentValue()!=null&& comboLicences.getCurrentValue().getLicence()!=null
&& !comboLicences.getCurrentValue().getLicence().isEmpty()){
detail.setLicence(comboLicences.getCurrentValue().getLicence()); detail.setLicence(comboLicences.getCurrentValue().getLicence());
} }