Package com.vaadin.ui

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


        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

        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

        addTestComponent(rta);

    }

    private RichTextArea createRichTextArea(String caption, String value) {
        return new RichTextArea(caption, value);
    }
View Full Code Here

    private RichTextArea createRichTextArea(String caption, String value) {
        return new RichTextArea(caption, value);
    }

    private RichTextArea createRichTextArea(String caption) {
        return new RichTextArea(caption);
    }
View Full Code Here

        getLayout().getUI().addWindow(w);

    }

    private RichTextArea createRichTextArea(String caption) {
        RichTextArea rta = new RichTextArea(caption);
        return rta;
    }
View Full Code Here

        HorizontalLayout main = new HorizontalLayout();
        main.setSpacing(true);
        addComponent(main);

        RichTextArea first = new RichTextArea("Defined height");
        RichTextArea second = new RichTextArea("Full height");
        RichTextArea third = new RichTextArea("Undefined height");

        first.setValue(sb.toString());
        second.setValue(sb.toString());
        third.setValue(sb.toString());

        first.setReadOnly(true);
        second.setReadOnly(true);
        third.setReadOnly(true);

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

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

        layout.setSizeUndefined();
        LegacyWindow w = new LegacyWindow("", layout);
        setMainWindow(w);

        TextField filler1 = new TextField();
        RichTextArea filler2 = new RichTextArea();
        Tree tree = new Tree();
        for (int i = 0; i < 20; i++) {
            String parentId = "Item " + i;
            // Item parentItem =
            tree.addItem(parentId);
View Full Code Here

        layout.setMargin(true);
        Window subWindow = new Window("", layout);
        subWindow.setSizeUndefined();
        subWindow.getContent().setSizeUndefined();
        subWindow.center();
        subWindow.setContent(new RichTextArea());
        w.addWindow(subWindow);
    }
View Full Code Here

    @Override
    protected void setup() {
        VerticalSplitPanel sp = new VerticalSplitPanel();
        sp.setSizeFull();
        RichTextArea rta = new RichTextArea();
        rta.setSizeFull();
        Label label = new Label("One side of the panel");

        sp.setFirstComponent(label);
        sp.setSecondComponent(rta);
View Full Code Here

TOP

Related Classes of com.vaadin.ui.RichTextArea

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.