Subversion Repositories eFlore/Applications.del

Rev

Rev 1580 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1183 gduche 1
package org.tela_botanica.del.client.composants.partageurl;
1129 gduche 2
 
3
import com.google.gwt.core.client.GWT;
4
import com.google.gwt.event.dom.client.HasClickHandlers;
5
import com.google.gwt.uibinder.client.UiBinder;
6
import com.google.gwt.uibinder.client.UiField;
7
import com.google.gwt.user.client.ui.Composite;
8
import com.google.gwt.user.client.ui.HasWidgets;
9
import com.google.gwt.user.client.ui.Label;
10
import com.google.gwt.user.client.ui.Panel;
11
import com.google.gwt.user.client.ui.TextBox;
12
import com.google.gwt.user.client.ui.Widget;
13
 
1183 gduche 14
public class PartageUrlVue extends Composite implements PartageUrlPresenteur.Vue{
1129 gduche 15
 
16
	@UiField Panel zonePartage;
17
	@UiField Label fermer, partage;
18
	@UiField TextBox url;
19
 
1580 jpm 20
	interface Binder extends UiBinder<Widget, PartageUrlVue> {}
1129 gduche 21
 
22
	private static Binder uiBinder = GWT.create(Binder.class);
23
 
1183 gduche 24
	public PartageUrlVue() {
1129 gduche 25
		initWidget(uiBinder.createAndBindUi(this));
26
	}
27
 
28
	@Override
29
	public void ajouterVue(HasWidgets composite) {
30
		composite.add(this.asWidget());
31
	}
32
 
33
	@Override
34
	public void masquerFormulaire() {
35
		zonePartage.setVisible(false);
36
	}
37
 
38
	@Override
39
	public void afficherFormulaire() {
40
		zonePartage.setVisible(true);
41
	}
42
 
43
	public HasClickHandlers getFermer() {
44
		return fermer;
45
	}
46
 
47
	@Override
48
	public HasClickHandlers getBoutonPartage() {
49
		return partage;
50
	}
51
 
52
	public void setUrl(String url) {
53
		this.url.setText(url);
54
	}
55
}