Search in sources :

Example 1 with NameField

use of com.vaadin.flow.uitest.ui.CompositeView.NameField in project flow by vaadin.

the class CompositeNestedView method initContent.

@Override
protected Div initContent() {
    Div div = new Div();
    nameField = new NameField();
    nameField.setId(NAME_FIELD_ID);
    Div name = new Div();
    name.setText("Name on server: " + nameField.getName());
    name.setId(NAME_ID);
    nameField.addNameChangeListener(e -> {
        name.setText("Name on server: " + nameField.getName());
    });
    div.add(name, nameField);
    return div;
}
Also used : Div(com.vaadin.flow.component.html.Div) NameField(com.vaadin.flow.uitest.ui.CompositeView.NameField)

Aggregations

Div (com.vaadin.flow.component.html.Div)1 NameField (com.vaadin.flow.uitest.ui.CompositeView.NameField)1