| Line 8... |
Line 8... |
| 8 |
import org.tela_botanica.client.Mediateur;
|
8 |
import org.tela_botanica.client.Mediateur;
|
| 9 |
import org.tela_botanica.client.composants.ChampCaseACocher;
|
9 |
import org.tela_botanica.client.composants.ChampCaseACocher;
|
| 10 |
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
|
10 |
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
|
| 11 |
import org.tela_botanica.client.composants.ChampMultiValeursMultiTypes;
|
11 |
import org.tela_botanica.client.composants.ChampMultiValeursMultiTypes;
|
| 12 |
import org.tela_botanica.client.composants.ChampSliderPourcentage;
|
12 |
import org.tela_botanica.client.composants.ChampSliderPourcentage;
|
| - |
|
13 |
import org.tela_botanica.client.composants.InfoLogger;
|
| 13 |
import org.tela_botanica.client.images.Images;
|
14 |
import org.tela_botanica.client.images.Images;
|
| 14 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
15 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 15 |
import org.tela_botanica.client.modeles.InterneValeur;
|
16 |
import org.tela_botanica.client.modeles.InterneValeur;
|
| 16 |
import org.tela_botanica.client.modeles.Valeur;
|
17 |
import org.tela_botanica.client.modeles.Valeur;
|
| 17 |
import org.tela_botanica.client.modeles.ValeurListe;
|
18 |
import org.tela_botanica.client.modeles.ValeurListe;
|
| Line 391... |
Line 392... |
| 391 |
final UniteRangement unite = new UniteRangement();
|
392 |
final UniteRangement unite = new UniteRangement();
|
| 392 |
unite.setType(be.getValue());
|
393 |
unite.setType(be.getValue());
|
| 393 |
unite.setTypeAutre(true);
|
394 |
unite.setTypeAutre(true);
|
| 394 |
uniteRangementGrille.getStore().add(unite);
|
395 |
uniteRangementGrille.getStore().add(unite);
|
| 395 |
} else {
|
396 |
} else {
|
| 396 |
Info.display("Information", "Vous ne pouvez pas saisir de valeur vide ou numérique");
|
397 |
InfoLogger.display("Information", "Vous ne pouvez pas saisir de valeur vide ou numérique");
|
| 397 |
}
|
398 |
}
|
| 398 |
}
|
399 |
}
|
| 399 |
});
|
400 |
});
|
| 400 |
}
|
401 |
}
|
| 401 |
});
|
402 |
});
|
| Line 408... |
Line 409... |
| 408 |
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
409 |
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
| 409 |
@Override
|
410 |
@Override
|
| 410 |
public void componentSelected(ButtonEvent ce) {
|
411 |
public void componentSelected(ButtonEvent ce) {
|
| 411 |
UniteRangement uniteRangementSelectionnee = uniteRangementGrille.getSelectionModel().getSelectedItem();
|
412 |
UniteRangement uniteRangementSelectionnee = uniteRangementGrille.getSelectionModel().getSelectedItem();
|
| 412 |
if (uniteRangementSelectionnee == null) {
|
413 |
if (uniteRangementSelectionnee == null) {
|
| 413 |
Info.display(i18nC.informationTitreGenerique(), Mediateur.i18nM.veuillezSelectionner(i18nC.selectionnerUniteRangement()));
|
414 |
InfoLogger.display(i18nC.informationTitreGenerique(), Mediateur.i18nM.veuillezSelectionner(i18nC.selectionnerUniteRangement()));
|
| 414 |
} else if (uniteRangementSelectionnee.getTypeAutre() == false) {
|
415 |
} else if (uniteRangementSelectionnee.getTypeAutre() == false) {
|
| 415 |
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerUniteRangementAjoute());
|
416 |
InfoLogger.display(i18nC.informationTitreGenerique(), i18nC.selectionnerUniteRangementAjoute());
|
| 416 |
} else {
|
417 |
} else {
|
| 417 |
uniteRangementGrille.getStore().remove(uniteRangementSelectionnee);
|
418 |
uniteRangementGrille.getStore().remove(uniteRangementSelectionnee);
|
| 418 |
}
|
419 |
}
|
| 419 |
}
|
420 |
}
|
| 420 |
});
|
421 |
});
|
| Line 661... |
Line 662... |
| 661 |
final UniteBase unite = new UniteBase();
|
662 |
final UniteBase unite = new UniteBase();
|
| 662 |
unite.setType(be.getValue());
|
663 |
unite.setType(be.getValue());
|
| 663 |
unite.setTypeAutre(true);
|
664 |
unite.setTypeAutre(true);
|
| 664 |
uniteBaseGrille.getStore().add(unite);
|
665 |
uniteBaseGrille.getStore().add(unite);
|
| 665 |
} else {
|
666 |
} else {
|
| 666 |
Info.display("Information", "Vous ne pouvez pas saisir de valeur vide ou numérique");
|
667 |
InfoLogger.display("Information", "Vous ne pouvez pas saisir de valeur vide ou numérique");
|
| 667 |
}
|
668 |
}
|
| 668 |
}
|
669 |
}
|
| 669 |
});
|
670 |
});
|
| 670 |
}
|
671 |
}
|
| 671 |
});
|
672 |
});
|
| Line 678... |
Line 679... |
| 678 |
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
679 |
bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
| 679 |
@Override
|
680 |
@Override
|
| 680 |
public void componentSelected(ButtonEvent ce) {
|
681 |
public void componentSelected(ButtonEvent ce) {
|
| 681 |
UniteBase uniteBaseSelectionnee = uniteBaseGrille.getSelectionModel().getSelectedItem();
|
682 |
UniteBase uniteBaseSelectionnee = uniteBaseGrille.getSelectionModel().getSelectedItem();
|
| 682 |
if (uniteBaseSelectionnee == null) {
|
683 |
if (uniteBaseSelectionnee == null) {
|
| 683 |
Info.display(i18nC.informationTitreGenerique(), Mediateur.i18nM.veuillezSelectionner(i18nC.selectionnerUniteBase()));
|
684 |
InfoLogger.display(i18nC.informationTitreGenerique(), Mediateur.i18nM.veuillezSelectionner(i18nC.selectionnerUniteBase()));
|
| 684 |
} else if (uniteBaseSelectionnee.getTypeAutre() == false) {
|
685 |
} else if (uniteBaseSelectionnee.getTypeAutre() == false) {
|
| 685 |
Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerUniteBaseAjoute());
|
686 |
InfoLogger.display(i18nC.informationTitreGenerique(), i18nC.selectionnerUniteBaseAjoute());
|
| 686 |
} else {
|
687 |
} else {
|
| 687 |
uniteBaseGrille.getStore().remove(uniteBaseSelectionnee);
|
688 |
uniteBaseGrille.getStore().remove(uniteBaseSelectionnee);
|
| 688 |
}
|
689 |
}
|
| 689 |
}
|
690 |
}
|
| 690 |
});
|
691 |
});
|