You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

50 lines
1.4 KiB

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();
}
}