Re: problem with borders in swixML
List for Users of Carlsbad Cubes' Technologies and Products <[email protected]> Wed, 19 Oct 2005 22:26:46 -0700
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
--===============1163970063== Content-Type: multipart/alternative; boundary=Apple-Mail-1--992532286 --Apple-Mail-1--992532286 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Why don't you write and register your own border converter. After you have it working, submitted it back to the swixml project. Thanks Wolf On Oct 19, 2005, at 9:08 AM, List for Users of Carlsbad Cubes' Technologies and Products wrote: > I have encountered a problem using borders in swixML. > > I want to use a compound border like this: > > <code snippet> > <panel id="somePanel" > border="CompoundBorder(TitledBorder(someTitle), > EmptyBorder(x,x,x,x) )" > layout="aLayout" ....> > > ....... > > </panel> > > The problem is that the BorderConverter class can > convert only one border argument, so > > CompoundBorder( Border a, Border b) is not supported. > > The BorderConverter code can be fixed to handle this, > but is there another solution to the problem with > compound borders? (for example, extending the > CompoundBorder class and passing this extended class > as the argument for the border attribute? I tried this > but > obviously the attribute was not identified and ignored > > by the parser.) > > Thanks in advance, > > Emil > > > > __________________________________ > Yahoo! Music Unlimited > Access over 1 million songs. Try it free. > http://music.yahoo.com/unlimited/ > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > -- Wolf Paulus 707.202.3937 [email protected] C a r l s b a d C u b e s Dedicated to Excellence CONFIDENTIALITY NOTICE: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. --Apple-Mail-1--992532286 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 <HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; = -khtml-line-break: after-white-space; ">Why don't you write and register = your own border converter.<DIV>After you have it working, submitted it = back to the swixml project.</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>Thanks</DIV><DIV>=A0 = Wolf</DIV><DIV><BR class=3D"khtml-block-placeholder"><DIV><DIV><DIV>On = Oct 19, 2005, at 9:08 AM, List for Users of Carlsbad Cubes' Technologies = and Products wrote:</DIV><BR = class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">I have encountered a problem using borders in = swixML.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">I want to use a compound border like this:</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><code = snippet></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; "><panel id=3D"somePanel"<SPAN = class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN = class=3D"Apple-converted-space">=A0=A0 =A0 =A0 = </SPAN>border=3D"CompoundBorder(TitledBorder(someTitle),</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; "><SPAN class=3D"Apple-converted-space">=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 </SPAN>EmptyBorder(x,x,x,x) = )"</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: = 0px; margin-left: 0px; "><SPAN class=3D"Apple-converted-space">=A0=A0 =A0 = =A0 </SPAN>layout=3D"aLayout" ....></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">.......</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; "></panel><SPAN = class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The problem = is that the BorderConverter class can</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">convert = only one border argument, so<SPAN = class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">CompoundBorder( Border a, Border b) is not supported.</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The = BorderConverter code can be fixed to handle this,</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">but is there another solution to the problem = with</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">compound borders? (for example, = extending the</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">CompoundBorder class and passing = this extended class</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">as the argument for the = border attribute? I tried this</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">but</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">obviously the attribute was not identified and = ignored</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">by the parser.)</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: = 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">Thanks in advance,</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">Emil</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><P style=3D"margin: = 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><SPAN = class=3D"Apple-converted-space"><SPAN class=3D"Apple-converted-tab">=A0=A0= =A0 =A0 =A0</SPAN></SPAN><BR class=3D"khtml-block-placeholder"></P><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">__________________________________<SPAN = class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Yahoo! = Music Unlimited<SPAN class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">Access over 1 million songs. Try it free.</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; "><A = href=3D"http://music.yahoo.com/unlimited/">http://music.yahoo.com/unlimite= d/</A></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; = ">_______________________________________________</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">Forum mailing list</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A = href=3D"mailto:[email protected]">[email protected]</A></DIV><= DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; "><A = href=3D"http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com"= >http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com</A></DI= V> <BR class=3D"Apple-interchange-newline"></BLOCKQUOTE></DIV><BR><DIV> = <P style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><FONT class=3D"Apple-style-span" color=3D"#808080">--</FONT></P><P = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><B>Wolf Paulus</B></P><P style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 10px/normal Helvetica; "><FONT class=3D"Apple-style-span" = color=3D"#808080">707.202.3937</FONT></P><P style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 10px/normal Helvetica; "><A = href=3D"mailto:[email protected]">[email protected]</A></P><P = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = min-height: 12px; "><BR style=3D""></P><P style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 12px/normal Arial; "><FONT class=3D"Apple-style-span" = color=3D"#666699"><B>C a r l s b a d=A0 C u b e s</B></FONT></P><P = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><B>Dedicated to Excellence</B><SPAN style=3D"font: 12.0px = Helvetica">=A0</SPAN></P><P style=3D"margin: 0.0px 0.0px 0.0px 0.0px; = font: 12.0px Helvetica; min-height: 14.0px"><BR></P><P = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><FONT class=3D"Apple-style-span" color=3D"#808080">CONFIDENTIALITY = NOTICE:</FONT></P><P style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 10px/normal Helvetica; "><FONT class=3D"Apple-style-span" = color=3D"#808080">This message is intended only for the use of the = individual or entity to which it is addressed, and may contain = information that is privileged, confidential and exempt from disclosure = under applicable law. If you are not the intended recipient, please = contact the sender by reply email and destroy all copies of the original = message.</FONT></P> </DIV><BR></DIV></DIV></BODY></HTML>= --Apple-Mail-1--992532286-- --===============1163970063== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Forum mailing list [email protected] http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com --===============1163970063==--