Wrapper templates

Charles Goodwin <[email protected]> Fri, 4 Apr 2003 13:39:28 +0100
Newsgroups gmane.comp.java.xwt.general
Message-ID <308906BE5D07D5119285009027D61C5722F6BA@NTFPS1>
The concept of wrapper templates has been discussed on the list before...
it's getting to a point where they'd be damn useful, right now.

This is little psuedo gives the kind of idea I'd expect from it:

cell.xwt:

<xwt>
<redirect target="inner" wrapper="true" listen="halign,valign" />

<template>
...
   <box id="inner" />
</template>
</xwt>

Basically, cell would listen for halign and valign read/writes and ignore
everything else.

And if it's a wrapper, it would only be able to have one child.

Or were you thinking more:

<xwt>
<wrapper name="xwt.lib.cell" />

<template>
...
</template>
</xwt>

The issue with this would be adding wrappers at run time.

I dunno, this kinda 'design' stuff isn't my forte.  I just want it to be
talked about again and wanted to get across my expectations of a potential
implementation. :)
_______________________________________________
http://lists.xwt.org/listinfo/dev