CSC/ECE 517 Fall 2014/ch1a 6 bn: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
The Toolkit consists of a software development kit (GWT SDK) and an eclipse Plugin (Plugin for Eclipse). | The Toolkit consists of a software development kit (GWT SDK) and an eclipse Plugin (Plugin for Eclipse). | ||
===GWT SDK=== | |||
GWT SDK contains the Java API libraries, compiler, and development server. It lets you write client-side applications in Java and deploy them as JavaScript. | |||
The three major components of the SDK are: | The three major components of the SDK are: | ||
====GWT Java to JavaScript compiler==== | |||
The browsers currently supported by the compiler include | This is the most important part of GWT which makes it a powerful tool for building RIAs. The GWT compiler is used to translate all the application code written in Java into JavaScript.It also supports mixing of Java code with existing JavaScript code using '''JavaScript Native Interface (JSNI)''', which allows embedding of JavaScript code within Java classes in order to facilitate Java-to-JavaScript communication. One key feature of the GWT compiler is that it generates multiple output JavaScript files from the input code, one per each browser to ensure cross browser compatibility of the application. The browsers currently supported by the compiler include | ||
::: Firefox | ::: Firefox | ||
::: Internet Explorer 8, 9, 10, 11 | ::: Internet Explorer 8, 9, 10, 11 | ||
Line 18: | Line 19: | ||
::: Chromium and Google Chrome | ::: Chromium and Google Chrome | ||
::: Opera latest version | ::: Opera latest version | ||
:The compiler has three style modes that determine what the resulting Java-Script looks like. | |||
::The default style is obfuscate, which makes the JavaScript looklike alphabet soup. Everything is compressed and nearly impossible to decipher. | |||
::[[File:Example.jpg]] | |||
====JRE Emulation library==== | |||
Google Web Toolkit includes a library that emulates a subset of the Java runtime library. The list includes java.lang, java.lang.annotation, java.math, java.io, java.sql, java.util and java.util.logging | |||
====GWT UI building library==== This part of GWT consists of many subparts which includes the actual UI components, RPC support, History management, and much more. | |||
*'''Plugin for Eclipse''' provides IDE support for GWT and App Engine web projects. | *'''Plugin for Eclipse''' provides IDE support for GWT and App Engine web projects. |
Revision as of 15:52, 17 September 2014
Google Web Toolkit
Google Web Toolkit(GWT) is a set of tools used to develop browser based RICH Web Applications(RIA). It is a free open source web framework released in 2006 under Apache 2.0 License. The focus of this toolkit is to provide great user experience by bringing the features and feel similar to that of a desktop application to the browser based web applications. GWT as a framework can be used to build large scale and high performance easy-to-maintain web appliations. GWT is used by many products at Google, including AdWords, AdSense, Flights, Hotel Finder, Offers, Wallet, Blogger, Maps.
The latest Version of GWT (GWT 2.6.1) was released on May 10, 2014.
Contents of the Toolkit
The Toolkit consists of a software development kit (GWT SDK) and an eclipse Plugin (Plugin for Eclipse).
GWT SDK
GWT SDK contains the Java API libraries, compiler, and development server. It lets you write client-side applications in Java and deploy them as JavaScript. The three major components of the SDK are:
GWT Java to JavaScript compiler
This is the most important part of GWT which makes it a powerful tool for building RIAs. The GWT compiler is used to translate all the application code written in Java into JavaScript.It also supports mixing of Java code with existing JavaScript code using JavaScript Native Interface (JSNI), which allows embedding of JavaScript code within Java classes in order to facilitate Java-to-JavaScript communication. One key feature of the GWT compiler is that it generates multiple output JavaScript files from the input code, one per each browser to ensure cross browser compatibility of the application. The browsers currently supported by the compiler include
- Firefox
- Internet Explorer 8, 9, 10, 11
- Safari 5, 6
- Chromium and Google Chrome
- Opera latest version
- The compiler has three style modes that determine what the resulting Java-Script looks like.
JRE Emulation library
Google Web Toolkit includes a library that emulates a subset of the Java runtime library. The list includes java.lang, java.lang.annotation, java.math, java.io, java.sql, java.util and java.util.logging
====GWT UI building library==== This part of GWT consists of many subparts which includes the actual UI components, RPC support, History management, and much more.
- Plugin for Eclipse provides IDE support for GWT and App Engine web projects.