final PLabel focusTest = new PLabel("Focus top label");
focusTest.ensureDebugId("focusTopLabel");
final PLabel focusTest2 = new PLabel("Focus bottom label");
focusTest2.ensureDebugId("focusBottomLabel");
final PFocusPanel focusPanel1 = new PFocusPanel();
focusPanel1.setHeight("30px");
focusPanel1.setWidth("300px");
focusPanel1.setStyleProperty("border", "1px solid blue");
focusPanel1.ensureDebugId("focusPanel1");
focusPanel1.setWidget(new PLabel("A focusable widget"));
focusPanel1.addMouseOverHandler(eventsListener);
focusPanel1.addFocusHandler(eventsListener);
focusPanel1.addKeyPressHandler(eventsListener);
focusPanel1.addKeyUpHandler(eventsListener);
focusPanel1.addBlurHandler(eventsListener);
PRootPanel.get().add(focusTest);
PRootPanel.get().add(focusPanel1);
PRootPanel.get().add(focusTest2);
register(focusPanel1);