Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Link widget and several links
Link widget and several links [message #451683] Sat, 05 March 2005 05:33 Go to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
In Link widget I can create several <a> tags, but when I click on
them, I can not know in SelectionListener, which of them was selected. I
see that widgets sets 'text' field in Event, but later this text is not
used.

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Re: Link widget and several links [message #451705 is a reply to message #451683] Sun, 06 March 2005 14:41 Go to previous messageGo to next message
Ivan Markov is currently offline Ivan MarkovFriend
Messages: 61
Registered: July 2009
Member
> I see that widgets sets 'text' field in Event, but later this text is not
> used.

Not sure what you mean..
This is certainly not used by SWT itself, it is a means for the SWT user to
differentiate between several <a/> links using the Event.text field.
It is supposed to hold the "href" of the selected link.
Probably your problem is what happens when several links contain the same
href text?

-Ivan
Re: Link widget and several links [message #451782 is a reply to message #451705] Wed, 09 March 2005 07:55 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Ivan Markov:
>>I see that widgets sets 'text' field in Event, but later this text is not
>>used.
>
>
> Not sure what you mean..
> This is certainly not used by SWT itself, it is a means for the SWT user to
> differentiate between several <a/> links using the Event.text field.
> It is supposed to hold the "href" of the selected link.
> Probably your problem is what happens when several links contain the same
> href text?
Oops, sorry, now I understand that I should just use untyped
SWT.Selection.
Thanks!

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Previous Topic:Why SWT widget can not be implemented?
Next Topic:javadoc for swt? is there any and where?
Goto Forum:
  


Current Time: Thu Apr 25 20:20:14 GMT 2024

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

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

Back to the top