Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1513 Rev 1661
Line 32... Line 32...
32
	
32
	
33
	private Mediateur mediateur = null;
33
	private Mediateur mediateur = null;
34
	private Constantes i18nC = null;
34
	private Constantes i18nC = null;
35
	protected TextField<String> login = null;
35
	protected TextField<String> login = null;
36
	protected TextField<String> motDePasse = null;
-
 
37
	protected Button reinitialiserBouton = null;
36
	protected TextField<String> motDePasse = null;
38
	protected Button validerBouton = null;
37
	protected Button validerBouton = null;
39
	private Button annulerBouton = null;
38
	private Button annulerBouton = null;
40
	protected Status status = null;
39
	protected Status status = null;
41
	private String zoneInfoTpl = null;
40
	private String zoneInfoTpl = null;
Line 115... Line 114...
115
	    status.setAutoWidth(true);
114
	    status.setAutoWidth(true);
116
	    getButtonBar().add(status);
115
	    getButtonBar().add(status);
Line 117... Line 116...
117
	    
116
	    
Line 118... Line -...
118
	    getButtonBar().add(new FillToolItem());
-
 
119
	    
-
 
120
		reinitialiserBouton = new Button(i18nC.reinitialiser());
-
 
121
		reinitialiserBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
-
 
122
			public void componentSelected(ButtonEvent ce) {
-
 
123
				zoneInfoHtml.hide();
-
 
124
				login.reset();
-
 
125
				motDePasse.reset();
-
 
126
				status.clearStatus("");
-
 
127
				valider();
-
 
128
				login.focus();
-
 
129
				layout();
-
 
130
			}
-
 
131
 
-
 
132
		});
117
	    getButtonBar().add(new FillToolItem());
133
 
118
	    
134
		validerBouton = new Button(i18nC.valider());
119
		validerBouton = new Button(i18nC.valider());
135
		validerBouton.disable(); // Par défaut : dois être en mode disable
120
		validerBouton.disable(); // Par défaut : dois être en mode disable
136
		validerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
121
		validerBouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
Line 144... Line 129...
144
			public void componentSelected(ButtonEvent ce) {
129
			public void componentSelected(ButtonEvent ce) {
145
				hide();
130
				hide();
146
			}
131
			}
147
		});
132
		});
Line 148... Line -...
148
		
-
 
149
		addButton(reinitialiserBouton);
133
		
150
		addButton(annulerBouton);
134
		addButton(annulerBouton);
151
		addButton(validerBouton);
135
		addButton(validerBouton);
Line 152... Line 136...
152
	}
136
	}