Skip to content

Commit 89b78e8

Browse files
paodbjavier-godoy
authored andcommitted
build(demo): update commons-demo version to 3.5.0
1 parent 1ba4877 commit 89b78e8

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<dependency>
124124
<groupId>com.flowingcode.vaadin.addons.demo</groupId>
125125
<artifactId>commons-demo</artifactId>
126-
<version>3.0.0</version>
126+
<version>3.5.0</version>
127127
<scope>test</scope>
128128
</dependency>
129129
</dependencies>

src/test/java/com/flowingcode/vaadin/addons/carousel/CarouselDemoView.java

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,19 @@
2222
import com.flowingcode.vaadin.addons.DemoLayout;
2323
import com.flowingcode.vaadin.addons.GithubLink;
2424
import com.flowingcode.vaadin.addons.demo.TabbedDemo;
25+
import com.vaadin.flow.router.ParentLayout;
2526
import com.vaadin.flow.router.Route;
2627

2728
@SuppressWarnings("serial")
28-
@Route(value = "carousel", layout = DemoLayout.class)
29+
@ParentLayout(DemoLayout.class)
30+
@Route("carousel")
2931
@GithubLink("https://github.com/FlowingCode/CarouselAddon")
3032
public class CarouselDemoView extends TabbedDemo {
3133

32-
private static final String LISTENER_DEMO = "Slide Listener";
33-
private static final String AUTOPROGRESS_DEMO = "Auto Progress";
34-
private static final String BUTTONS_DEMO = "Slide Buttons";
35-
private static final String LISTENER_SOURCE =
36-
"https://github.com/FlowingCode/CarouselAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/carousel/ListenerDemo.java";
37-
private static final String AUTPROGRESS_SOURCE =
38-
"https://github.com/FlowingCode/CarouselAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/carousel/AutoProgressDemo.java";
39-
private static final String BUTTONS_SOURCE =
40-
"https://github.com/FlowingCode/CarouselAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/carousel/SlideButtonsDemo.java";
41-
4234
public CarouselDemoView() {
43-
addDemo(new ListenerDemo(), LISTENER_DEMO, LISTENER_SOURCE);
44-
addDemo(new AutoProgressDemo(), AUTOPROGRESS_DEMO, AUTPROGRESS_SOURCE);
45-
addDemo(new SlideButtonsDemo(), BUTTONS_DEMO, BUTTONS_SOURCE);
35+
addDemo(ListenerDemo.class);
36+
addDemo(AutoProgressDemo.class);
37+
addDemo(SlideButtonsDemo.class);
4638
setSizeFull();
4739
}
4840
}

src/test/java/com/flowingcode/vaadin/addons/carousel/ListenerDemo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@
1919
*/
2020
package com.flowingcode.vaadin.addons.carousel;
2121

22+
import com.flowingcode.vaadin.addons.demo.DemoSource;
2223
import com.vaadin.flow.component.Component;
2324
import com.vaadin.flow.component.html.H1;
2425
import com.vaadin.flow.component.notification.Notification;
2526
import com.vaadin.flow.component.notification.Notification.Position;
2627
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
28+
import com.vaadin.flow.router.PageTitle;
29+
import com.vaadin.flow.router.Route;
2730

31+
@PageTitle("Slide Listener")
32+
@DemoSource
33+
@Route(value = "carousel/slide-listener", layout = CarouselDemoView.class)
2834
@SuppressWarnings("serial")
2935
public class ListenerDemo extends VerticalLayout {
3036

src/test/java/com/flowingcode/vaadin/addons/carousel/SlideButtonsDemo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,20 @@
1919
*/
2020
package com.flowingcode.vaadin.addons.carousel;
2121

22+
import com.flowingcode.vaadin.addons.demo.DemoSource;
2223
import com.vaadin.flow.component.Component;
2324
import com.vaadin.flow.component.button.Button;
2425
import com.vaadin.flow.component.html.H1;
2526
import com.vaadin.flow.component.notification.Notification;
2627
import com.vaadin.flow.component.notification.Notification.Position;
2728
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
2829
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
30+
import com.vaadin.flow.router.PageTitle;
31+
import com.vaadin.flow.router.Route;
2932

33+
@PageTitle("Slide Buttons")
34+
@DemoSource
35+
@Route(value = "carousel/slide-buttons", layout = CarouselDemoView.class)
3036
@SuppressWarnings("serial")
3137
public class SlideButtonsDemo extends VerticalLayout {
3238

0 commit comments

Comments
 (0)