Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Google I/O 2008 - JavaScript and DOM Programming in GWT

Loading...

Sign in or sign up now!
31,321
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 10, 2008

Surprisingly Rockin' JavaScript and DOM Programming in GWT
Bruce Johnson (Google)

You may already know about GWT's nifty JavaScript Native Interface (JSNI), which allows you to define native Java methods with handwritten JavaScript. In GWT 1.5, there's an even more powerful way to program close to the metal. You can now model arbitrary JavaScript types directly as Java classes (specifically, as subclasses of GWT's JavaScriptObject class), yet there is no overhead in size or speed. You can code against any JavaScript object as if it were a regular old Java object. So, what does that buy you?

* It's never been easier to integrate with external JS libraries; just define a Java class that models the JS object you want to interact with. Nice Java syntax, no overhead.
* Freely use low-level native JS data structures (JS arrays, for example) by exposing them with a Java-friendly API. You can even apply Java generics to JS types!
* Superimpose strongly-typed Java classes on JSON objects, giving you IDE code completion, refactoring and compile-time type checking.
* GWT uses this new ability to provide a complete cross-browser DOM class hierarchy based on the W3C's Java HTML bindings. Programming straight to the DOM has never been more productive.

Come learn about this unusual and powerful new capability that you can use to squeeze every drop of performance and interop out of your GWT projects.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • Bruce Johnson:"[..] then the compiler shuts up and then everything works"; I love it when that happens!

  • You make decompiling shrouded code seem easy.

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • DOM and JAvascript programming is exciting to learn.

  • Congratulations Bruce!

    Very good apresentation about GWT.

    Regards.

  • @eutana if you haven't found out yet, you can either google it, or go under help. If you want to hear a short solution, it is: Turn javascript on!

  • COOOL,,KEEP IT ON

  • anyone out there know how to fix javascript turned off error? Answer in text.  Can not view video.

  • Nice, Really Nice!!!

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more