Using xwt.clone to theme
Charles Goodwin <[email protected]> Tue, 27 Jan 2004 03:25:20 +0000
| Newsgroups | gmane.comp.java.xwt.widgets |
|---|---|
| Organization | XWT Foundation |
| Message-ID | <[email protected]> |
>From my understanding of the reference: http://www.xwt.org/reference.html#cloning To theme from path.to.theme to xwt.theme: .xwt.theme = xwt.clone(.path.to.theme); This is how it's supposed to work afaik, because 'c = xwt.clone(o)' produces a separate reference to the same object. Operations on 'c' are equivalent to operations on 'o'. This includes looking up resources. Am I close? I might suggest that xwt.clone is a misnomer because it does not clone the object but the reference to the object. But that'll just get me into trouble so I'll just leave it as a footnote! ;) -- - Charlie The future of the net - www.xwt.org Charles Goodwin <[email protected]> Member of the XWT Foundation