Hi All,

Swix is great, we have been adding stuff to it and found it 
gives us flexibility to do (almost) anything :-)

While trying to use a jlist like this:
<list id='foo' ListData="abc:def:geh:zzz" />

with a custom convertor that parses the string into a Vector, it doesn't work.
After looking at the code I suspect the culprit is that JList has two setters:

public void setListData(Object[] listData)
public void setListData(Vector   listData)

Is there any way to use the second setter?

Also we use many swing engines because we have many client objects mapping to
different swixml (xml) UI files. I thought of extending SwingEngine so that
I override the function mapMembers so that I can use it for a custom client.

Essentially it would be cool to say:
 SwingEngine sw = new SwingEngine(); // note: no 'this'
 for(;;){
   ClientObj c = new ClientObj(..);
   sw.getIdMap().clear();
   sw.setClient(c);
   sw.render( file /*for client c*/);  
   /* make sw maps ids to public (and with #144, also private) members of c */
   sw.render( file /*for client c*/);
 }

Does this sound like a bad idea? Am I missing something in my conception of
swix? Or is this possible. I wonder if someone with knowledge of the internals
of swixml could tell me if can be achieved somehow..

Does each new swixml engine take up memory permanently, or is it eventually GC'd
.. ie does anyone else store refs to SwingEngines?

thanks!
 nandan



_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Reply via email to