File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
src/test/java/com/flowingcode/vaadin/addons/demo Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 2525
2626/** Hello world! */
2727@ Route ("" )
28- public class Demo extends VerticalLayout {
28+ public class Demo extends TabbedDemo {
2929
3030 public Demo () {
3131 final String sourceCodeUrl =
@@ -36,20 +36,17 @@ public Demo() {
3636 vl .setSizeFull ();
3737 vl .add (new TextField ("Hello" ));
3838
39- TabbedDemo tabbedDemo = new TabbedDemo ();
40- tabbedDemo .addDemo (vl , "Demo 1" , sourceCodeUrl );
39+ addDemo (vl , "Demo 1" , sourceCodeUrl );
4140
4241 vl2 .add (new TextField ("Hi" ));
43- tabbedDemo . addDemo (vl2 , "Demo 2" , sourceCodeUrl );
42+ addDemo (vl2 , "Demo 2" , sourceCodeUrl );
4443
4544 TextField tf = new TextField ("Demo Without Source Code" );
4645 tf .setWidthFull ();
4746 vl3 .add (tf );
48- tabbedDemo . addDemo (vl3 , "Demo Without Source Code" );
47+ addDemo (vl3 , "Demo Without Source Code" );
4948
50- tabbedDemo . addDemo (new SampleDemo ());
49+ addDemo (new SampleDemo ());
5150
52- add (tabbedDemo );
53- setSizeFull ();
5451 }
5552}
You can’t perform that action at this time.
0 commit comments