aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelWithRichTextArea.java
blob: 6b1731950948fab72dd617ceb30977f809e50219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.vaadin.tests.components.splitpanel;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Label;
import com.vaadin.ui.RichTextArea;
import com.vaadin.ui.VerticalSplitPanel;

public class SplitPanelWithRichTextArea extends TestBase {

    @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);

        addComponent(sp);
        sp.setSizeFull();
        getLayout().setSizeFull();

    }

    @Override
    protected String getDescription() {
        return "Dragging the splitter should work even if the cursor happens to move over the RichTextArea because of slow updates.";
    }

    @Override
    protected Integer getTicketNumber() {
        return 3792;
    }

}