aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/tests/design/designroot/ExtendedDesignWithEmptyAnnotation.java
blob: 78b77e5fccc821e61679a006ca141c39851f3cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.vaadin.tests.design.designroot;

import com.vaadin.ui.Notification;
import com.vaadin.ui.TextField;

public class ExtendedDesignWithEmptyAnnotation
        extends DesignWithEmptyAnnotation {

    private final TextField customField = new TextField();

    public ExtendedDesignWithEmptyAnnotation() {
        super();
        customField.setPlaceholder("Something");
        addComponent(customField);

        ok.addClickListener(event -> Notification.show("OK"));

        CaNCEL.addClickListener(event -> Notification.show("cancel"));
    }
}