Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 954 → Rev 955

/trunk/src/org/tela_botanica/client/composants/ChampMultiValeurs.java
5,6 → 5,7
import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.images.Images;
import org.tela_botanica.client.modeles.Valeur;
import org.tela_botanica.client.modeles.aDonnee;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
168,7 → 169,9
public void componentSelected(ButtonEvent ce) {
String valeurChamp = "";
if (estComboBox) {
valeurChamp = champValeurCombo.getValue().getNom();
if (champValeurCombo.getValue() != null) {
valeurChamp = champValeurCombo.getValue().getNom();
}
} else {
valeurChamp = champValeurTxt.getValue();
}
275,7 → 278,7
if (champRecapitulatif.getValue() != null) {
texteRecapitulatif = champRecapitulatif.getValue();
}
texteRecapitulatif += texte + ";;";
texteRecapitulatif += texte + aDonnee.SEPARATEUR_VALEURS;
champRecapitulatif.setValue(texteRecapitulatif);
}
282,7 → 285,7
public void supprimerValeurDuRecapitulatif(String texte) {
if (champRecapitulatif.getValue() != null) {
String texteRecapitulatif = champRecapitulatif.getValue();
texteRecapitulatif = texteRecapitulatif.replace(texte + ";;", "");
texteRecapitulatif = texteRecapitulatif.replace(texte + aDonnee.SEPARATEUR_VALEURS, "");
champRecapitulatif.setValue(texteRecapitulatif);
}
}
291,7 → 294,7
String texteRecapitulatif = "";
if (champRecapitulatif.getValue() != null) {
texteRecapitulatif = champRecapitulatif.getValue();
texteRecapitulatif = texteRecapitulatif.replaceAll("(.*);;$", "$1");
texteRecapitulatif = texteRecapitulatif.replaceAll("(.*)"+aDonnee.SEPARATEUR_VALEURS+"$", "$1");
}
return texteRecapitulatif;
}
301,7 → 304,7
reinitialiser();
}
if (chaineExistante != null && !chaineExistante.trim().equals("")) {
String[] valeurs = chaineExistante.split(";;");
String[] valeurs = chaineExistante.split(aDonnee.SEPARATEUR_VALEURS);
for (int i = 0; i < valeurs.length; i++) {
ajouterValeur(valeurs[i]);
}