Package com.ponysdk.ui.server.basic

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


    private final PLabel captionLabel = new PLabel();

    private final PImage errorImage = new PImage("images/error.png");

    public FormFieldComponent(final W w) {
        mainLayout = new PGrid(2, 1);
        mainLayout.setWidth("100%");
        mainLayout.setCellPadding(0);
        mainLayout.setCellSpacing(0);
        mainLayout.getColumnFormatter().setWidth(0, "100%");
View Full Code Here


    protected void onFirstShowPage() {
        super.onFirstShowPage();

        final PFlowPanel container = new PFlowPanel();

        table = new PGrid(10, 10);
        table.setCellPadding(0);
        table.setCellSpacing(0);
        table.setSizeFull();

        for (int r = 0; r < 10; r++) {
View Full Code Here

        formField.addFormFieldListener(this);
    }

    protected void buildGrid() {
        panel = new PGrid(2, 1);
        panel.addStyleName(PonySDKTheme.COMPLEXLIST_HEADERCELLRENDERER_COMPLEX);
        panel.setWidget(1, 0, formField.asWidget());
    }
View Full Code Here

        // creation
        updateUI(new RequestHandler() {

            @Override
            public void onRequest() {
                final PGrid grid1 = new PGrid(3, 4);
                grid1.ensureDebugId("grid1");
                PRootPanel.get().add(grid1);
                register(grid1);
            }
        });

        final WebElement grid1 = findElementById("grid1");
        final List<WebElement> rows = grid1.findElements(By.tagName("tr"));
        Assert.assertEquals(3, rows.size());
        final List<WebElement> cells = grid1.findElements(By.tagName("td"));
        Assert.assertEquals(12, cells.size());
    }
View Full Code Here

TOP

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

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.