Examples of RichTextArea


Examples of com.vaadin.ui.RichTextArea

        test(layout, optionGroup);

        final ProgressIndicator pi = new ProgressIndicator();
        test(layout, pi);

        final RichTextArea rta = new RichTextArea();
        test(layout, rta);

        final Select select = new Select("Select " + count++);
        test(layout, select);
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

    @Override
    protected void setup() {
        HorizontalLayout main = new HorizontalLayout();
        getMainWindow().setContent(main);

        RichTextArea first = new RichTextArea();
        RichTextArea second = new RichTextArea();
        RichTextArea third = new RichTextArea();

        first.setWidth("150px");
        first.setHeight("400px");
        second.setSizeFull();
        third.setSizeUndefined();

        VerticalLayout secondLayout = new VerticalLayout();
        secondLayout.setWidth("200px");
        secondLayout.setHeight("200px");
        secondLayout.addComponent(second);
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

            }
        };
        pi.setHeight("0px");
        addComponent(pi);

        rta = new RichTextArea();
        rta.setId("rta");
        rta.setImmediate(true);
        addComponent(rta);
    }
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

        final TextField testField = new TextField("");
        testField.setId("field");
        addComponent(testField);

        final RichTextArea rText = new RichTextArea();
        rText.setWidth("300px");
        rText.setHeight("300px");

        final Window subWindow = new Window("SubWindow");
        subWindow.setWidth("500px");
        subWindow.setHeight("500px");
        subWindow.setModal(true);
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

    public void createNewView() {
        main.removeAllComponents();
        main.addComponent(new Label(
                "RTE uses google richtextArea and their examples toolbar."));

        rte = new RichTextArea();
        rte.addListener(this);

        main.addComponent(rte);

        main.addComponent(new Button("commit content to label below"));
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

        PasswordField pf = new PasswordField();
        pf.setId("textfield" + debugIdCounter++);
        addComponent(pf);

        RichTextArea rta = new RichTextArea();
        rta.setId("textfield" + debugIdCounter++);
        addComponent(rta, 0, 1, 6, 1);

    }
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

    protected void setup(VaadinRequest request) {
        final VerticalLayout layout = new VerticalLayout();
        layout.setSizeFull();
        layout.setHeight("300px");

        RichTextArea richTextArea = new RichTextArea();
        richTextArea.setSizeFull();
        layout.addComponent(richTextArea);

        addComponent(layout);
        addComponent(new Button("Increase height", new Button.ClickListener() {
            @Override
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

        return 8004;
    }

    @Override
    protected void setup() {
        final RichTextArea area = new RichTextArea();

        final Label l = new Label(area.getValue(), ContentMode.PREFORMATTED);
        l.setCaption("Value recieved from RichTextArea:");

        final Button b = new Button("get area value", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                l.setValue(area.getValue());
            }
        });

        addComponent(area);
        addComponent(b);
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

        return RichTextArea.class;
    }

    @Override
    protected void initializeComponents() {
        RichTextArea rta;

        rta = createRichTextArea("TextField 100% wide, 100px high");
        rta.setWidth("100%");
        rta.setHeight("100px");
        addTestComponent(rta);

        rta = createRichTextArea("TextField auto width, auto height");
        addTestComponent(rta);

        rta = createRichTextArea(null, "500px wide, 120px high textfield");
        rta.setWidth("500px");
        rta.setHeight("120px");
        addTestComponent(rta);

    }
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

        addTestComponent(rta);

    }

    private RichTextArea createRichTextArea(String caption, String value) {
        return new RichTextArea(caption, value);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.