Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1165 Rev 1239
Line 4... Line 4...
4
import java.util.List;
4
import java.util.List;
Line 5... Line 5...
5
 
5
 
Line 6... Line 6...
6
import org.tela_botanica.del.client.utils.StringUtils;
6
import org.tela_botanica.del.client.utils.StringUtils;
-
 
7
 
7
 
8
import com.google.gwt.core.client.GWT;
8
import com.google.gwt.core.client.GWT;
9
import com.google.gwt.event.dom.client.HasClickHandlers;
-
 
10
import com.google.gwt.uibinder.client.UiBinder;
9
import com.google.gwt.uibinder.client.UiBinder;
11
import com.google.gwt.uibinder.client.UiField;
10
import com.google.gwt.uibinder.client.UiField;
12
import com.google.gwt.user.client.ui.Button;
11
import com.google.gwt.user.client.ui.Composite;
13
import com.google.gwt.user.client.ui.Composite;
-
 
14
import com.google.gwt.user.client.ui.HTML;
12
import com.google.gwt.user.client.ui.HTML;
15
import com.google.gwt.user.client.ui.HasWidgets;
13
import com.google.gwt.user.client.ui.HasWidgets;
16
import com.google.gwt.user.client.ui.Image;
14
import com.google.gwt.user.client.ui.InlineHTML;
17
import com.google.gwt.user.client.ui.InlineHTML;
Line 15... Line 18...
15
import com.google.gwt.user.client.ui.Panel;
18
import com.google.gwt.user.client.ui.Panel;
Line 16... Line 19...
16
import com.google.gwt.user.client.ui.Widget;
19
import com.google.gwt.user.client.ui.Widget;
17
 
20
 
18
public class MotsClesImageVue extends Composite  implements MotsClesImagePresenteur.Vue {
21
public class MotsClesImageVue extends Composite  implements MotsClesImagePresenteur.Vue {
19
	
22
	
20
	@UiField
23
	@UiField
Line 21... Line 24...
21
	public Panel motsCles;
24
	Panel motsCles, motsClesCel, saisieMotsCles, zoneIconesMotsCles;
22
	
25
 
23
	@UiField
26
	@UiField
24
	public Panel motsClesCel;
27
	Image image;
Line 25... Line 28...
25
	
28
	
Line 26... Line 29...
26
	@UiField
29
	@UiField
Line 65... Line 68...
65
			String motNormalise = StringUtils.normaliser(mot);
68
			String motNormalise = StringUtils.normaliser(mot);
66
			if(!mot.trim().isEmpty() && motsClesCelAFiltrer.contains(StringUtils.normaliser(motNormalise))) {
69
			if(!mot.trim().isEmpty() && motsClesCelAFiltrer.contains(StringUtils.normaliser(motNormalise))) {
67
				HTML motCle = new InlineHTML(mot);
70
				HTML motCle = new InlineHTML(mot);
68
				motCle.setStyleName("motCleCel");
71
				motCle.setStyleName("motCleCel");
69
				motsClesCel.add(motCle);
72
				motsClesCel.add(motCle);
-
 
73
				
70
			}
74
			}
71
		}
75
		}
72
	}
76
	}
-
 
77
 
-
 
78
	@Override
-
 
79
	public void setImage(String url) {
-
 
80
		image.setUrl(url);
-
 
81
	}
-
 
82
	
-
 
83
	@Override
-
 
84
	public HasWidgets getZoneIconesMotsCles() {
-
 
85
		return zoneIconesMotsCles;
-
 
86
	}
-
 
87
	
-
 
88
	public HasClickHandlers getValiderMotCles() {
-
 
89
		return validerMotsCles;
-
 
90
	}
73
}
91
}