Package com.ponysdk.ui.server.basic

Examples of com.ponysdk.ui.server.basic.PFocusPanel


                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);
View Full Code Here

TOP

Related Classes of com.ponysdk.ui.server.basic.PFocusPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.