Re: faster development with xul
Gerald Bauer <[email protected]> Thu, 15 Apr 2004 02:54:50 -0700 (PDT)
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Vladimir,
> I have an idea. Maybe it's not very good, but I
> think it can be
> usefull.
Sounds like a good idea. Denis Cardon has also
looked into how to simplify the setup for forms. See
http://luxor-xul.sourceforge.net/sun/2003/12/rethinking_luxor_xul_calculator_next_generation_case_study_online.html
for more.
> 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;
> }
> }
Vladimir, note that the latest Luxor version, that
is, Beta 9, includes a new DynaForm class so you no
longer have to create a Java class for every form. See
http://cvs.sourceforge.net/viewcvs.py/luxor-xul/luxor/src/luxor/form/DynaForm.java?view=markup
- Gerald
-------------------------------------------------------
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