File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,6 @@ public class LeafletView extends VerticalLayout
3131 * UI-Components
3232 */
3333 private final Button btnLunch = new Button ("Where do XDEV employees go for lunch?" );
34- private final Button btnOpenDialog = new Button ("Open dialog over map" , ev ->
35- {
36- final Icon icoClose = VaadinIcon .CLOSE .create ();
37-
38- final Dialog dialog = new Dialog (icoClose );
39- dialog .setWidth ("50vw" );
40- dialog .setHeight ("50vh" );
41- dialog .open ();
42-
43- icoClose .addClickListener (iev -> dialog .close ());
44- });
4534
4635 private LMap map ;
4736
@@ -61,7 +50,20 @@ public LeafletView()
6150 this .initMapComponents ();
6251
6352 this .btnLunch .addClickListener (this ::btnLunchClick );
64- this .add (this .btnLunch , this .btnOpenDialog );
53+
54+ this .add (
55+ this .btnLunch ,
56+ new Button ("Open dialog over map" , ev ->
57+ {
58+ final Icon icoClose = VaadinIcon .CLOSE .create ();
59+
60+ final Dialog dialog = new Dialog (icoClose );
61+ dialog .setWidth ("50vw" );
62+ dialog .setHeight ("50vh" );
63+ dialog .open ();
64+
65+ icoClose .addClickListener (iev -> dialog .close ());
66+ }));
6567 }
6668
6769 private void btnLunchClick (final ClickEvent <Button > event )
You can’t perform that action at this time.
0 commit comments