Examples of RichTextArea


Examples of com.vaadin.ui.RichTextArea

    /**
     * Create new RichTextArea with given caption and add it to current
     * component container.
     */
    public RichTextArea richtextarea(String caption) {
        RichTextArea c = richtextarea();
        c.setCaption(caption);
        return c;
    }
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

    }

    /** Create new RichTextArea with given caption and listener. */
    public RichTextArea richtextarea(String caption,
            Property.ValueChangeListener changeListener) {
        RichTextArea c = richtextarea(caption);
        c.addListener(changeListener);
        return c;
    }
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

import com.vaadin.ui.TextField;

public class UiRichText extends UiText {

  protected AbstractField createTextField() {
    RichTextArea out = new RichTextArea();
    out.setHeight(getElement().getConfig().getInt("height", 300),Sizeable.UNITS_PIXELS);
    return out;
  }
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

    parent.removeComponent(editor);
  }

  @Override
  protected void createComponent() {
    editor = new RichTextArea();
    editor.setImmediate(true);
    editor.setEnabled(target.isEnabled());
    editor.addListener(this);
    editor.setWidth("100%");
    ((ILayout)parent).addComponent(target, editor);
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

    @Override
    protected void setup() {
        PopupView pv = new PopupView(new Content() {

            RichTextArea rte = new RichTextArea();

            VerticalLayout vl = new VerticalLayout();

            @Override
            public String getMinimizedValueAsHTML() {
                String value = rte.getValue();
                if (value == null || "".equals(value)) {
                    value = "Initial <b>content</b> for <h3>rte</h3>.";
                    rte.setValue(value);
                    rte.setHeight("150px");
                    rte.setWidth("100%");
                    vl.addComponent(rte);
                    vl.setWidth("600px");
                }
                return value.toString();
            }
View Full Code Here

Examples of com.vaadin.ui.RichTextArea

   * @param caption
   *            Field's caption.
   * @return Produced field.
   */
  public static RichTextArea createRichText(String caption) {
    RichTextArea field = new RichTextArea();
    field.setNullRepresentation("");
    setBasicProperties(field, caption);
    return field;
  }
View Full Code Here

Examples of org.apache.click.examples.control.RichTextArea

        TextField subjectField = new TextField("subject", "Subject:");
        subjectField.setRequired(true);
        subjectField.setSize(60);
        form.add(subjectField);

        RichTextArea messageTextArea = new RichTextArea("message");
        messageTextArea.setLabel("Message:");
        messageTextArea.setCols(45);
        messageTextArea.setRows(8);
        form.add(messageTextArea);

        form.add(new Submit("send", "  Send "));
        form.add(new PageSubmit("cancel", HomePage.class));
    }
View Full Code Here

Examples of org.apache.click.examples.control.RichTextArea

        TextField subjectField = new TextField("subject", "Subject:");
        subjectField.setRequired(true);
        subjectField.setSize(60);
        form.add(subjectField);

        RichTextArea messageTextArea = new RichTextArea("message");
        messageTextArea.setLabel("Message:");
        messageTextArea.setCols(45);
        messageTextArea.setRows(8);
        form.add(messageTextArea);

        form.add(new Submit("send", "  Send "));
        form.add(new PageSubmit("cancel", HomePage.class));
    }
View Full Code Here

Examples of org.apache.click.examples.control.RichTextArea

        TextField subjectField = new TextField("subject", "Subject:");
        subjectField.setRequired(true);
        subjectField.setSize(60);
        form.add(subjectField);

        RichTextArea messageTextArea = new RichTextArea("message");
        messageTextArea.setLabel("Message:");
        messageTextArea.setCols(45);
        messageTextArea.setRows(8);
        form.add(messageTextArea);

        form.add(new Submit("send", "  Send "));
        form.add(new PageSubmit("cancel", HomePage.class));
    }
View Full Code Here

Examples of org.apache.click.examples.control.RichTextArea

        TextField subjectField = new TextField("subject", "Subject:");
        subjectField.setRequired(true);
        subjectField.setSize(60);
        form.add(subjectField);

        RichTextArea messageTextArea = new RichTextArea("message");
        messageTextArea.setLabel("Message:");
        messageTextArea.setCols(45);
        messageTextArea.setRows(8);
        form.add(messageTextArea);

        form.add(new Submit("send", "  Send "));
        form.add(new PageSubmit("cancel", HomePage.class));
    }
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.