Package com.ponysdk.ui.server.basic

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


    public DefaultHeaderView(final String title) {
        setSizeFull();

        gridLayout.addStyleName(PonySDKTheme.HEADER);

        final PLabel logo = new PLabel(title);
        logo.addStyleName(PonySDKTheme.HEADER_LOGO);

        gridLayout.add(logo);
        gridLayout.setCellHorizontalAlignment(logo, PHorizontalAlignment.ALIGN_LEFT);
        gridLayout.setCellVerticalAlignment(logo, PVerticalAlignment.ALIGN_MIDDLE);
View Full Code Here


        panel.addStyleName(PonySDKTheme.COMPLEXLIST_HEADERCELLRENDERER_COMPLEX);
        panel.setWidget(1, 0, formField.asWidget());
    }

    protected void buildCaption(final String s) {
        caption = new PLabel(s);
        caption.addStyleName(PonySDKTheme.COMPLEXLIST_HEADERCELLRENDERER_COMPLEX_SORTABLE);
        caption.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
View Full Code Here

public class StringHeaderCellRenderer implements HeaderCellRenderer {

    private final PLabel caption;

    public StringHeaderCellRenderer(final String caption) {
        this.caption = new PLabel(caption);
    }
View Full Code Here

    public ComplexHeaderCellRenderer(final String caption, final FormField formField, final String pojoPropertyKey, final boolean enableComparatorType) {

        this.caption = caption;
        this.container = new PFlexTable();
        this.formField = formField;
        this.header = new PLabel(caption);
        this.sortableHeader = new SortableHeader(header, pojoPropertyKey);

        container.setSizeFull();
        container.setCellPadding(0);
        container.setCellSpacing(0);
View Full Code Here

    }

    private void refreshLabels() {
        labelPanel.clear();
        labelPanel.setWidth("100%");
        labelPanel.setWidget(0, 0, new PLabel("Index"));
        labelPanel.setWidget(0, 1, new PLabel("Header"));
        labelPanel.setWidget(0, 2, new PLabel("Visible"));
        labelPanel.getRowFormatter().addStyleName(0, "pony-ComplexList-ColumnHeader");
        int i = 1;
        int nextViewableIndex = 1;
        for (final SelectableLabel label : labels) {
            // add index if and only if label is viewable
            if (label.viewable) {
                labelPanel.setWidget(i, 0, new PLabel(nextViewableIndex + ""));
                nextViewableIndex++;
            }

            final PHorizontalPanel panel = new PHorizontalPanel();
            panel.setSizeFull();
View Full Code Here

    public StringHeaderCellRenderer(final String caption) {
        this(caption, null);
    }

    public StringHeaderCellRenderer(final String caption, final String pojoPropertyKey) {
        this.caption = new PLabel(caption);
        this.pojoPropertyKey = pojoPropertyKey;
    }
View Full Code Here

        this.from = from;
        this.to = to;

        popupContent = new PVerticalPanel();
        popupContent.add(new PLabel("from"));
        popupContent.add(from.render().asWidget());
        popupContent.add(new PLabel("to"));
        popupContent.add(to.render().asWidget());
        final PKeyUpFilterHandler handler = new PKeyUpFilterHandler(PKeyCodes.ENTER) {

            @Override
            public void onKeyUp(final PKeyUpEvent keyUpEvent) {
View Full Code Here

    private static final String EMPTY_VALUE = "";

    @Override
    public IsPWidget render(int row, D data, V value) {
        return new PLabel(EMPTY_VALUE);
    }
View Full Code Here

        this.dateFormat = new SimpleDateFormat(format);
    }

    @Override
    public IsPWidget render0(final int rowCount, final T data, final Date value) {
        return new PLabel(dateFormat.format(value));
    }
View Full Code Here

public class ObjectCellRenderer<T> extends AbstractCellRenderer<T, Object> {

    @Override
    public IsPWidget render0(final int rowCount, final T data, final Object value) {
        return new PLabel(String.valueOf(value));
    }
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.