DukeScript is a new way of writing JavaScript applications that lets you take advantage of a powerful binding model to connect to Java code running in a local JVM.
4. Chuck
Norris
can instantiate abstract
classes
can run Java on iPad and
Android without
Jailbreak!
uses generics since Java 1.0
overrides final methods
Chuck Norris on the set of "The Delta Force" (1986), Copyright Yoni S.Hamenahem
25. Task 1
Create your own application in Java that renders through HTML.!
Write your own model and display and animate it.
mvn archetype:generate
-DarchetypeGroupId=org.apidesign.html
-DarchetypeArtifactId=knockout4j-archetype
-DarchetypeVersion=0.7.5
26. Task 2
Create your own application using the Canvas API
mvn archetype:generate
-DarchetypeGroupId=org.apidesign.canvas
-DarchetypeArtifactId=canvas-archetype
-DarchetypeVersion=0.5.2
27. Task 3
Use JSON/REST to communicate with a server
API Doc:
http://bits.netbeans.org/html4j/0.7.5/net/java/html/json/OnReceive.html
Demo:
http://dew.apidesign.org/dew/#7138581
See also:
http://bits.netbeans.org/html4j/0.7.5/net/java/html/json/doc-files/websockets.html