So why hasn't this kind of Widget made it into the GWT code base?

Greg

On Jan 3, 5:53 pm, "A. Stevko" <andy.ste...@gmail.com> wrote:
> I've used this pattern throughout my code base with no problem.
>
> On Mon, Jan 3, 2011 at 6:57 AM, Greg Dougherty
> <dougherty.greg...@mayo.edu>wrote:
>
>
>
> > I have a couple of places where I want the user to be able to hit
> > enter, and have a button clicked.  So I created the class EnterButton,
> > which has all the default constructors, and the following bit of code:
>
> >        public void onKeyPress (KeyPressEvent event)
> >        {
> >                int     keyCode = event.getNativeEvent ().getKeyCode
> > ();
>
> >                if (keyCode == KeyCodes.KEY_ENTER)
> >                        click ();
> >        }
>
> > Is there a reason why some such class isn't part of GWT already?  Is
> > there something in this code that will turn around and bite me in the
> > tush?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> -- A. Stevko
> ===========
> "If everything seems under control, you're just not going fast enough." M.
> Andretti

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to