Package com.ponysdk.ui.server.basic

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


        }, PKeyUpEvent.TYPE);
    }

    public void addFormField(final FormField formField) {
        formFields.add(formField);
        final IsPWidget renderer = formField.render();
        formView.addFormField(renderer);
        widgetByFormField.put(formField, renderer);
    }
View Full Code Here


    public void setData(final int row, final D data) {
        int col = 0;

        for (final DataGridColumnDescriptor<D, ?> field : columnDescriptors) {
            final IsPWidget renderCell = field.renderCell(row, data);
            view.addWidget(renderCell, col++, row + 1, 1);
        }
        view.addWidget(new PSimplePanel(), col, row + 1, 1);
        view.addRowStyle(row + 1, PonySDKTheme.SIMPLELIST_ROW);
    }
View Full Code Here

        this.permission = permission;
    }

    @Override
    protected IsPWidget buildView() {
        final IsPWidget widget = pageView.asWidget();
        onFirstShowPage();
        return widget;
    }
View Full Code Here

        listView.addCellStyle(0, colCount + 1, PonySDKTheme.FILL_COLUMN);

        int rowIndex = 1;
        if (data != null) {
            for (final T t : data) {
                final IsPWidget renderCell = customDescriptor.renderCell(rowIndex, t);
                listView.addWidget(renderCell, colCount, rowIndex);
                listView.removeCellStyle(rowIndex, colCount - 1, PonySDKTheme.FILL_COLUMN);
                listView.addCellStyle(rowIndex, colCount, PonySDKTheme.FILL_COLUMN);
                rowIndex++;
            }
View Full Code Here

        int col = 0;

        // listView.insertRow(rowCount);
        for (final ListColumnDescriptor<T, ?> field : listFields) {
            if (!field.isViewable()) continue;
            final IsPWidget renderCell = field.renderCell(row, data);

            if (debugID != null) {
                String headerCaption;
                if (field.getHeaderCellRenderer().getCaption() != null) {
                    headerCaption = field.getHeaderCellRenderer().getCaption();
                } else {
                    headerCaption = String.valueOf(col);
                }
                renderCell.asWidget().ensureDebugId(debugID + "[" + row + "][" + headerCaption + "]");
            }
            listView.addWidget(renderCell, col++, row);
        }
        listView.addWidget(new PSimplePanel(), col, row);
        listView.addRowStyle(row, PonySDKTheme.SIMPLELIST_ROW);
View Full Code Here

        for (final T t : data) {
            int col = 0;
            // listView.insertRow(rowCount);
            for (final ListColumnDescriptor<T, ?> field : listFields) {
                if (!field.isViewable()) continue;
                final IsPWidget renderCell = field.renderCell(rowIndex, t);

                if (debugID != null) {
                    String headerCaption;
                    if (field.getHeaderCellRenderer().getCaption() != null) {
                        headerCaption = field.getHeaderCellRenderer().getCaption();
                    } else {
                        headerCaption = String.valueOf(col);
                    }
                    renderCell.asWidget().ensureDebugId(debugID + "[" + rowIndex + "][" + headerCaption + "]");
                }
                listView.addWidget(renderCell, col++, rowIndex);
            }
            listView.addWidget(new PSimplePanel(), col, rowIndex);
            listView.addRowStyle(rowIndex, PonySDKTheme.SIMPLELIST_ROW);
View Full Code Here

TOP

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

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.