Skip to content

Commit fd49850

Browse files
javier-godoypaodb
authored andcommitted
refactor(demo): use lombok extension mechanism
Close #146
1 parent 1c0b299 commit fd49850

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/java/com/flowingcode/vaadin/addons/gridhelpers/AllFeaturesDemo.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* #%L
33
* Grid Helpers Add-on
44
* %%
5-
* Copyright (C) 2022 - 2024 Flowing Code
5+
* Copyright (C) 2022 - 2025 Flowing Code
66
* %%
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@
2525
import com.flowingcode.vaadin.addons.GithubLink;
2626
import com.flowingcode.vaadin.addons.gridhelpers.CheckboxColumn.CheckboxColumnConfiguration;
2727
import com.flowingcode.vaadin.addons.gridhelpers.CheckboxColumn.CheckboxPosition;
28+
import com.flowingcode.vaadin.jsonmigration.JsonMigration;
2829
import com.vaadin.flow.component.Component;
2930
import com.vaadin.flow.component.Text;
3031
import com.vaadin.flow.component.button.Button;
@@ -58,7 +59,7 @@
5859
@GithubLink("https://github.com/FlowingCode/GridHelpers")
5960
@StyleSheet("context://gridhelpers/styles.css")
6061
@JavaScript("context://gridhelpers/gridhelpers-demo.js")
61-
@ExtensionMethod(GridHelper.class)
62+
@ExtensionMethod(value = {GridHelper.class, JsonMigration.class}, suppressBaseMethods = true)
6263
public class AllFeaturesDemo extends Div {
6364

6465
private final CheckboxColumn<Person> activeCheckboxColumn;
@@ -302,7 +303,8 @@ private int getHeightByRows(Grid<Person> grid) {
302303
private void updateHeightByRowsField(Grid<?> grid, IntegerField field) {
303304
grid.getElement().executeJs("return")
304305
.then(x -> grid.getElement()
305-
.executeJs("return window.Vaadin.Flow.fcGridHelperDemoConnector.getViewportRowCount(this)")
306+
.executeJs(
307+
"return window.Vaadin.Flow.fcGridHelperDemoConnector.getViewportRowCount(this)")
306308
.then(Integer.class, rows -> {
307309
field.setValue(rows);
308310
field.setMin(1);

0 commit comments

Comments
 (0)