200 likes | 453 Views
GWT Components & Features. GWT Architecture. http://code.google.com/webtoolkit/overview.html. GWT Components. There are 4 major GWT components : JRE emulation library GWT Web UI class library GWT Hosted Web Browser GWT Java-to-JavaScript Compiler. JRE Emulation Library.
E N D
GWT Components & Features Google Web Toolkit Presentation, CS 612, Pace University
GWT Architecture http://code.google.com/webtoolkit/overview.html Google Web Toolkit Presentation, CS 612, Pace University
GWT Components There are 4 major GWT components: • JRE emulation library • GWT Web UI class library • GWT Hosted Web Browser • GWT Java-to-JavaScript Compiler Google Web Toolkit Presentation, CS 612, Pace University
JRE Emulation Library • GWT contains a library that emulates the most commonly used classes in the Java standard class library: most of the java.lang package classes and a subset of the java.util package classes. Google Web Toolkit Presentation, CS 612, Pace University
GWT Web UI Class Library • A set of custom interfaces and classes for creating Widgets. Google Web Toolkit Presentation, CS 612, Pace University
Widgets & Panels • “Dynamic reusable UI components.” Widget - is a control used by a user. Panel - is container into which controls can be placed. • Browser Independent! • GWT includes a variety of pre-built Java widgets and panels. You can also create your own custom Widgets. Google Web Toolkit Presentation, CS 612, Pace University
Widgets Gallery http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.UserInterface.html#WidgetGallery Google Web Toolkit Presentation, CS 612, Pace University
GWT Hosted Web Browser • Allows you to test your GWT applications inside your IDE before deploying to the web server (the app runs as Java in the JVM without compiling to JavaScript). • This is known as “Hosted” mode. Google Web Toolkit Presentation, CS 612, Pace University
GWT Java to JavaScript Compiler • Core function of GWT! • Translates your Java code into JavaScript so that they can be deployed to the server - this is known as “web” mode. Google Web Toolkit Presentation, CS 612, Pace University
JSNI • JavaScript Native Interface (JSNI) allows you to manually write JavaScript in your Java code. • Some drawbacks of using JSNI are: code is less portable across browsers, it is more likely to leak memory, and hard for the compiler to optimize. • You can catch exceptions in your JSNI code as a JavaScriptException. Google Web Toolkit Presentation, CS 612, Pace University
Additional Features • Browser history management AJAX applications often break the browser’s back button. GWT fixes this by adding state to the browser's back button history. • Real debugging You can debug your Java code in your favorite IDE, such as Eclipse, and test the application before you deploy it. This gives you access to full debugging features. • Browser compatibilityGWT applications automatically support IE, Firefox, Mozilla, Safari, and Opera with no browser detection or special-casing within your code. • InternationalizationEasily create efficient internationalized applications and libraries. • JUnit integrationGWT's direct integration with JUnit lets you run JUnit tests! Google Web Toolkit Presentation, CS 612, Pace University
Google Web Toolkit:Plugins & Further Information Google Web Toolkit Presentation, CS 612, Pace University
GWT Java Documentation http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/index.html Google Web Toolkit Presentation, CS 612, Pace University
Eclipse Plugin • Cypal Studio for GWT (originally called “Googlipse”) http://www.cypal.in/studio • Cypal Studio for GWT is a set of Eclipse plugins for making GWT development easier. Google Web Toolkit Presentation, CS 612, Pace University
GWT Designer • GWT Designer – GUI creator. Visually design user interface. Based on WindowBuilder Pro Technology http://www.instantiations.com/gwtdesigner/index.html Google Web Toolkit Presentation, CS 612, Pace University
Other GWT Plugins GWT Studio Plugin for IntelliJ IDEA http://www.jetbrains.net/confluence/display/IDEADEV/GWT+Studio+plugin NetBeans GWT Plugin https://gwt4nb.dev.java.net/ VistaFei Visual IDE for GWT http://www.wirelexsoft.com/VistaFei.html Grails GWT Plugin http://docs.codehaus.org/display/GRAILS/GWT+Plugin Struts GWT Plugin http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html Mavin GWT Plugin http://code.google.com/p/gwt-maven/ Google Web Toolkit Presentation, CS 612, Pace University
Apps Built with GWT • Google Checkout http://checkout.google.com/ • Google Base http://base.google.com/ • Google Image Labeler http://images.google.com/imagelabeler/ • Queplix (CRM tool) http://www.queplix.com/ • DimDim (Web Based Conferfencing) http://www.dimdim.com/ Google Web Toolkit Presentation, CS 612, Pace University
GWT Conference December 3 – 6, 2007, San Francisco Google Web Toolkit Presentation, CS 612, Pace University
References / More Info… Google Web Toolkit Homepage http://code.google.com/webtoolkit/ Google Web Toolkit Blog http://googlewebtoolkit.blogspot.com/ Wikipedia reference http://en.wikipedia.org/wiki/Google_Web_Toolkit Working with the Google Web Toolkit http://www.onjava.com/pub/a/onjava/2006/05/31/working-with-google-web-toolkit.html Introduction to the Google Web Toolkit http://www.oracle.com/technology/pub/articles/dubois-gwt.html A GWT Tutorial http://today.java.net/pub/a/today/2006/06/27/client-side-google-web-toolkit.html Google Web Toolkit Presentation, CS 612, Pace University
References / More Info… OnGWT – Tracking News on GWT http://www.ongwt.com/ GWT Open Source Project on Google Code http://code.google.com/p/google-web-toolkit/ GWTPowered.org http://gwtpowered.org/ GWT Site http://www.gwtsite.com/ Ajax for Java Developers (IBM) http://www.ibm.com/developerworks/java/library/j-ajax4/ Google Web Toolkit Presentation, CS 612, Pace University