| Line 12... |
Line 12... |
| 12 |
import org.tela_botanica.client.modeles.Information;
|
12 |
import org.tela_botanica.client.modeles.Information;
|
| 13 |
import org.tela_botanica.client.modeles.MenuApplicationId;
|
13 |
import org.tela_botanica.client.modeles.MenuApplicationId;
|
| 14 |
import org.tela_botanica.client.modeles.commentaire.Commentaire;
|
14 |
import org.tela_botanica.client.modeles.commentaire.Commentaire;
|
| 15 |
import org.tela_botanica.client.modeles.projet.Projet;
|
15 |
import org.tela_botanica.client.modeles.projet.Projet;
|
| 16 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
16 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
| - |
|
17 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
| 17 |
import org.tela_botanica.client.util.Debug;
|
18 |
import org.tela_botanica.client.util.Debug;
|
| 18 |
import org.tela_botanica.client.util.UtilArray;
|
19 |
import org.tela_botanica.client.util.UtilArray;
|
| 19 |
import org.tela_botanica.client.util.UtilString;
|
20 |
import org.tela_botanica.client.util.UtilString;
|
| 20 |
import org.tela_botanica.client.vues.Formulaire;
|
21 |
import org.tela_botanica.client.vues.Formulaire;
|
| Line 46... |
Line 47... |
| 46 |
private ChampSliderPourcentage ponderationChp;
|
47 |
private ChampSliderPourcentage ponderationChp;
|
| 47 |
private CheckBox publicChp;
|
48 |
private CheckBox publicChp;
|
| Line 48... |
Line 49... |
| 48 |
|
49 |
|
| 49 |
private static boolean formulaireValideOk = false;
|
50 |
private static boolean formulaireValideOk = false;
|
| - |
|
51 |
private static boolean commentaireValideOk = false;
|
| - |
|
52 |
|
| Line 50... |
Line 53... |
| 50 |
private static boolean commentaireValideOk = false;
|
53 |
private Sequenceur sequenceur = new Sequenceur();
|
| 51 |
|
54 |
|
| 52 |
public CommentaireForm(Mediateur mediateurCourrant, String commentaireId) {
|
55 |
public CommentaireForm(Mediateur mediateurCourrant, String commentaireId) {
|
| Line 70... |
Line 73... |
| 70 |
panneauFormulaire.setLayout(new FormLayout());
|
73 |
panneauFormulaire.setLayout(new FormLayout());
|
| 71 |
genererTitreFormulaire();
|
74 |
genererTitreFormulaire();
|
| 72 |
creerChamps();
|
75 |
creerChamps();
|
| Line 73... |
Line 76... |
| 73 |
|
76 |
|
| 74 |
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) {
|
77 |
if (modeDeCreation.equals(Formulaire.MODE_MODIFIER)) {
|
| 75 |
mediateur.selectionnerCommentaire(this, commentaireId);
|
78 |
mediateur.selectionnerCommentaire(this, commentaireId, null);
|
| 76 |
}
|
79 |
}
|
| Line 77... |
Line 80... |
| 77 |
}
|
80 |
}
|
| 78 |
|
81 |
|
| Line 94... |
Line 97... |
| 94 |
modelTypeProjets.setTotalName("nbElements");
|
97 |
modelTypeProjets.setTotalName("nbElements");
|
| 95 |
modelTypeProjets.addField("cpr_nom");
|
98 |
modelTypeProjets.addField("cpr_nom");
|
| 96 |
modelTypeProjets.addField("cpr_id_projet");
|
99 |
modelTypeProjets.addField("cpr_id_projet");
|
| Line 97... |
Line 100... |
| 97 |
|
100 |
|
| 98 |
String displayNameProjets = "cpr_nom";
|
101 |
String displayNameProjets = "cpr_nom";
|
| Line 99... |
Line 102... |
| 99 |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>();
|
102 |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(sequenceur);
|
| 100 |
|
103 |
|
| 101 |
projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets);
|
104 |
projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets);
|
| 102 |
projetsCombo.setWidth(100, 550);
|
105 |
projetsCombo.setWidth(100, 550);
|