package app.views.match; import app.data.service.MatchService; import app.navigation.NavigationLevel; import app.navigation.NavigationService; import app.views.main.MainView; import app.views.match.components.MatchComponent; import app.views.navigation.NavigationViewBase; import com.vaadin.flow.component.dependency.CssImport; import com.vaadin.flow.router.PageTitle; import com.vaadin.flow.router.Route; import org.springframework.beans.factory.annotation.Autowired; @CssImport("app/views/match/match-view.css") @Route(value = "match", layout = MainView.class) @PageTitle("Schachliga DACH - Results - Matches") public class MatchView extends NavigationViewBase { private final MatchService matchService; private MatchComponent matchComponent; public MatchView(@Autowired NavigationService navigationService, @Autowired MatchService matchService) { super(navigationService, "match", NavigationLevel.MATCH); this.matchService = matchService; addClassName("match-view"); configureLayout(); } //////////// // LAYOUT // //////////// private void configureLayout() { matchComponent = new MatchComponent(navigation); add(matchComponent); } ///////////// // CONTENT // ///////////// @Override protected void configureContent() { matchComponent.configureContent(); } }