Here are the examples of the java api @com.vaadin.flow.router.Route(com.vaadin.flow.uitest.ui.template.BasicTypeInListView) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : BasicTypeInListView.java
with MIT License
from mcollovati
with MIT License
from mcollovati
@Route("com.vaadin.flow.uitest.ui.template.BasicTypeInListView")
public clreplaced BasicTypeInListView extends AbstractDivView {
@Tag("basic-type-list")
@HtmlImport("frontend://com/vaadin/flow/uitest/ui/template/BasicTypeList.html")
@JsModule("BasicTypeList.js")
public static clreplaced BasicTypeList extends PolymerTemplate<ItemsModel> {
BasicTypeList() {
getModel().sereplacedems(Arrays.asList("foo", "bar"));
}
@Override
protected ItemsModel getModel() {
return super.getModel();
}
}
public interface ItemsModel extends TemplateModel {
void sereplacedems(List<String> items);
List<String> gereplacedems();
}
public BasicTypeInListView() {
BasicTypeList list = new BasicTypeList();
list.setId("template");
add(list);
add(createButton("Add an item", "add", event -> list.getModel().gereplacedems().add("newItem")));
add(createButton("Remove the first item", "remove", event -> list.getModel().gereplacedems().remove(0)));
}
}