[xwt-users] Liking changes with Nitrogen

Charles Goodwin <[email protected]> Fri, 26 Sep 2003 12:56:33 +0100
Newsgroups gmane.comp.java.xwt.users
Organization XWT Foundation
Message-ID <[email protected]>
I must say I'm really beginning to enjoy using Nitrogen.

Some of the changes feel much better in use than I expected them too.

For instance, I winced at having to use xmlns name spaces, but in 
practise it's proving much more logical and tidier:

Example with xwt.widget.check:-

Before:

<xwt>
     xwt.widget.check
         Commonly known as a 'checkbox'

     <import name="xwt.theme" />
     <preapply name="clickable" />
     <preapply name="focusable" />
     <preapply name="redirectable" />
     <preapply name="check" />
</xwt>

After:

<xwt xmlns="xwt.theme">

     Check:
         Commonly known as a 'checkbox'

     <template preapply="clickable focusable redirectable check" />

</xwt>

And that's a more basic example.  When you're importing from multiple 
directories, it becomes even nicer still:

<xwt xmlns:ns1="path" xmlns:ns2="path2">
     <template ns1:preapply="t1 t2" ns2:preapply="t3 t4" />
</xwt>

This is one of many nice new features of Nitrogen that I'll be sure to 
mention on this list. :)

- Charlie