Subversion Repositories eFlore/Applications.del

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1162 aurelien 1
package org.tela_botanica.del.client.composants.motsclesimages.motcle;
2
 
3
import org.tela_botanica.del.client.i18n.I18n;
4
 
5
import com.google.gwt.core.client.GWT;
6
import com.google.gwt.event.dom.client.HasBlurHandlers;
7
import com.google.gwt.event.dom.client.HasClickHandlers;
8
import com.google.gwt.event.dom.client.HasFocusHandlers;
9
import com.google.gwt.event.dom.client.HasMouseOutHandlers;
10
import com.google.gwt.event.dom.client.HasMouseOverHandlers;
11
import com.google.gwt.uibinder.client.UiBinder;
12
import com.google.gwt.uibinder.client.UiField;
13
import com.google.gwt.user.client.ui.Composite;
14
import com.google.gwt.user.client.ui.FocusPanel;
15
import com.google.gwt.user.client.ui.HTML;
16
import com.google.gwt.user.client.ui.HTMLPanel;
17
import com.google.gwt.user.client.ui.HasWidgets;
18
import com.google.gwt.user.client.ui.InlineHTML;
19
import com.google.gwt.user.client.ui.Panel;
20
import com.google.gwt.user.client.ui.Widget;
21
 
22
public class MotCleVue extends Composite  implements MotClePresenteur.Vue {
23
 
24
	@UiField
25
	public InlineHTML motCle;
26
 
27
	@UiField
28
	public FocusPanel suppressionMotCle;
29
 
30
	@UiField
31
	public FocusPanel conteneurMotCle;
32
 
33
	interface MyUiBinder extends UiBinder<Widget, MotCleVue> {
34
 
35
	}
36
 
37
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
38
 
39
	public MotCleVue(String mot) {
40
		initWidget(uiBinder.createAndBindUi(this));
41
		motCle.setText(mot);
42
		suppressionMotCle.setTitle(I18n.getVocabulary().indiceSupprimerMotCle());
43
	}
44
 
45
	@Override
46
	public HasClickHandlers getZoneSuppressionMotCle() {
47
		return suppressionMotCle;
48
	}
49
 
50
	@Override
51
	public void afficherZoneSuppression() {
52
		suppressionMotCle.removeStyleName("invisible");
53
	}
54
 
55
	@Override
56
	public void cacherZoneSuppression() {
57
		suppressionMotCle.addStyleName("invisible");
58
	}
59
 
60
	@Override
61
	public HasMouseOverHandlers getZoneMotCleMouseHover() {
62
		return conteneurMotCle;
63
	}
64
 
65
	@Override
66
	public HasMouseOutHandlers getZoneMotCleMouseOut() {
67
		return conteneurMotCle;
68
	}
69
}