Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 25
Line 1... Line 1...
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
Line 2... Line 2...
2
 
2
 
3
import java.util.Iterator;
3
import java.util.Iterator;
Line -... Line 4...
-
 
4
import java.util.Vector;
-
 
5
 
4
import java.util.Vector;
6
import com.google.gwt.user.client.ResponseTextHandler;
Line 5... Line 7...
5
 
7
 
6
public class AutoCompleteAsyncTextBoxListenerCollection extends Vector {
8
public class AutoCompleteAsyncTextBoxListenerCollection extends Vector {
7
	
9
	
8
  private static final long serialVersionUID = -2767605614048989439L;
10
  private static final long serialVersionUID = -2767605614048989439L;
9
  /**
11
  /**
10
   * Fires a cellClicked event to all listeners.
12
   * Fires a Text enter event to all listeners.
11
   * 
13
   * 
12
   * @param sender the widget sending the event
14
   * @param sender the widget sending the event
13
   * @param text the text sent
15
   * @param text the text sent
14
   */
16
   */
15
  public void fireTextBoxEnter(SourcesAutoCompleteAsyncTextBoxEvents sender,  String text, String value) {
17
  public void fireTextBoxEnter(SourcesAutoCompleteAsyncTextBoxEvents sender,  String text, String value) {
16
    for (Iterator it = iterator(); it.hasNext();) {
18
    for (Iterator it = iterator(); it.hasNext();) {
17
      AutoCompleteAsyncTextBoxListener listener = (AutoCompleteAsyncTextBoxListener) it.next();
19
      AutoCompleteAsyncTextBoxListener listener = (AutoCompleteAsyncTextBoxListener) it.next();
-
 
20
      listener.onValidate(sender, text, value);
-
 
21
    }
-
 
22
  }
-
 
23
  
-
 
24
  
-
 
25
  /**
-
 
26
   * Fires a Text complete event to all listeners.
-
 
27
   * 
-
 
28
   * @param sender the widget sending the event
-
 
29
   * @param text the text sent
-
 
30
   */
-
 
31
  public void fireTextBoxComplete(ResponseTextHandler sender,  String text, String value) {
-
 
32
    for (Iterator it = iterator(); it.hasNext();) {
-
 
33
      AutoCompleteAsyncTextBoxListener listener = (AutoCompleteAsyncTextBoxListener) it.next();
-
 
34
      listener.onComplete(sender, text, value);
18
      listener.onValidate(sender, text, value);
35
    }
19
    }
36
  }