15 Apr 2004 09:55
Re: Builders :- CDATA / plain text / escape mechanism ?
On 15 Apr 2004, at 08:52, Paul Hammant wrote:
>> I guess there's no reason why we couldn't extend SwingBuilder (maybe
>> a custom derivation) to add HTML-ish tags.
>>
>> body {
>> p("Mary had a little lamb")
>> }
>>
> That's what I was trying to specifically avoid mandating. I think the
> mixed content stuff would use the the 'p' builder methods though.
>
>> we're not great at mixed content as yet. So we might need to use a
>> magic 'text' method to be able to do mixed content...
>>
>> body {
>> p {
>> text("Mary had a ")
>> b("little")
>> text(" lamb")
>> }
>> }
>>
> Yeesh
There's no reason why you couldn't just use XML/HTML markup for mixed
content
p("Mary had a <b>little</b> lamb")
then you just need a little parser to render this somehow in Swing.
James
-------
http://radio.weblogs.com/0112098/
RSS Feed