Subversion Repositories eFlore/Archives.cel-v2

Rev

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

Rev 46 Rev 47
Line 1... Line 1...
1
package org.tela_botanica.client.vues;
1
package org.tela_botanica.client.vues;
Line 2... Line 2...
2
 
2
 
3
import org.tela_botanica.client.image.ImageMediateur;
3
import org.tela_botanica.client.image.ImageMediateur;
Line 4... Line -...
4
import org.tela_botanica.client.interfaces.Rafraichissable;
-
 
5
 
4
import org.tela_botanica.client.interfaces.Rafraichissable;
6
import com.google.gwt.user.client.Event;
5
 
7
import com.google.gwt.user.client.ui.ClickListener;
-
 
8
import com.google.gwt.user.client.ui.Image;
6
import com.google.gwt.user.client.ui.ClickListener;
9
import com.google.gwt.user.client.ui.MouseListener;
7
import com.google.gwt.user.client.ui.Image;
10
import com.google.gwt.user.client.ui.MouseListenerAdapter;
-
 
11
import com.google.gwt.user.client.ui.Widget;
8
import com.google.gwt.user.client.ui.MouseListenerAdapter;
Line 12... Line 9...
12
import com.gwtext.client.core.EventObject;
9
import com.google.gwt.user.client.ui.Widget;
Line 13... Line 10...
13
import com.gwtext.client.widgets.Panel;
10
import com.gwtext.client.widgets.Panel;
Line 45... Line 42...
45
			noteCurseur = i ;
42
			noteCurseur = i ;
Line 46... Line 43...
46
			
43
			
Line -... Line 44...
-
 
44
			etoiles[i].addMouseListener(new MouseListenerAdapter() {
47
			etoiles[i].addMouseListener(new MouseListenerAdapter() {
45
 
Line 48... Line 46...
48
 
46
 
49
 
47
				
Line 59... Line 57...
59
					}
57
					}
60
						enCours.setUrl("etoile_curseur.jpg") ;
58
						enCours.setUrl("etoile_curseur.jpg") ;
Line 61... Line 59...
61
					
59
					
Line -... Line 60...
-
 
60
				}
62
				}
61
 
Line 63... Line 62...
63
 
62
				
64
				public void onMouseLeave(Widget sender) {
63
				public void onMouseLeave(Widget sender) {
Line 79... Line 78...
79
					{
78
					{
80
						i++ ;
79
						i++ ;
81
					}			
80
					}			
Line 82... Line 81...
82
					
81
					
83
					noter(i) ;
-
 
Line 84... Line 82...
84
					System.out.println("Nouvelle note : "+noteEnCours);
82
					noter(i) ;
Line 85... Line 83...
85
					
83
					
Line 99... Line 97...
99
		{
97
		{
100
			estNote = false ;
98
			estNote = false ;
Line 101... Line 99...
101
			
99
			
102
			String[] note = (String[])nouvelleDonnees ;
100
			String[] note = (String[])nouvelleDonnees ;
103
			int noteInt = Integer.parseInt(note[0]) ;
101
			int noteInt = Integer.parseInt(note[0]) ;
104
			
-
 
105
			System.out.println("Note reçue : "+noteInt);
102
	
106
			if(noteInt != -1)
103
			if(noteInt != -1)
107
			{
104
			{
108
				noter(noteInt) ;
105
				noter(noteInt) ;
109
			}
106
			}