All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.imunity.furms.ui.components.TabComponent Maven / Gradle / Ivy

There is a newer version: 4.3.1
Show newest version
/*
 * Copyright (c) 2020 Bixbit s.c. All rights reserved.
 * See LICENSE file for licensing information.
 */
package io.imunity.furms.ui.components;

import java.util.Collections;
import java.util.List;

import com.google.common.collect.Lists;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.tabs.Tab;
import com.vaadin.flow.router.RouterLink;

public class TabComponent extends Tab {
	public final List> componentClass;

	public TabComponent(String text, MenuComponent menu){
		super(new RouterLink(text, menu.component));
		List> components = Lists.newArrayList(menu.component);
		components.addAll(menu.subViews);
		this.componentClass = Collections.unmodifiableList(components);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy