Re: BImage ?
Franck Routier <[email protected]> Sat, 09 Dec 2006 08:10:30 +0100
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format...
------------=_1165648231-23762-0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Jacob Kjome a =E9crit :
> Now, as far as actually developing the component, I don't think it's goin=
g to
> happen unless it is contributed. Are you volunteering to do the work?
>=20=20=20
Sure, I am... In fact I already made one, but I still need to test it.=20
In fact it is quite simple. Right now, it only has two parameters, that=20
is 'alt' and 'url'. Both are strings, so I don't try to see if the image=20
file is actually there...
As soon as it is tested, I'll send it to the list.
By the way, I am also back on nestable components... The idea is to take=20
BContainer parent/childs structure into account to render nested=20
components, just like this :
BInput binput =3D new BInput(BInput.TEXT, "inputId", null);
BImage calimage =3D new BImage("calendar", "images/cal.png");
calimage.addChild(new BScript("calscript");
binput.addChild(calimage);
BLabel blabel =3D new BLabel("User label : ",binput.getId);
blabel.addChild(binput);
This is much less flexible and generic than the approach you described,=20
from the designer point of view, but would allow for more complex=20
components (like BCalField component that could embed this kind of=20
logic). In a large app, it could provide more consistency in the UI.
To do this, I think I need a rendering logic that would call=20
createDefaultNode recursivly on every child of the main component. In=20
fact, it is not far from what is done in BList renderer... I will try it=20
further, and will alos probably come back to the list with questions :)
Any comments on that ?
Franck
> Jake
>
> Quoting Franck Routier <[email protected]>:
>
>=20=20=20
>> Hi all,
>>
>> has anyone thought about a BImage component ?
>>
>> Something like new BImage(String altAttribute, String url) + height,
>> width, ...
>>
>> Would it make sense, or is it just one of these 'just do it with
>> dom/BText' things ?
>>
>> Franck
>>
>>
>>=20=20=20=20=20
>
>
>
>
>=20=20=20
> ------------------------------------------------------------------------
>
>
>
> --
>
> Barracuda mailing list
>
> [email protected]
>
> http://www.objectweb.org/wws/lists/projects/barracuda
>
>=20=20=20
------------=_1165648231-23762-0
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
------------=_1165648231-23762-0--