Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 10 | Rev 13 | 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
 
18
import org.tela_botanica.client.AutoCompleteAsyncTextBox;
17
import org.tela_botanica.client.AutoCompleteAsyncTextBox;
19
 
18
 
Line 20... Line 19...
20
/**
19
/**
Line 21... Line 20...
21
 * A composite that displays a list of names that can be selected.
20
 * Affiche une liste de nom pour selection. Son retournés le nom selectionné (gettext()) et un code associé (getvalue()).
22
 */
21
 */
Line -... Line 22...
-
 
22
 
-
 
23
public class NameAssistant extends Composite implements EventListener, ResponseTextHandler  {
-
 
24
 
23
 
25
  private AutoCompleteAsyncTextBox autoCompletebox = new AutoCompleteAsyncTextBox(this);
Line -... Line 26...
-
 
26
  private HorizontalPanel panel = new HorizontalPanel();
-
 
27
  
-
 
28
  private Mediator mediator = null;
-
 
29
	
24
public class NameAssistant extends Composite implements EventListener, ResponseTextHandler  {
30
  
25
 
31
  public NameAssistant(Mediator med) {
Line 26... Line 32...
26
  private AutoCompleteAsyncTextBox autoCompletebox = new AutoCompleteAsyncTextBox(this);
32
 
Line 27... Line 33...
27
  private HorizontalPanel panel = new HorizontalPanel();
33
	mediator=med;
28
  
34
	mediator.registerNameAssistant(this);		
29
  public NameAssistant(AutoCompleteAsyncTextBoxListener listener) {
35
	
Line 30... Line 36...
30
 
36
	
Line 31... Line 37...
31
//	autoCompletebox.setFocus(true);
37
//	autoCompletebox.setFocus(true);
Line 67... Line 73...
67
 
73
 
68
public String getValue() {
74
public String getValue() {
69
	return autoCompletebox.getValue();
75
	return autoCompletebox.getValue();
Line 70... Line -...
70
}
-
 
71
 
-
 
72
 
-
 
73
public String getServiceBaseUrl() {
-
 
74
	  
-
 
75
	  Dictionary theme = Dictionary.getDictionary("Parameters");
-
 
76
	  return theme.get("serviceBaseUrl");
-
 
77
	  
-
 
78
 
-
 
Line 79... Line 76...
79
	} 
76
}
Line 80... Line 77...
80
  
77