Re: [Xswt-developer] Widget.setData
Brought to you by:
dvorme
|
From: David J. O. <dj...@co...> - 2007-04-19 16:16:37
|
try:=20 <button x:id.foo=3D"bar"/>=20 Regards,=20 Dave Orme=20 ----- Original Message -----=20 From: Millberg Lars <lar...@sa...>=20 To: xsw...@li...=20 Sent: Thursday, April 19, 2007 11:13:12 AM GMT-0800=20 Subject: [Xswt-developer] Widget.setData=20 Hi,=20 I can=E2=80=99t figure out a way to do something like this in XSWT:=20 Button button =3D new Button(parent, SWT.PUSH);=20 Button.setData(=E2=80=9Cfoo=E2=80=9D, =E2=80=9Cbar=E2=80=9D);=20 I got the one-parameter version of setData to work=20 <button x:id=3D "button" text=3D "Hello" >=20 <setData x:class=3D "string" x:p0=3D "foo:bar" />=20 </button>=20 but I would like to be able to use the two-param version of it...=20 Is it possible out-of-the-box, or do I need to hack it myself :-)?=20 Perhaps something like this:=20 <button x:id=3D "button" text=3D "Hello" >=20 <setData x:class1=3D "string" x:p0=3D "foo" x:class2=3D =E2=80=9Dstring=E2= =80=9D 0x:p1=3D =E2=80=9Dbar=E2=80=9D />=20 </button>=20 TIA,=20 Lars=20 |