Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1151 Rev 1152
Line 22... Line 22...
22
	private String idImage;
22
	private String idImage;
Line 23... Line 23...
23
 
23
 
24
	public interface Vue extends IsWidget {
24
	public interface Vue extends IsWidget {
25
		public HasClickHandlers getBoutonValider();
25
		public HasClickHandlers getBoutonValider();
26
		public HasText getSaisieMotsCles();
26
		public HasText getSaisieMotsCles();
-
 
27
		public HasKeyPressHandlers getSaisieMotsClesHasKeyPressHandlers();
27
		public HasKeyPressHandlers getSaisieMotsClesHasKeyPressHandlers();	
28
		public void focuserChampSaisie();	
Line 28... Line 29...
28
	}
29
	}
Line 29... Line 30...
29
 
30
 
Line 56... Line 57...
56
			}
57
			}
57
		});
58
		});
58
	}
59
	}
Line 59... Line 60...
59
	
60
	
60
	private void validerSaisie() {
61
	private void validerSaisie() {
-
 
62
		String texte = vue.getSaisieMotsCles().getText();
61
		if(vue.getSaisieMotsCles().getText() != null) {
63
		if(texte != null && !texte.isEmpty()) {
62
			motsClesService.ajouterMotCleImage(idImage, vue.getSaisieMotsCles().getText(), new AjoutMotsClesImageCallBack() {				
64
			motsClesService.ajouterMotCleImage(idImage, vue.getSaisieMotsCles().getText(), new AjoutMotsClesImageCallBack() {				
63
				@Override
65
				@Override
64
				public void surRetour(Void objetRetour) {
66
				public void surRetour(Void objetRetour) {
65
					EvenementAjoutMotCleImage event = new EvenementAjoutMotCleImage(idImage, vue.getSaisieMotsCles().getText());
67
					EvenementAjoutMotCleImage event = new EvenementAjoutMotCleImage(idImage, vue.getSaisieMotsCles().getText());
Line 70... Line 72...
70
	}
72
	}
Line 71... Line 73...
71
 
73
 
72
	public void viderChampSaisie() {
74
	public void viderChampSaisie() {
73
		vue.getSaisieMotsCles().setText("");
75
		vue.getSaisieMotsCles().setText("");
-
 
76
	}
-
 
77
 
-
 
78
	public void focuserChampSaisie() {
-
 
79
		vue.focuserChampSaisie();
74
	}
80
	}