Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 10 Rev 11
Line 3... Line 3...
3
 
3
 
Line 4... Line -...
4
 
-
 
5
import java.util.EventListener;
4
 
6
 
5
import java.util.EventListener;
7
 
6
 
8
import com.google.gwt.i18n.client.Dictionary;
7
 
9
import com.google.gwt.json.client.JSONArray;
8
import com.google.gwt.json.client.JSONArray;
Line 16... Line 15...
16
 
15
 
Line 17... Line 16...
17
 
16
 
-
 
17
import org.tela_botanica.client.AutoCompleteAsyncTextBox;
-
 
18
 
18
import org.tela_botanica.client.AutoCompleteAsyncTextBox;
19
/**
19
 
20
 * Affiche une liste de localite qui peuvent être selectionnées, retourne la valeur de la localité selectionne et une code associé
Line 20... Line 21...
20
/**
21
 * (gettext et getvalue pour le code associé)
Line 21... Line 22...
21
 * A composite that displays a list of locations that can be selected.
22
 * Utilise un assistant de saisie asynchrone.
22
 */
23
 */
Line -... Line 24...
-
 
24
 
-
 
25
public class LocationAssistant extends Composite implements EventListener, ResponseTextHandler  {
23
 
26
 
Line -... Line 27...
-
 
27
  private AutoCompleteAsyncTextBox autoCompletebox = new AutoCompleteAsyncTextBox(this);
-
 
28
  private HorizontalPanel panel = new HorizontalPanel();
-
 
29
  
24
public class LocationAssistant extends Composite implements EventListener, ResponseTextHandler  {
30
  private Mediator mediator = null;
25
 
31
  
Line 26... Line 32...
26
  private AutoCompleteAsyncTextBox autoCompletebox = new AutoCompleteAsyncTextBox(this);
32
  public LocationAssistant(Mediator med) {
Line 27... Line 33...
27
  private HorizontalPanel panel = new HorizontalPanel();
33
 
28
  
34
	mediator=med;
29
  public LocationAssistant(AutoCompleteAsyncTextBoxListener listener) {
35
	mediator.registerLocationAssistant(this);		
Line 30... Line 36...
30
 
36
	  
Line 31... Line 37...
31
//	autoCompletebox.setFocus(true);
37
//	autoCompletebox.setFocus(true);
Line 61... Line 67...
61
public String getText() {
67
public String getText() {
62
	return autoCompletebox.getText();
68
	return autoCompletebox.getText();
63
}
69
}
Line 64... Line 70...
64
 
70
 
65
 
71
 
66
public String getValue() {
72
public void setText(String str) {
Line 67... Line 73...
67
	return autoCompletebox.getValue();
73
	autoCompletebox.setText(str);
68
}
-
 
69
 
-
 
70
 
74
}
71
public String getServiceBaseUrl() {
-
 
72
	  
-
 
73
	  Dictionary theme = Dictionary.getDictionary("Parameters");
75
 
Line 74... Line 76...
74
	  return theme.get("serviceBaseUrl");
76
 
Line 75... Line 77...
75
	  
77
public String getValue() {