3,13 → 3,10 |
import org.tela_botanica.client.image.ImageMediateur; |
import org.tela_botanica.client.interfaces.Rafraichissable; |
|
import com.google.gwt.user.client.Event; |
import com.google.gwt.user.client.ui.ClickListener; |
import com.google.gwt.user.client.ui.Image; |
import com.google.gwt.user.client.ui.MouseListener; |
import com.google.gwt.user.client.ui.MouseListenerAdapter; |
import com.google.gwt.user.client.ui.Widget; |
import com.gwtext.client.core.EventObject; |
import com.gwtext.client.widgets.Panel; |
|
public class BarreNotationVue extends Panel implements Rafraichissable { |
47,6 → 44,7 |
etoiles[i].addMouseListener(new MouseListenerAdapter() { |
|
|
|
public void onMouseEnter(Widget sender) { |
|
Image enCours = (Image)sender ; |
61,6 → 59,7 |
|
} |
|
|
public void onMouseLeave(Widget sender) { |
|
afficherNote() ; |
81,7 → 80,6 |
} |
|
noter(i) ; |
System.out.println("Nouvelle note : "+noteEnCours); |
|
} |
|
101,8 → 99,7 |
|
String[] note = (String[])nouvelleDonnees ; |
int noteInt = Integer.parseInt(note[0]) ; |
|
System.out.println("Note reçue : "+noteInt); |
|
if(noteInt != -1) |
{ |
noter(noteInt) ; |