| Line 156... |
Line 156... |
| 156 |
conteneurChamps = new LayoutContainer();
|
156 |
conteneurChamps = new LayoutContainer();
|
| Line 157... |
Line 157... |
| 157 |
|
157 |
|
| 158 |
Button ajouterAuteurBouton = new Button(i18nC.publicationAuteurBoutonAjouter());
|
158 |
Button ajouterAuteurBouton = new Button(i18nC.publicationAuteurBoutonAjouter());
|
| 159 |
ajouterAuteurBouton.setIcon(Images.ICONES.ajouter());
|
159 |
ajouterAuteurBouton.setIcon(Images.ICONES.ajouter());
|
| 160 |
ajouterAuteurBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
- |
|
| 161 |
@Override
|
160 |
ajouterAuteurBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
| 162 |
public void componentSelected(ButtonEvent be) {
|
161 |
public void componentSelected(ButtonEvent be) {
|
| 163 |
creerChampAuteurEtBoutonSupprimer(null);
|
162 |
creerChampAuteurEtBoutonSupprimer(null);
|
| 164 |
}
|
163 |
}
|
| Line 242... |
Line 241... |
| 242 |
projetsCombo.setTabIndex(tabIndex++);
|
241 |
projetsCombo.setTabIndex(tabIndex++);
|
| 243 |
projetsCombo.setFieldLabel(i18nC.projetChamp());
|
242 |
projetsCombo.setFieldLabel(i18nC.projetChamp());
|
| 244 |
projetsCombo.setDisplayField("nom");
|
243 |
projetsCombo.setDisplayField("nom");
|
| 245 |
projetsCombo.setForceSelection(true);
|
244 |
projetsCombo.setForceSelection(true);
|
| 246 |
projetsCombo.setValidator(new Validator() {
|
245 |
projetsCombo.setValidator(new Validator() {
|
| 247 |
@Override
|
- |
|
| 248 |
public String validate(Field<?> field, String value) {
|
246 |
public String validate(Field<?> field, String value) {
|
| 249 |
String retour = null;
|
247 |
String retour = null;
|
| 250 |
if (field.getRawValue().equals("")) {
|
248 |
if (field.getRawValue().equals("")) {
|
| 251 |
field.setValue(null);
|
249 |
field.setValue(null);
|
| 252 |
} else if (projetsCombo.getStore().findModel("nom", field.getRawValue()) == null) {
|
250 |
} else if (projetsCombo.getStore().findModel("nom", field.getRawValue()) == null) {
|