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

de.mhus.lib.vaadin.form2.UiTabsheet Maven / Gradle / Ivy

There is a newer version: 3.2.8
Show newest version
package de.mhus.lib.vaadin.form2;

import com.vaadin.ui.AbstractLayout;
import com.vaadin.ui.Component;
import com.vaadin.ui.TabSheet;

import de.mhus.lib.form.LayoutComposite;
import de.mhus.lib.form.LayoutElement;

public class UiTabsheet extends UiVaadinComposite {

	private TabSheet tabSheed;

	public void createUi(VaadinFormBuilder builder) {
		tabSheed = new TabSheet();
		builder.addComposite((LayoutComposite)getElement(), tabSheed);
	}
	
	public void addComponent(LayoutElement element, Component component, int col1, int row1, int col2, int row2) {
		//TODO if (component instanceof AbstractLayout) ((AbstractLayout)component).setMargin(true);
		tabSheed.addTab(component,element.getTitle());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy