Kanjava20110302
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Kanjava20110302

on

  • 795 views

#kanjava 2011/3/2

#kanjava 2011/3/2

Statistics

Views

Total Views
795
Views on SlideShare
629
Embed Views
166

Actions

Likes
1
Downloads
1
Comments
0

3 Embeds 166

http://jujo00obo2o234ungd3t8qjfcjrs3o6k-a-sites-opensocial.googleusercontent.com 159
https://jujo00obo2o234ungd3t8qjfcjrs3o6k-a-sites-opensocial.googleusercontent.com 6
http://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Kanjava20110302 Presentation Transcript

  • 1. GWT meets HTML5
  • 2. CompileJava JavaScript
  • 3. ex) ImageResource, Inliner
  • 4. “Deferred Binding is Google Web Toolkits answer toJava reflection.” http://code.google.com/webtoolkit/doc/1.6/FAQ_Client.html#What_is_Deferred_Binding?
  • 5. http://www.youtube.com/watch?v=nvti32k4xyU Your Code Download exactly what you Your Code need in a single, optimized, can’t-go-wrong chunk FireFox IE6 en_US en_UK Single Java1D04ADDA.cache.html Code Base 15F361B8.cache.html Your Code Your Code Then cache it on the client Safari until the sun explodes Opera 9 fr_FR fr_CA7EFE4D24.cache.html D415D917.cache.html
  • 6. private static final PopupImpl impl = GWT.create(PopupImpl.class);<module>  <!-- Fall through to this rule is the browser isnt IE or Mozilla -->  <replace-with class="com.google.gwt.user.client.ui.impl.PopupImpl">    <when-type-is class="com.google.gwt.user.client.ui.impl.PopupImpl"/>  </replace-with>  <!-- Mozilla needs a different implementation due to issue #410 -->  <replace-with class="com.google.gwt.user.client.ui.impl.PopupImplMozilla">    <when-type-is class="com.google.gwt.user.client.ui.impl.PopupImpl"/>    <any>      <when-property-is name="user.agent" value="gecko"/>      <when-property-is name="user.agent" value="gecko1_8"/>    </any>  </replace-with>  <!-- IE has a completely different popup implementation -->  <replace-with class="com.google.gwt.user.client.ui.impl.PopupImplIE6">    <when-type-is class="com.google.gwt.user.client.ui.impl.PopupImpl"/>    <when-property-is name="user.agent" value="ie6" />  </replace-with></module>
  • 7.     Button b = new Button("Click me", new ClickHandler() {      public void onClick(ClickEvent event) {        GWT.runAsync(new RunAsyncCallback() {          public void onFailure(Throwable caught) {            Window.alert("Code download failed");          }          public void onSuccess() {            Window.alert("Hello, AJAX");          }        });      }    });
  • 8. Host Page (Module.html) Selection Script (module.nocache.html) Permutation Script Browser (Strongly-named.cache.html) Server onloadModule starts running runAsync Fragments
  • 9. public static native void log(String msg) /*-{ var logger = $wnd.console; if(logger && logger.markTimeline) { logger.markTimeline(msg); }}-*/;
  • 10. http://bit.ly/hl1riO
  • 11. http://gwtcanvasdemo.appspot.com/
  • 12. SmartGWTmobile specific version http://bit.ly/bzK6xB
  • 13. http://code.google.com/events/io/2010/sessions/gwt-html5.html
  • 14. http://code.google.com/events/io/2010/sessions/gwt-html5.html