Skip to content

Commit e41843f

Browse files
paodbmlopezFC
authored andcommitted
build(demo): update commons-demo version to 3.5.0
1 parent 8952209 commit e41843f

File tree

12 files changed

+44
-33
lines changed

12 files changed

+44
-33
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
<dependency>
143143
<groupId>com.flowingcode.vaadin.addons.demo</groupId>
144144
<artifactId>commons-demo</artifactId>
145-
<version>3.2.0</version>
145+
<version>3.5.0</version>
146146
<scope>test</scope>
147147
</dependency>
148148
</dependencies>

src/test/java/com/flowingcode/vaadin/addons/googlemaps/AddMarkersDemo.java

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

22+
import java.util.HashMap;
23+
import java.util.Map;
24+
import java.util.Optional;
2225
import com.flowingcode.vaadin.addons.demo.DemoSource;
2326
import com.flowingcode.vaadin.addons.googlemaps.GoogleMap.MapType;
2427
import com.vaadin.flow.component.button.Button;
@@ -27,13 +30,11 @@
2730
import com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap;
2831
import com.vaadin.flow.data.provider.DataProvider;
2932
import com.vaadin.flow.router.PageTitle;
30-
import java.util.HashMap;
31-
import java.util.Map;
32-
import java.util.Optional;
33+
import com.vaadin.flow.router.Route;
3334

3435
@PageTitle("Add Markers Demo")
35-
@DemoSource(
36-
"https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/AddMarkersDemo.java")
36+
@DemoSource
37+
@Route(value = "googlemaps/addmarkers", layout = GooglemapsDemoView.class)
3738
@SuppressWarnings("serial")
3839
public class AddMarkersDemo extends AbstractGoogleMapsDemo {
3940

src/test/java/com/flowingcode/vaadin/addons/googlemaps/AddPolygonsDemo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
2626
import com.vaadin.flow.component.orderedlayout.FlexLayout;
2727
import com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap;
2828
import com.vaadin.flow.router.PageTitle;
29+
import com.vaadin.flow.router.Route;
2930
import java.util.Arrays;
3031

3132
@PageTitle("Add Polygons Demo")
32-
@DemoSource(
33-
"https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/AddPolygonsDemo.java")
33+
@DemoSource
34+
@Route(value = "googlemaps/addplygons", layout = GooglemapsDemoView.class)
3435
@SuppressWarnings("serial")
3536
public class AddPolygonsDemo extends AbstractGoogleMapsDemo {
3637

src/test/java/com/flowingcode/vaadin/addons/googlemaps/CloudBasedMapStylingDemo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import com.flowingcode.vaadin.addons.demo.DemoSource;
44
import com.flowingcode.vaadin.addons.googlemaps.GoogleMap.MapType;
55
import com.vaadin.flow.router.PageTitle;
6+
import com.vaadin.flow.router.Route;
67

78
@PageTitle("MapId Styling Demo")
8-
@DemoSource(
9-
"https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/CloudBasedMapStylingDemo.java")
9+
@DemoSource
10+
@Route(value = "googlemaps/mapid", layout = GooglemapsDemoView.class)
1011
@SuppressWarnings("serial")
1112
public class CloudBasedMapStylingDemo extends AbstractGoogleMapsDemo {
1213

src/test/java/com/flowingcode/vaadin/addons/googlemaps/ControlSizeDemo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
77
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
88
import com.vaadin.flow.router.PageTitle;
9+
import com.vaadin.flow.router.Route;
910

1011
@PageTitle("Control Size Demo")
11-
@DemoSource(
12-
"https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/ControlSizeDemo.java")
12+
@DemoSource
13+
@Route(value = "googlemaps/controlsize", layout = GooglemapsDemoView.class)
1314
@SuppressWarnings("serial")
1415
public class ControlSizeDemo extends AbstractGoogleMapsDemo {
1516

src/test/java/com/flowingcode/vaadin/addons/googlemaps/DisableUIControlsDemo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
import com.vaadin.flow.component.orderedlayout.FlexLayout;
2626
import com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap;
2727
import com.vaadin.flow.router.PageTitle;
28+
import com.vaadin.flow.router.Route;
2829

2930
@PageTitle("Disable UI controls Demo")
30-
@DemoSource("https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/DisableUIControlsDemo.java")
31+
@DemoSource
32+
@Route(value = "googlemaps/disablecontrols", layout = GooglemapsDemoView.class)
3133
@SuppressWarnings("serial")
3234
public class DisableUIControlsDemo extends AbstractGoogleMapsDemo {
3335

src/test/java/com/flowingcode/vaadin/addons/googlemaps/DraggableMarkerDemo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
import com.flowingcode.vaadin.addons.googlemaps.GoogleMap.MapType;
55
import com.vaadin.flow.component.notification.Notification;
66
import com.vaadin.flow.router.PageTitle;
7+
import com.vaadin.flow.router.Route;
78

89
@PageTitle("Draggable Marker Demo")
9-
@DemoSource(
10-
"https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/DraggableMarkerDemo.java")
10+
@DemoSource
11+
@Route(value = "googlemaps/draggablemarker", layout = GooglemapsDemoView.class)
1112
@SuppressWarnings("serial")
1213
public class DraggableMarkerDemo extends AbstractGoogleMapsDemo {
1314

src/test/java/com/flowingcode/vaadin/addons/googlemaps/GeolocationDemo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
import com.vaadin.flow.component.orderedlayout.FlexLayout;
2727
import com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap;
2828
import com.vaadin.flow.router.PageTitle;
29+
import com.vaadin.flow.router.Route;
2930

3031
@PageTitle("Geolocation Demo")
31-
@DemoSource(
32-
"https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/GeolocationDemo.java")
32+
@DemoSource
33+
@Route(value = "googlemaps/geolocation", layout = GooglemapsDemoView.class)
3334
@SuppressWarnings("serial")
3435
public class GeolocationDemo extends AbstractGoogleMapsDemo {
3536

src/test/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMapsDemo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
2626
import com.vaadin.flow.component.orderedlayout.FlexLayout;
2727
import com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap;
2828
import com.vaadin.flow.router.PageTitle;
29+
import com.vaadin.flow.router.Route;
2930
import java.util.Arrays;
3031

3132
@PageTitle("Google Maps Demo")
32-
@DemoSource(
33-
"https://github.com/FlowingCode/GoogleMapsAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMapsDemo.java")
33+
@DemoSource
34+
@Route(value = "googlemaps/googlemaps", layout = GooglemapsDemoView.class)
3435
@SuppressWarnings("serial")
3536
public class GoogleMapsDemo extends AbstractGoogleMapsDemo {
3637

src/test/java/com/flowingcode/vaadin/addons/googlemaps/GooglemapsDemoView.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
public class GooglemapsDemoView extends TabbedDemo {
3131

3232
public GooglemapsDemoView() {
33-
addDemo(new GoogleMapsDemo());
34-
addDemo(new AddMarkersDemo());
35-
addDemo(new AddPolygonsDemo());
36-
addDemo(new GeolocationDemo());
37-
addDemo(new DraggableMarkerDemo());
38-
addDemo(new DisableUIControlsDemo());
39-
addDemo(new CloudBasedMapStylingDemo());
40-
addDemo(new ControlSizeDemo());
41-
addDemo(new KMLLayerDemo());
42-
addDemo(new MarkerClusteringDemo());
33+
addDemo(GoogleMapsDemo.class);
34+
addDemo(AddMarkersDemo.class);
35+
addDemo(AddPolygonsDemo.class);
36+
addDemo(GeolocationDemo.class);
37+
addDemo(DraggableMarkerDemo.class);
38+
addDemo(DisableUIControlsDemo.class);
39+
addDemo(CloudBasedMapStylingDemo.class);
40+
addDemo(ControlSizeDemo.class);
41+
addDemo(KMLLayerDemo.class);
42+
addDemo(MarkerClusteringDemo.class);
4343
setSizeFull();
4444
}
4545
}

0 commit comments

Comments
 (0)