Package com.ponysdk.ui.server.basic

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


        return container;
    }

    private PSimplePanel getHeader2Child() {
        header2Child.setWidth("100%");
        header2Child.add(new PCheckBox("checkbox 1"));
        header2Child.add(new PCheckBox("checkbox 2"));
        header2Child.add(new PCheckBox("checkbox 3"));
        final PSimplePanel container = new PSimplePanel();
        container.setWidget(header2Child);
        return container;
    }
View Full Code Here


        panel.add(button);

        final PTextBox masked = new PTextBox();
        final PTextBox maskedTextBox = new PTextBox();
        final PTextBox replacement = new PTextBox();
        final PCheckBox showMask = new PCheckBox("Show mask");
        final PButton applyMaskButton = new PButton("Apply mask");
        applyMaskButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                if (masked.getText().isEmpty()) return;

                String replaceChar = " ";
                if (!replacement.getText().isEmpty()) replaceChar = replacement.getText().substring(0, 1);
                maskedTextBox.applyMask(masked.getText(), showMask.getValue(), replaceChar);
            }
        });
        masked.setPlaceholder("({{000}}) {{000}}.{{0000}}");
        replacement.setWidth("10px");
View Full Code Here

    private int messageIndex = 1;

    public DefaultLoginPageView(final String title) {

        loginButton = new PButton(PString.get("activity.login.signin"));
        rememberMe = new PCheckBox(PString.get("activity.login.rememberme"));

        loginTextBox.setStyleName("pony-LoginPage-LoginTextBox");
        passwordTextBox.setStyleName("pony-LoginPage-PasswordTextBox");
        loginButton.addStyleName("pony-LoginPage-SubmitButton");
        versionInformation.addStyleName("pony-LoginPage-VersionInformation");
View Full Code Here

        FindPonysCommand command = new FindPonysCommand(new Query());
        List<Pony> ponyList = command.execute().getData();

        for (Pony pony : ponyList) {
            flowPanel.add(new PCheckBox(pony.getName()));
        }

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

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

        panel.add(new PLabel("Check all days that you are available:"));

        final PCheckBox monday = new PCheckBox("Monday");
        monday.addValueChangeHandler(this);
        panel.add(monday);

        final PCheckBox tuesday = new PCheckBox("Tuesday");
        tuesday.addValueChangeHandler(this);
        panel.add(tuesday);

        final PCheckBox wednesday = new PCheckBox("Wednesday");
        wednesday.addValueChangeHandler(this);
        panel.add(wednesday);

        final PCheckBox thursday = new PCheckBox("Thursday");
        thursday.addValueChangeHandler(this);
        panel.add(thursday);

        final PCheckBox friday = new PCheckBox("Friday");
        friday.addValueChangeHandler(this);
        panel.add(friday);

        final PCheckBox saturday = new PCheckBox("Saturday");
        saturday.addValueChangeHandler(this);
        saturday.setEnabled(false);
        panel.add(saturday);

        final PCheckBox sunday = new PCheckBox("Sunday");
        sunday.addValueChangeHandler(this);
        sunday.setEnabled(false);
        panel.add(sunday);

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

        examplePanel.setWidget(panel);
    }

    @Override
    public void onValueChange(final PValueChangeEvent<Boolean> event) {
        final PCheckBox checkBox = (PCheckBox) event.getSource();
        PNotificationManager.showTrayNotification(checkBox.getText() + (event.getValue() == true ? " is checked" : " is unchecked"));
    }
View Full Code Here

        this.caption = caption;
    }

    @Override
    public IsPWidget render(final FormField formField) {
        final PCheckBox checkBox = new PCheckBox();
        if (debugID != null) {
            checkBox.ensureDebugId(debugID);
        }
        final FormFieldComponent<PCheckBox> checkBoxField = buildCheckBoxField(checkBox);
        fields.add(checkBoxField);
        return checkBoxField;
    }
View Full Code Here

            public void onContextMenu(final PContextMenuEvent event) {
                PNotificationManager.showHumanizedNotification("Context menu triggered");
            }
        }, PContextMenuEvent.TYPE);

        final PCheckBox checkBox = new PCheckBox();
        checkBox.setHTML("<font color='blue'>Pony-SDK</font>");

        verticalPanel.add(htmlBold);
        verticalPanel.setCellWidth(htmlBold, "400px");
        verticalPanel.setCellHeight(htmlBold, "50px");
View Full Code Here

public class CheckBoxFormField extends FormField<Boolean> {

    private final PCheckBox checkBox;

    public CheckBoxFormField() {
        this(new PCheckBox());
    }
View Full Code Here

public class BooleanCellRenderer<T> extends AbstractCellRenderer<T, Boolean> {

    @Override
    public IsPWidget render0(final int rowCount, final T data, final Boolean value) {
        final PCheckBox checkBox = new PCheckBox();
        checkBox.setValue(value);
        return checkBox;
    }
View Full Code Here

TOP

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

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.