Search in sources :

Example 66 with H2

use of com.vaadin.flow.component.html.H2 in project flow-components by vaadin.

the class SplitLayoutView method addCard.

private void addCard(String title, Component... components) {
    VerticalLayout layout = new VerticalLayout();
    layout.setMargin(true);
    layout.add(new H2(title));
    layout.add(components);
    add(layout);
}
Also used : VerticalLayout(com.vaadin.flow.component.orderedlayout.VerticalLayout) H2(com.vaadin.flow.component.html.H2)

Example 67 with H2

use of com.vaadin.flow.component.html.H2 in project flow-components by vaadin.

the class UploadView method addCard.

private void addCard(String title, Component... components) {
    Div container = new Div(components);
    container.addComponentAsFirst(new H2(title));
    add(container);
}
Also used : Div(com.vaadin.flow.component.html.Div) H2(com.vaadin.flow.component.html.H2)

Example 68 with H2

use of com.vaadin.flow.component.html.H2 in project psip-automation by bssw-psip.

the class Home method createContent.

private Component createContent() {
    Div intro = new Div();
    intro.add(new Image(UIUtils.IMG_PATH + "logos/ryp_logo.png", "Rate Your Project"));
    intro.add(new H2("A self assessment tool for improving software practices"));
    intro.add(new Paragraph("Software engineering is a systematic approach to the design, development, and maintenance of a software system. " + "Teams seldom have the time to stop development and focus solely on improving productivity or sustainability. However, " + "teams can incorporate improvements on the way to developing new science capabilities."));
    intro.add(new Paragraph("The tools on this site will help you:"));
    intro.add(new UnorderedList(new ListItem("Assess your current practices"), new ListItem("Create progress tracking cards"), new ListItem("Integrate tracking cards with your workflow")));
    intro.add(new Paragraph("The self-assessment introduces software engineering practices that increase in maturity. " + "Check the practices that your project already uses to rate your project."));
    intro.add(new Paragraph(new Emphasis("Click on the assessment to the left " + "tab to get started. You can also click the arrow icon on the assessment tab to view the practice categories.")));
    intro.add(new Paragraph("Good luck!"));
    Anchor documentation = new Anchor("https://bssw-psip.github.io/ptc-catalog/", UIUtils.createButton("Read the documentation", VaadinIcon.EXTERNAL_LINK));
    FlexBoxLayout links = new FlexBoxLayout(documentation);
    links.setFlexWrap(FlexWrap.WRAP);
    links.setSpacing(Right.S);
    FlexBoxLayout content = new FlexBoxLayout(intro, links);
    content.setFlexDirection(FlexDirection.COLUMN);
    content.setMargin(Horizontal.AUTO);
    content.setMaxWidth("840px");
    content.setPadding(Uniform.RESPONSIVE_L);
    return content;
}
Also used : Div(com.vaadin.flow.component.html.Div) Emphasis(com.vaadin.flow.component.html.Emphasis) Anchor(com.vaadin.flow.component.html.Anchor) FlexBoxLayout(io.bssw.psip.ui.components.FlexBoxLayout) UnorderedList(com.vaadin.flow.component.html.UnorderedList) H2(com.vaadin.flow.component.html.H2) ListItem(com.vaadin.flow.component.html.ListItem) Image(com.vaadin.flow.component.html.Image) Paragraph(com.vaadin.flow.component.html.Paragraph)

Aggregations

H2 (com.vaadin.flow.component.html.H2)68 VerticalLayout (com.vaadin.flow.component.orderedlayout.VerticalLayout)29 Div (com.vaadin.flow.component.html.Div)25 Grid (com.vaadin.flow.component.grid.Grid)11 ComboBox (com.vaadin.flow.component.combobox.ComboBox)10 Button (com.vaadin.flow.component.button.Button)8 Paragraph (com.vaadin.flow.component.html.Paragraph)7 HorizontalLayout (com.vaadin.flow.component.orderedlayout.HorizontalLayout)7 Route (com.vaadin.flow.router.Route)6 List (java.util.List)6 IntStream (java.util.stream.IntStream)6 NativeButton (com.vaadin.flow.component.html.NativeButton)5 ArrayList (java.util.ArrayList)5 Html (com.vaadin.flow.component.Html)4 TextField (com.vaadin.flow.component.textfield.TextField)4 Faker (com.github.javafaker.Faker)3 ItemFilter (com.vaadin.flow.component.combobox.ComboBox.ItemFilter)3 Label (com.vaadin.flow.component.html.Label)3 CallbackDataProvider (com.vaadin.flow.data.provider.CallbackDataProvider)3 ComponentRenderer (com.vaadin.flow.data.renderer.ComponentRenderer)3