Saturday, February 26, 2011

DockLayoutPanel KeyHandler?

I'm trying to migrate my application to GWT 2.1 but I run into problems trying to switch 
from my DockPanel to the DockLayoutPanel.

Before I had this:
RootPanel.get().add(new MainPanel());

public class MainPanel extends Composite implements KeyDownHandler {
public FocusPanel focusPanel = new FocusPanel();
        public static DockPanel dockPanel = new DockPanel();
        dockPanel.add(banner, DockPanel.NORTH);
dockPanel.add(loginPanel, DockPanel.CENTER);

       onKeyDown(KeyDownEvent e) { ... every keyDown in my app gets picked up here }

I have no way to turn this into a working version with the DockLayoutPanel.

Any Thoughts? Could someone please look into this for me?

Kind Regards


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment