Skip to content

Commit c37152d

Browse files
committed
refactor(demo)!: update implementation of TabbedDemo
1 parent b4e5bc9 commit c37152d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/test/java/com/flowingcode/vaadin/addons/errorwindow/ErrorwindowDemoView.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@
22

33
import com.flowingcode.vaadin.addons.DemoLayout;
44
import com.flowingcode.vaadin.addons.GithubLink;
5-
import com.flowingcode.vaadin.addons.demo.impl.TabbedDemoImpl;
6-
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
5+
import com.flowingcode.vaadin.addons.demo.TabbedDemo;
76
import com.vaadin.flow.router.Route;
87

98
@SuppressWarnings("serial")
109
@Route(value = "error-window", layout = DemoLayout.class)
1110
@GithubLink("https://github.com/FlowingCode/ErrorWindowAddon")
12-
public class ErrorwindowDemoView extends VerticalLayout {
11+
public class ErrorwindowDemoView extends TabbedDemo {
1312

1413
private static final String ERROR_DEMO = "Error Window Demo";
1514
private static final String ERROR_SOURCE = "https://github.com/FlowingCode/ErrorWindowAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/errorwindow/ErrorwindowDemoView.java";
1615

1716
public ErrorwindowDemoView() {
18-
TabbedDemoImpl<ErrorwindowDemo> errorDemo = new TabbedDemoImpl<>(new ErrorwindowDemo(), ERROR_DEMO,
19-
ERROR_SOURCE);
20-
add(errorDemo);
17+
addDemo(new ErrorwindowDemo(), ERROR_DEMO, ERROR_SOURCE);
2118
setSizeFull();
2219
}
2320

0 commit comments

Comments
 (0)