9,6 → 9,7 |
import com.google.gwt.user.client.ui.Image; |
import com.gwtext.client.core.Ext; |
import com.gwtext.client.widgets.Panel; |
import com.gwtext.client.widgets.ToolTip; |
|
/** |
* Un panneau affichant la repartition d'une plante |
32,7 → 33,10 |
|
private String urlImage = "" ; |
|
private ToolTip tp = new ToolTip("<div class=\"x-tooltip-help\"> Double cliquez pour agrandir l'image </div>") ; |
|
com.gwtext.client.widgets.Window imgZoom = new com.gwtext.client.widgets.Window("Agrandissement") ; |
|
|
/** |
* Constructeur sans argument (privé car ne doit pas être utilisé) |
65,10 → 69,13 |
// on notifie le médiateur |
agrandirImage() ; |
} |
|
} |
|
}; |
|
tp.applyTo(image.getElement()) ; |
|
image.sinkEvents(Event.ONDBLCLICK); |
|
this.setCls("x-image-info-rep") ; |