Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Pocket PC List Selection Event
Pocket PC List Selection Event [message #444639] Mon, 18 October 2004 15:24 Go to next message
Scott Pelton is currently offline Scott PeltonFriend
Messages: 81
Registered: July 2009
Member
I have a List widget that allows multi-select. I want to listen to each
SelectionEvent and do a validation. I am not clear as to which field in
the SelectionEvent tells me which "item" in my list was just selected. (in
other words, how do I know which selectable "item" in my List widget
caused this SelectionEvent?)

From the api docs it seems to say the "item" field (which is a Widget) of
the SelectionEvent is the selected "item". But this does not make sense
since all "items" in the List are java.lang.String.

I must be mising something simple?
Re: Pocket PC List Selection Event [message #445090 is a reply to message #444639] Mon, 25 October 2004 19:20 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
See List.getFocusIndex().

"Scott Pelton" <scottp@worldpac.com> wrote in message
news:cl0n7g$km6$1@eclipse.org...
> I have a List widget that allows multi-select. I want to listen to each
> SelectionEvent and do a validation. I am not clear as to which field in
> the SelectionEvent tells me which "item" in my list was just selected. (in
> other words, how do I know which selectable "item" in my List widget
> caused this SelectionEvent?)
>
> From the api docs it seems to say the "item" field (which is a Widget) of
> the SelectionEvent is the selected "item". But this does not make sense
> since all "items" in the List are java.lang.String.
>
> I must be mising something simple?
>
Previous Topic:[TextLayout] Icons within text
Next Topic:catch mouse exit popupmenu event!
Goto Forum:
  


Current Time: Wed Apr 24 14:42:00 GMT 2024

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

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

Back to the top