background preloader

Mon premier projet GWT - Club d'entraide des développeurs francophones

Mon premier projet GWT - Club d'entraide des développeurs francophones
I-A. Remerciements▲ Merci à Ricky81 pour sa relecture attentive. I-B. Présentation▲ Au cours de cet article, nous verrons comment utiliser et intégrer le framework GWT avec Eclipse. II-A. Pour commencer, il faut créer le répertoire de base du projet. Création du répertoire Sélectionnez mkdir demoGWT On se place dans ce répertoire pour travailler. Création des fichiers projet Eclipse projectCreator -eclipse demoGWT Created directory D:\gwt-windows-1.1.10\demoGWT\test Created file D:\gwt-windows-1.1.10\demoGWT\.project Created file D:\gwt-windows-1.1.10\demoGWT\.classpath Création de l'arborescence applicative applicationCreator -eclipse demoGWT com.developpez.exemple.gwt.client.MonApplication Maintenant que la structure applicative est créée, on pourrait simplement utiliser un éditeur de texte. II-B. En production, on aura évidemment besoin d'un serveur applicatif ou d conteneur web tel Tomcat. Comme tout bon tutoriel, nous allons commencer par un "Hello World !". IV-A. MonApplication.html IV-B. <?

Dragging and dropping with gwt-dnd | GWT Site Today, we are going to take a look at adding drag-and-drop to our GWT applications. I’ve seen quite a few solutions for adding drag-and-drop, including a few tutorials that show how roll your own solution. But why reinvent the wheel when there is a perfectly good drag and drop library like gwt-dnd? To install, download the latest gwt-dnd jar file, add it to your build path and add the following line to your GWT application module file. In this demo, we’re going to allow users to drop books into a shopping cart. (com.gwtsite.dnd.client.Book) Book is a GWT composite widget that will display the book’s title, image, and price. Dragging is handled by implementing the DragController interface. (com.gwtsite.dnd.client.ShoppingCartDemo) Then I make Book widgets draggable by calling makeDraggable on the drag controller. For the drop part of the demo, I created a ShoppingCart object which serves as the drop target. (com.gwtsite.dnd.client.CartDropController) This is the demo in action.

GettingStarted - gwt-dnd - Getting started with gwt-dnd in your own application. - Google Code import com.google.gwt.core.client.EntryPoint;import com.google.gwt.core.client.GWT;import com.google.gwt.user.client.Command;import com.google.gwt.user.client.DOM;import com.google.gwt.user.client.DeferredCommand;import com.google.gwt.user.client.Random;import com.google.gwt.user.client.ui.AbsolutePanel;import com.google.gwt.user.client.ui.DialogBox;import com.google.gwt.user.client.ui.Label;import com.google.gwt.user.client.ui.RootPanel; import com.allen_sauer.gwt.dnd.client.PickupDragController;import com.allen_sauer.gwt.dnd.client.drop.AbsolutePositionDropController;import com.allen_sauer.gwt.dnd.client.drop.DropController;import com.allen_sauer.gwt.dnd.client.util.DOMUtil; // use a deferred command so that the handler catches onModuleLoad2() exceptions DeferredCommand.addCommand(new Command() { public void execute() { onModuleLoad2(); } }); } // Add both panels to the root panel RootPanel.get().add(boundaryPanel); boundaryPanel.add(targetPanel, 10, 10);

Introduction to the Google Web Toolkit Framework - NetBeans IDE 6.x Tutorial Google Web Toolkit (GWT) is an open source web development framework that allows developers to easily create high-performance AJAX applications using Java. With GWT, you are able to write your front end in Java, and it compiles your source code into highly optimized, browser-compliant JavaScript and HTML. "Writing web apps today is a tedious and error-prone process. You spend 90% of your time working around browser quirks, and JavaScript's lack of modularity makes sharing, testing, and reusing AJAX components difficult and fragile. It doesn't have to be that way," reads the Google Web Toolkit site . In this tutorial, you learn how the above principles are applied to real applications. Setting Up the Environment Creating the Source Structure of a GWT Application Examining the Source Structure of a GWT Application Creating an AJAX Random Quote Generator Generating the Service Stubs Examining the Generated Classes Extending the Generated Classes Customizing the Appearance Compiling and Debugging <!

Related: