xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ley" <...@jibbering.com>
Subject Re: foafnaut in Batik
Date Tue, 28 Jan 2003 22:33:02 GMT
"Thierry Kormann" <tkormann@ilog.fr>
> > http://lxr.mozilla.org/mozilla/source/js/rhino/examples/Foo.java
> >
> > it suggests you get the javascript behaviour for free, if you extend
> > ScriptableObject, see the foo.a in line 64 - that's what I'm attempting
> > do.
> You are right. None of our native objects can be extended with properties
> methods. Though it might be easy to make our DOM extensible, this feature
> forces our DOM implementation to depend on Rhino classes (basically our
> implementation of dom::Node should extend ScriptableObject rather than
> java.lang.Object).

Could you not expose the DOM to Rhino via another class which extends
ScriptableObject, and has your java objects as as default properties?

> I think we have to think more about it and I suggest you add a RFE in
> bugzilla.

Will do.



To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message