Activity Not Available

Project Summary

  Analyzed over 1 year ago based on code collected over 1 year ago.

NEWSFLASH! This project has been made completely obsolete by GWT 1.5, which includes new DOM implementation classes. Please use GWT 1.5 from now on. Great minds think alike!!

The purpose of this project is to create a GWT module that allows GWT applications to manipulate the browser's document object model (DOM) using the Java DOM API's defined by the World Wide Web Consortium. The module is implemented by simply "wrapping" the underlying browser DOM implementation and consists mostly of JSNI methods that delegate to the equivalent properties and methods of the "wrapped" DOM object.

The result is an expansion in support for the types of documents GWT supports (basically any XML document type, including SVG) at the cost of a contraction in portability across browsers (because only browsers supporting a particular document type will work, and all of the quirks in the browser's DOM implementation are directly inherited by the module).

Therefore this module will be most useful in cases where GWT's output is targeting non-HTML documents rendered in specific browsers, e.g., SVG documents within Firefox.

The initial goal is basic event and SVG support. Eventually, more of the org.w3c.dom Java package hierarchy can be filled in.

Here's an example of an SVG document animated via GWT and this library (requires SVG capable browser such as Firefox 1.5+). The Java source code for this demo (which gets compiled into Javascript via GWT) is here. Note the use of the standard org.w3c.dom Java classes.

Note: at this time, the GWT bootstrap code does not support non-HTML documents. Patches to add this support are included until if/when they are accepted into GWT itself (see this thread).

References:

http://www.w3.org/TR/DOM-Level-2-Core/ http://www.w3.org/TR/DOM-Level-2-Events http://www.w3.org/TR/SVG/svgdom.html http://www.w3.org/TR/DOM-Level-2-HTML http://www.w3.org/TR/DOM-Level-2-Style/stylesheets

Share

In a Nutshell, gwt-dom...

Languages

Java
95%
2 Other
5%
 
 

Lines of Code

 

Activity

30 Day Summary Dec 9 2011 — Jan 8 2012

12 Month Summary not available

Community

Ratings

Be the first to rate this project
 
Click to add your rating
 
Review this Project!
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.