Example usage for com.vaadin.ui RichTextArea setSizeFull

List of usage examples for com.vaadin.ui RichTextArea setSizeFull

Introduction

In this page you can find the example usage for com.vaadin.ui RichTextArea setSizeFull.

Prototype

public void setSizeFull();

Source Link

Document

Sets the size to 100% x 100%.

Usage

From source file:com.mcparland.john.AdjustableLayout.java

License:Apache License

/**
 * Create the editor panel.//from ww  w.j  a  v a  2 s . c om
 * 
 * @return the editor panel.
 */
private Component createEditorPanel() {
    SafeHtml safeHtml = SafeHtmlUtils.fromSafeConstant("<b>Help</b> <br />" + LIPSUM);
    HorizontalSplitPanel editorPanel = new HorizontalSplitPanel();
    RichTextArea editor = new RichTextArea();
    editor.setSizeFull();
    editor.setValue(LIPSUM);
    editorPanel.setFirstComponent(editor);
    editorPanel.setSecondComponent(new Label(safeHtml.asString(), ContentMode.HTML));
    editorPanel.setSplitPosition(80, Unit.PERCENTAGE);
    return editorPanel;
}