faster development with xul
Vladimir Kvassov <[email protected]> Thu, 15 Apr 2004 13:41:22 +0400
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hi to ALL
I have an idea. Maybe it's not very good, but I think it can be
usefull.
I have a lot of complains from our developers, that development with
xul is quite complicated and takes too much time. You need to do at
least three steps even for simple dialog:
1. create XUL form in separate file
2. make sure it will be loaded with xul-loader
3. write some java class
So, I offering to allow using "dynamic xul's", then everything will be
in one place. For example:
class MyXulForm extends DynamicXulForm {
public MyXulForm {
super();
}
//this method can be implemented in different ways
// - return custom (dynamic) xul form
// - return xul form loaded in standard way, by ID
protected Xul getXulFormDefinition() {
Xul xul = "
<vbox>
<hbox>
<label value="Select country "/>
<spacer flex="1"/>
<checkwidget id="currentCountry"/>
</hbox>
</vbox>
"
}
Map getInitFields() {
Map map = new HashMap();
map.put(new Country());
return map;
}
}
--
Best regards,
Vladimir mailto:[email protected]
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click