| Semester_Vaadin |
|---|
| 01_StartProject |
| 02_Component |
| 03_Layout |
| 04_Basiklasse |
| 05_Serviceklasse |
| 06_GridSimple |
| 07_Event |
| 08_Exception |
| 09_Grid_Manuell |
| 10_Delete |
| 11_Validation |
| 12_Insert |
VerticalLayout layout = new VerticalLayout();
layout.add(new Button("Erster Button"));
layout.add(new Button("Zweiter Button"));
HorizontalLayout layout = new HorizontalLayout();
layout.add(new Button("Links"));
layout.add(new Button("Rechts"));
(https://javadoc.io/doc/com.github.javafaker/javafaker/latest/com/github/javafaker/Lorem.html)
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
</dependency>
import com.github.javafaker.Faker;
new Faker().lorem().paragraph(12)
Skizze
Hierarchie

public class TestView extends VerticalLayout {
public TestView() {
VerticalLayout preisEinzel, preisGruppe, preisOnline;
H1 title = new H1("Preisliste");
title.setSizeFull();
preisEinzel = new VerticalLayout(new H2("Einzelbuchung"), new Paragraph("80 Euro pro Buchung"), new Paragraph(new Faker().lorem().paragraph(12)));
preisGruppe = new VerticalLayout(new H2("Gruppenreise"), new Paragraph("40 Euro pro Person"), new Paragraph(new Faker().lorem().paragraph(12)));
preisOnline = new VerticalLayout(new H2("Onlinebuchung"), new Paragraph("20 Euro pro Buchung"), new Paragraph(new Faker().lorem().paragraph(12)));
Paragraph footer = new Paragraph("sämtliche Preise inkl. 20% UST");
add(title, new HorizontalLayout(preisEinzel, preisGruppe, preisOnline), footer);
}
}