Package com.ponysdk.ui.server.basic

Examples of com.ponysdk.ui.server.basic.PLabel.ensureDebugId()


    }

    @Override
    public void addMessage(final String message) {
        final PLabel messageLabel = new PLabel(message);
        messageLabel.ensureDebugId("login_page_message_" + messageIndex);
        messageIndex++;
        messagePanel.add(messageLabel);
    }

    @Override
View Full Code Here


        updateUI(new RequestHandler() {

            @Override
            public void onRequest() {
                final PLabel label1 = new PLabel("Date test");
                label1.ensureDebugId("label1");
                PRootPanel.get().add(label1);
                register(label1);

                final PDateBox dateBox1 = new PDateBox(new SimpleDateFormat(datePattern));
                dateBox1.ensureDebugId("dateBox1");
View Full Code Here

            @Override
            public void onRequest() {
                final PDisclosurePanel disclosurePanel1 = get("disclosurePanel1");
                final PLabel label = new PLabel("Text");
                label.ensureDebugId("label1");
                disclosurePanel1.setContent(label);
                disclosurePanel1.addOpenHandler(eventsListener);
                disclosurePanel1.addCloseHandler(eventsListener);
                register(disclosurePanel1);
            }
View Full Code Here

            @Override
            public void onRequest() {
                final PFlexTable flexTable1 = new PFlexTable();
                flexTable1.ensureDebugId("flexTable1");
                final PLabel cell11 = new PLabel("Cell_1_1");
                cell11.ensureDebugId("cell11");
                flexTable1.setWidget(0, 0, new PLabel("Cell_0_0"));
                flexTable1.setWidget(0, 1, new PLabel("Cell_0_1"));
                flexTable1.setWidget(1, 0, new PLabel("Cell_1_0"));
                flexTable1.setWidget(1, 1, cell11);
                flexTable1.setBorderWidth(1);
View Full Code Here

            @Override
            public void onRequest() {

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

            public void onRequest() {

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

        updateUI(new RequestHandler() {

            @Override
            public void onRequest() {
                final PLabel label2 = new PLabel();
                label2.ensureDebugId("label2");
                label2.setText("A label");
                PRootPanel.get().add(label2);
                register(label2);
            }
        });
View Full Code Here

            @SuppressWarnings("unchecked")
            @Override
            public void onRequest() {
                final PLabel tab2Label = new PLabel("tab 2");
                tab2Label.ensureDebugId("tab2Label");
                final PHTML tab3Label = new PHTML("tab <font color='red'>3</font>");

                final PTabPanel tabPanel1 = new PTabPanel();
                tabPanel1.add(new PLabel("content 1"), "tab 1");
                tabPanel1.add(new PLabel("content 2"), tab2Label);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.