Package com.ponysdk.ui.server.basic

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


public class StringCellRenderer<D, V> extends AbstractCellRenderer<D, V> {

    @Override
    public IsPWidget render0(final int rowCount, final D data, final V value) {
        return new PLabel(value.toString());
    }
View Full Code Here


        return topListLayout;
    }

    @Override
    public void addCustomInformation(final String text) {
        bottomListCustomInformationLayout.add(new PLabel(text));
    }
View Full Code Here

    protected String nullDisplay = DASH;

    @Override
    public final IsPWidget render(int row, D data, V value) {
        if (value == null) return new PLabel(nullDisplay);
        return render0(row, data, value);
    }
View Full Code Here

        V value;
        try {
            value = valueProvider.getValue(data);
        } catch (final Exception e) {
            log.error("cannot get value", e);
            return new PLabel("failed");
        }
        return renderer.render(row, data, value);
    }
View Full Code Here

    protected void showSelectAllOption() {
        final PHorizontalPanel panel = new PHorizontalPanel();
        panel.setHorizontalAlignment(PHorizontalAlignment.ALIGN_CENTER);
        panel.setStyleName("pony-ComplexList-OptionSelectionPanel");
        final PLabel label = new PLabel("All " + rowSelectors.size() + " items on this page are selected.");
        final int fullSize = findResult.getFullSize();
        panel.add(label);
        if (fullSize > complexListConfiguration.getPageSize()) {
            final PAnchor anchor = new PAnchor("Select all " + fullSize + " final items in Inbox");
            anchor.addClickHandler(new PClickHandler() {
View Full Code Here

    protected void showClearSelectAllOption() {
        final PHorizontalPanel panel = new PHorizontalPanel();
        panel.setHorizontalAlignment(PHorizontalAlignment.ALIGN_CENTER);
        panel.setStyleName("pony-ComplexList-OptionSelectionPanel");
        final PLabel label = new PLabel("All " + findResult.getFullSize() + " items are selected.");
        final PAnchor anchor = new PAnchor("Clear selection");
        anchor.addClickHandler(new PClickHandler() {

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

        listColumnDescriptor.setSubCellRenderer(new EmptyCellRenderer<D, String>());
        listColumnDescriptor.setHeaderCellRenderer(new HeaderCellRenderer() {

            @Override
            public IsPWidget render() {
                return new PLabel("");
            }

            @Override
            public String getCaption() {
                return "";
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.