Créer un noeud div avec évenements Javascript en GWT
Par philippe voncken, dimanche 10 janvier 2010 à 16:53 :: Web et XML :: #160 :: rss
Voilà comment créer une div avec gestion des évènements Javascript en GWT :
public class MyDivPanel extends FlowPanel implements MouseDownHandler, HasMouseDownHandlers { public MyDivPanel() { super(); this.addMouseDownHandler(this); } public void onMouseDown(MouseDownEvent arg0) { GWT.log("Mouse Down Event OK", null); } public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) { return addDomHandler(handler, MouseDownEvent.getType()); } }
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.