Package com.ponysdk.ui.server.basic

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


        errorLabel.addStyleName("error-label");
        container.add(errorLabel);
    }

    protected void buildCaption(final String caption) {
        captionLabel = new PLabel();
        captionLabel.addStyleName("caption");
        captionLabel.setVisible(false);
        setCaption(caption);
        add(captionLabel);
    }
View Full Code Here


        super.onFirstShowPage();

        final PVerticalPanel panel = new PVerticalPanel();
        panel.setSpacing(10);

        panel.add(new PLabel("Push button :"));
        panel.add(buildPushButtonPanel());

        examplePanel.setWidget(panel);
    }
View Full Code Here

        popup = new PPopupPanel();
        popup.addStyleName(PonySDKTheme.HEADER_ACCOUNT_MENU_POPUP);

        final PVerticalPanel panel = new PVerticalPanel();
        final PLabel userName = new PLabel(userLogged.getName());
        userName.addStyleName(PonySDKTheme.HEADER_ACCOUNT_MENU_POPUP_USER_NAME);
        panel.add(userName);

        final PLabel userLogin = new PLabel(userLogged.getLogin());
        userLogin.addStyleName(PonySDKTheme.HEADER_ACCOUNT_MENU_POPUP_USER_LOGIN);
        panel.add(userLogin);

        final PAnchor signOutAnchor = new PAnchor("Sign out");

        panel.add(signOutAnchor);
View Full Code Here

    }

    private PWidget getDatas(final String label, final int rowCount) {
        final PFlowPanel flow = new PFlowPanel();
        for (int i = 0; i < rowCount; i++) {
            flow.add(new PLabel(label + " - line " + i));
        }
        return flow;
    }
View Full Code Here

        removePanel.add(remove);

        final PVerticalPanel panel = new PVerticalPanel();
        panel.setSpacing(10);

        panel.add(new PLabel("Add a cookie:"));
        panel.add(addPanel);
        panel.add(new PLabel("Remove a cookie:"));
        panel.add(removePanel);

        examplePanel.setWidget(panel);
    }
View Full Code Here

            public void onValueChange(final PValueChangeEvent<Date> event) {
                notifyDateChange("datebox", event.getValue());
            }
        });

        panel.add(new PLabel("Permanent DatePicker:"));
        panel.add(datePicker);
        panel.add(new PLabel("DateBox with popup DatePicker:"));
        panel.add(dateBox);

        examplePanel.setWidget(panel);
    }
View Full Code Here

        descriptor.setValueProvider(new IdentityValueProvider<Data>());
        descriptor.setHeaderCellRenderer(new HeaderCellRenderer() {

            @Override
            public IsPWidget render() {
                return new PLabel("The header");
            }
        });
        descriptor.setCellRenderer(new RefreshableCellRenderer<Data, PHTML>() {

            @Override
View Full Code Here

    private void remove(final int index) {
        datagrid.remove(index);
    }

    private void insertColspan(final int row) {
        datagrid.insertRow(row, 0, datagrid.getColumnDescriptors().size() + 1, new PLabel("colspan " + row));
    }
View Full Code Here

        ul.add(li2);
        ul.add(li3);
        ul.add(li4);
        ul.addStyleName("customList");

        verticalPanel.add(new PLabel("Example of the use of PElement to create an unordered list"));
        verticalPanel.add(ul);

        examplePanel.setWidget(verticalPanel);
    }
View Full Code Here

        table.setCellSpacing(0);
        table.setSizeFull();

        for (int r = 0; r < 10; r++) {
            for (int c = 0; c < 10; c++) {
                table.setWidget(r, c, new PLabel(r + "_" + c));
            }
        }

        container.add(table);

        final PLabel test = new PLabel("Test style:");
        test.setStyleProperty("padding-top", "15px");
        container.add(test);

        rowListBox = buildIntListBox();
        cellListBox = buildIntListBox();
        actionListBox = buildActionListBox();
View Full Code Here

TOP

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

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.