SWT FormLayout Made Easy Thanks To Compact Syntax In Luxor XUL
Gerald Bauer <[email protected]> Sat, 8 Nov 2003 18:55:00 -0800 (PST)
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm currently finishing up the first version for a
compact syntax in XML to simplify the FormLayout for
the Luxor XUL Standard Widget Toolkit (SWT) Layout
package.
Here's a first snapshot using the button example
from the "Understanding Layouts in SWT" article online
@
http://www.eclipse.org/articles/Understanding%20Layouts/Understanding%20Layouts.htm
<springbox>
<sd left="+5" right="25%">
<button id="b1" label="Button1" />
</sd>
<sd left="prev+5" right="-5">
<button id="b2" label="Button2" />
</sd>
<sd top="b1+5" left="center-30" right="50%+30">
<button id="b3" label="Button3" />
</sd>
<sd top="prev+5" bottom="-5" left="25%">
<button id="b4" label="Button4" />
</sd>
<sd bottom="-5" left="prev+5">
<button id="b5" label="Button5" />
</sd>
</springbox>
Let me know what you think. Any ideas to further
simplify the syntax are welcome.
- Gerald
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/