Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Combo processing
Combo processing [message #448452] Mon, 10 January 2005 14:51 Go to next message
Nathaniel Mills is currently offline Nathaniel MillsFriend
Messages: 22
Registered: July 2009
Junior Member
I'm hoping for a consistent manner in which to process a Combo widget's info
without processing it too often. Initially I'd had only a selection
listener but this wouldn't get triggered if the person simply tabbed through
the control. So, I added a focus listener triggering on focusLost but I
think this will be triggered any time the dialog box loses focus (e.g., not
just the Combo field) by another application becoming active. Is there a
trick like toggling a boolean with focusGained/Lost that can be checked so
if focusLost is called multiple times in succession I wouldn't process the
listener code?

Best Regards, Nat
Re: Combo processing [message #448466 is a reply to message #448452] Mon, 10 January 2005 18:09 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
The normal thing that people do is do processing on SWT.Selection for
SWT.READ_ONLY combo boxes and SWT.DefaultSelection otherwise. This means
that when a combo box is editable, you need to press return in order to run
an action.

"W. Nathaniel Mills, III" <nat@classobjects.com> wrote in message
news:cru4q4$qgv$1@www.eclipse.org...
> I'm hoping for a consistent manner in which to process a Combo widget's
info
> without processing it too often. Initially I'd had only a selection
> listener but this wouldn't get triggered if the person simply tabbed
through
> the control. So, I added a focus listener triggering on focusLost but I
> think this will be triggered any time the dialog box loses focus (e.g.,
not
> just the Combo field) by another application becoming active. Is there a
> trick like toggling a boolean with focusGained/Lost that can be checked so
> if focusLost is called multiple times in succession I wouldn't process the
> listener code?
>
> Best Regards, Nat
>
>
Previous Topic:control vs. listener event processing order
Next Topic:Re: Where to put a Swing-specific jar to be accessible by a running plugin using SWT_SWING component
Goto Forum:
  


Current Time: Sun Oct 25 02:01:30 GMT 2020

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

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

Back to the top