Skip to content

Commit 9eed34f

Browse files
committed
fix(demo): avoid exposing reflection helper in demo sources
1 parent 219b65f commit 9eed34f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/flowingcode/vaadin/addons/orgchart/EditChartDemo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ private VerticalLayout getEditionLayout() {
177177
// Action Selector
178178
actionSelector = new RadioButtonGroup<>();
179179
actionSelector.setLabel("Select Action");
180+
// #if vaadin eq 0
180181
ReflectionUtil.setItems(actionSelector,"Add", "Edit", "Delete");
182+
// #endif
183+
// show-source actionSelector.setItems("Add", "Edit", "Delete");
181184
actionSelector.addValueChangeListener(event -> updateComponentStates());
182185

183186
Div separator = new Div();
@@ -204,7 +207,10 @@ private VerticalLayout getEditionLayout() {
204207
// Relation type selector
205208
typeSelector = new RadioButtonGroup<String>();
206209
typeSelector.setLabel("Select Relation Type:");
210+
// #if vaadin eq 0
207211
ReflectionUtil.setItems(typeSelector, "Parent(root)", "Child", "Sibling");
212+
// #endif
213+
// show-source typeSelector.setItems("Parent(root)", "Child", "Sibling");
208214
typeSelector.setValue("Child");
209215
typeSelector.addThemeVariants(RadioGroupVariant.LUMO_VERTICAL);
210216

0 commit comments

Comments
 (0)