Subversion Repositories eFlore/Applications.coel

Rev

Rev 664 | Rev 677 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 664 Rev 670
Line 1... Line 1...
1
package org.tela_botanica.client.vues;
1
package org.tela_botanica.client.vues;
Line 2... Line 2...
2
 
2
 
3
import java.util.ArrayList;
3
import java.util.ArrayList;
Line -... Line 4...
-
 
4
import java.util.List;
4
import java.util.List;
5
 
5
 
6
 
6
import org.tela_botanica.client.Mediateur;
7
import org.tela_botanica.client.Mediateur;
7
import org.tela_botanica.client.RegistreId;
8
import org.tela_botanica.client.RegistreId;
8
import org.tela_botanica.client.images.Images;
9
import org.tela_botanica.client.images.Images;
Line 49... Line 50...
49
	private Personne personneSelectionnee = null;
50
	private Personne personneSelectionnee = null;
50
	private BarrePaginationVue pagination;
51
	private BarrePaginationVue pagination;
51
	private ColumnModel modeleColonnes;
52
	private ColumnModel modeleColonnes;
52
	private final int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
53
	private final int nbElementsPage = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbElementsPage"));
53
	private final Button supprimer;
54
	private final Button supprimer;
-
 
55
	private Button modifier;
Line 54... Line 56...
54
	
56
	
55
	public PersonneListeVue() {
57
	public PersonneListeVue() {
Line 56... Line 58...
56
		mediateur = Registry.get(RegistreId.MEDIATEUR);
58
		mediateur = Registry.get(RegistreId.MEDIATEUR);
Line 68... Line 70...
68
			}  
70
			}  
69
		});
71
		});
70
		toolBar.add(ajouter);
72
		toolBar.add(ajouter);
71
		final Rafraichissable r = this ;
73
		final Rafraichissable r = this ;
Line 72... Line 74...
72
 
74
 
73
		final Button modifier = new Button(mediateur.i18nC.modifier());
75
		modifier = new Button(mediateur.i18nC.modifier());
74
		modifier.setIcon(Images.ICONES.formModifier());
76
		modifier.setIcon(Images.ICONES.formModifier());
75
		modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {  
77
		modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {  
Line 76... Line 78...
76
			public void componentSelected(ButtonEvent ce) {  
78
			public void componentSelected(ButtonEvent ce) {  
Line 142... Line 144...
142
			public void handleEvent(BaseEvent be) {
144
			public void handleEvent(BaseEvent be) {
143
				grille.getStore().sort("fmt_nom_complet", SortDir.ASC);
145
				grille.getStore().sort("fmt_nom_complet", SortDir.ASC);
144
				grille.getSelectionModel().select(0, false);
146
				grille.getSelectionModel().select(0, false);
145
			}
147
			}
146
		});
148
		});
-
 
149
		
-
 
150
		grille.addListener(Events.OnDoubleClick, new Listener<BaseEvent>(){
-
 
151
 
-
 
152
			@Override
-
 
153
			public void handleEvent(BaseEvent be) {
-
 
154
				modifier.fireEvent(Events.Select);
-
 
155
			}
-
 
156
			
-
 
157
		});
147
		add(grille);
158
		add(grille);
Line 148... Line 159...
148
		
159
		
149
		// Définition de la barre de pagination
160
		// Définition de la barre de pagination
150
		pagination = new BarrePaginationVue(new PersonneListe(), mediateur);
161
		pagination = new BarrePaginationVue(new PersonneListe(), mediateur);