-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMainView.java
More file actions
37 lines (34 loc) · 1.44 KB
/
MainView.java
File metadata and controls
37 lines (34 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.example.application.views.main;
import com.vaadin.flow.component.Composite;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Menu;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.theme.lumo.LumoUtility.Gap;
@PageTitle("Main")
@Route("")
@Menu(order = 0, icon = "line-awesome/svg/pencil-ruler-solid.svg")
public class MainView extends Composite<VerticalLayout> {
public MainView() {
HorizontalLayout layoutRow2 = new HorizontalLayout();
HorizontalLayout layoutRow = new HorizontalLayout();
VerticalLayout layoutColumn2 = new VerticalLayout();
VerticalLayout layoutColumn3 = new VerticalLayout();
getContent().setWidth("100%");
getContent().getStyle().set("flex-grow", "1");
layoutRow2.addClassName(Gap.MEDIUM);
layoutRow2.setWidth("100%");
layoutRow2.setHeight("min-content");
layoutRow.addClassName(Gap.MEDIUM);
layoutRow.setWidth("100%");
layoutRow.getStyle().set("flex-grow", "1");
layoutColumn2.getStyle().set("flex-grow", "1");
layoutColumn3.setWidth("100%");
layoutColumn3.getStyle().set("flex-grow", "1");
getContent().add(layoutRow2);
getContent().add(layoutRow);
layoutRow.add(layoutColumn2);
layoutRow.add(layoutColumn3);
}
}