![JAR search and dependency download from the Maven repository](/logo.png)
io.imunity.vaadin23.elements.TabComponent Maven / Gradle / Ivy
/*
* Copyright (c) 2018 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin23.elements;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.tabs.Tab;
import com.vaadin.flow.router.RouterLink;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TabComponent extends Tab
{
public final String name;
public final List> componentClass;
public TabComponent(MenuComponent menu)
{
super(menu.icon.create(), new RouterLink(menu.tabName, menu.component));
name = menu.tabName;
List> components = new ArrayList<>(List.of(menu.component));
components.addAll(menu.subViews);
this.componentClass = Collections.unmodifiableList(components);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy