Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is there a setName method for labels ?
Is there a setName method for labels ? [message #446861] Fri, 03 December 2004 16:46 Go to next message
Arnaud is currently offline ArnaudFriend
Messages: 60
Registered: July 2009
Member
Hi !

I need to specify the name for labels created from XML files. To be
simple, say it's a kind of GUI builder that saves current project as XML
files : when I reconstruct the frames, I need to give all the
objects/controls a name to allow users editing their properties in a
PropertySheet.

So I wondered if there was a method like the JLabel.setName() one, in
SWT (for labels, texts, buttons and so on) ? I looked for something like
that, but didn't see anything.

TIA

--
Arnaud
Re: Is there a setName method for labels ? [message #446862 is a reply to message #446861] Fri, 03 December 2004 17:00 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 12
Registered: July 2009
Junior Member
You could perhaps use setData(name) and getData(name) if you only have one
value to associate with the label.
.... or setData("NAME", name) and getData("NAME").?


"Arnaud" <no@mail.please> wrote in message
news:coq59h$s22$1@www.eclipse.org...
> Hi !
>
> I need to specify the name for labels created from XML files. To be
> simple, say it's a kind of GUI builder that saves current project as XML
> files : when I reconstruct the frames, I need to give all the
> objects/controls a name to allow users editing their properties in a
> PropertySheet.
>
> So I wondered if there was a method like the JLabel.setName() one, in
> SWT (for labels, texts, buttons and so on) ? I looked for something like
> that, but didn't see anything.
>
> TIA
>
> --
> Arnaud
Re: Is there a setName method for labels ? [message #446876 is a reply to message #446862] Sat, 04 December 2004 07:50 Go to previous message
Arnaud is currently offline ArnaudFriend
Messages: 60
Registered: July 2009
Member
Thanks, that looks exactly what I need.

--
Arnaud
Previous Topic:Is this the right place for ? about problems using java IDE?
Next Topic:create a jdk profile
Goto Forum:
  


Current Time: Tue Apr 23 10:36:10 GMT 2024

Powered by FUDForum. Page generated in 0.03410 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top