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

com.holonplatform.artisan.demo.components.Tabs10Page Maven / Gradle / Ivy

/*
 * Copyright 2016-2019 Axioma srl.
 * 
 * Licensed under the Commercial Holon Platform Module License Version 1 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * https://docs.holon-platform.com/license/chpml_v1.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.holonplatform.artisan.demo.components;

import com.holonplatform.artisan.demo.root.Menu;
import com.holonplatform.artisan.vaadin.flow.components.TabLayout;
import com.holonplatform.vaadin.flow.components.Components;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;

@Route(value = "tabs10", layout = Menu.class)
public class Tabs10Page extends Div {

	private static final long serialVersionUID = 1L;

	public Tabs10Page() {
		super();
		setSizeFull();

		VerticalLayout vl = new VerticalLayout();
		vl.setWidth("100%");
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());
		vl.add(Components.label().text("A text").build());

		add(TabLayout.builder().fullSize()
				// tab 1
				.withTab(vl).scrollable().label("Tab 1").add()
				// tab 1
				.withTab(Components.label().text("Tab two").build()).label("Tab 2").add()
				// selected
				.build().getComponent());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy