New Features of Google Web Toolkit (GWT) 2.0

Source: Internet
Author: User

 

GWT2.0New features include: Speed tracer-a performance analysis tool, development mode, uibinder, layout panel, and more JavascriptCodeOptimization.

Built using GWTSpeed Tracer(St) is the most attractive GWT plug-in. It is a performance analysis tool for chrome and can be used to analyze any web application, not just GWT applications. St is a chrome extension, so it must be installed in chrome 4 of the development version.

St contains two main views: sluggishness and network. The former displays the response of the UI over time, while the latter displays network activity in the same time period. You can also use commands such as start, stop, and recording to analyze a specific time period.

 

Other important features of GWT 2.0 include:

 

Development Mode (DM)

    • This is a brand new GWT development plug-in to help debug GWT applications in any browser. This means you can use the GWT debugging function in your browser with your favorite tools, such as firebug in Firefox.
    • You can monitor multiple browsers in a session.
    • DM can run locally or across networks to test web applications in any browser-operating system combination environment or even real environment.
    • The new GWT Eclipse plug-in integrates the Development Mode: You can start, control, and display debugging information within eclipse. The development mode can also be implemented in any Java ide except eclipse.

UibinderIs a declarative method used to create a GWT-based UI. Widgets that constitute the user interface are declared in the template XML file and associated with Java classes. In this way, the UI and business logic are separated. The Eclipse plug-in of GWT has a wizard to help developers compile template files, complete code, and refactor.

The uibinder template can also contain CSS styles related to widgets. This means that a widget can be used in different applications, but maintains the same appearance.

Layout panel

Introducing a CSS-based layout panel makes it possible to create an application with the same appearance in any browser, which was previously difficult to implement. There isEmail ExampleThis layout panel is demonstrated. Uibinder can also be used to layout a panel.

Compiler

GWT 2.0 also introduces code segmentation. This means that the compiled code can be divided into two or more parts. In this way, you can start the application without waiting for the application to be fully loaded. Code segmentation is done by calling GWT. runasync () at the desired splitting point. The compiler can ensure that the dependencies required for the split code block are loaded in time.

The size of the generated JavaScript code can be optimized by 3-20%.

GWT is an apace-based License The current version is 2.0. Its SDK, speed tracer, and Eclipse plug-ins can be found in Here Get free . Author Abel AvramTranslator Zhang Kaifeng Http://www.infoq.com/cn/news/2009/12/Speed-Tracer-GWT-2   . Download it directly here: Google Web Toolkit downloads
SDK

The Google Web Toolkit SDK contains the core Libraries

And compiler that you need to write web applications.

Download SDK

By downloading, you agree to
Terms & Conditions and privacy policy.

Speed Tracer

Speed tracer is a chrome extension that allows you

Pinpointperformanceproblems in your web applications.

Download speed Tracer
Plugin for eclipse

The Google plugin for eclipse provides ide support

Google Web Toolkit and App Engine web projects.

Download plugin

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.