Package com.ponysdk.ui.server.basic

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


            public void onClick(final PClickEvent clickEvent) {
                addCustomTabContent(tabPanel);
            }
        });

        final PTextBox indexTextBox = new PTextBox();
        final PButton selectButton = new PButton("Select Tab");
        selectButton.setStyleProperty("margin", "10px");
        selectButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent clickEvent) {
                final String text = indexTextBox.getText();
                tabPanel.selectTab(Integer.valueOf(text));
            }
        });

        final PHorizontalPanel horizontalPanel = new PHorizontalPanel();
View Full Code Here


        richTextArea.setWidth("100%");
    }

    private PWidget buildCustomToolbar(final PRichTextArea richTextArea) {

        final PTextBox color = new PTextBox();
        color.setPlaceholder("Color");
        final PButton update = new PButton("Set back color");
        update.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                final String c = color.getValue();
                richTextArea.getFormatter().setBackColor(c);
            }
        });

        final PFlowPanel toolbar = new PFlowPanel();
View Full Code Here

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

        final PTextBox name = new PTextBox();
        name.setPlaceholder("Cookie name");
        final PTextBox value = new PTextBox();
        name.setPlaceholder("Cookie value");
        final PButton add = new PButton("Add");
        add.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                UIContext.get().getCookies().setCookie(name.getValue(), value.getValue());
            }
        });

        final PTextBox name2 = new PTextBox();
        name2.setPlaceholder("Cookie name");
        final PButton remove = new PButton("Remove");
        remove.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                UIContext.get().getCookies().removeCookie(name2.getValue());
            }
        });

        final PHorizontalPanel addPanel = new PHorizontalPanel();
        addPanel.add(name);
View Full Code Here

import com.ponysdk.ui.server.form2.dataconverter.FloatConverter;

public class FloatTextBoxFormField extends TextBoxFormField<Float> {

    public FloatTextBoxFormField() {
        this(new PTextBox());
    }
View Full Code Here

import com.ponysdk.ui.server.form2.dataconverter.IntegerConverter;

public class IntegerTextBoxFormField extends TextBoxFormField<Integer> {

    public IntegerTextBoxFormField() {
        this(new PTextBox());
    }
View Full Code Here

import com.ponysdk.ui.server.form2.dataconverter.IdentityConverter;

public class StringTextBoxFormField extends TextBoxFormField<String> {

    public StringTextBoxFormField() {
        this(new PTextBox());
    }
View Full Code Here

import com.ponysdk.ui.server.form2.dataconverter.DoubleConverter;

public class DoubleTextBoxFormField extends TextBoxFormField<Double> {

    public DoubleTextBoxFormField() {
        this(new PTextBox());
    }
View Full Code Here

public class TextBoxFormField<T> extends FormField<T> {

    protected final PTextBox textBox;

    public TextBoxFormField(final DataConverter<String, T> dataProvider) {
        this(new PTextBox(), dataProvider);
    }
View Full Code Here

import com.ponysdk.ui.server.form2.dataconverter.LongConverter;

public class LongTextBoxFormField extends TextBoxFormField<Long> {

    public LongTextBoxFormField() {
        this(new PTextBox());
    }
View Full Code Here

TOP

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

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.