Re: BImage ?

Franck Routier <[email protected]> Mon, 11 Dec 2006 17:39:56 +0100
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1165855193-11279-107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Franck Routier a =E9crit :
> Yes, I noticed this interface, but I have not yet found how it is used=20
> in the code... I am looking at this.

Well, here is what I found :
- BCompoundComponent isimplemented by BTemplate, BList and BTable.
- it is used as a marker interface in two places :

1) TemplateHelper getNode : if a node has a child that is NOT a=20
BCompoundComponent, then it will be added as a BTemplate, to process its=20
directives if any.
So as I understand it, if a directive is embedded in a BList or a=20
BTable, it won't get processed. If it is already a BTemplate, then I=20
think it will be processed anyway.

2) HTMLListRenderer : if the list has BComponent items, they will be=20
added to the view, except if they are BCompoundCompnent items and=20
already are bound to a view... Huhh. I don't really understand this=20
piece of code.


So as I see it, regarding nested components, I think I might have to=20
implement BCompoundComponent, so that BTemplate won't try to process=20
each child as a BTemplate. This would mean nestaed components could not=20
have directives embedded... But it's nott he purpose.

Or am I missing something ?

Franck


------------=_1165855193-11279-107
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit



--

Barracuda mailing list

[email protected]

http://www.objectweb.org/wws/lists/projects/barracuda


------------=_1165855193-11279-107--