Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.cerebro.gorgone.landingpage; import static com.cerebro.gorgone.MyUI.logger; import com.vaadin.ui.CssLayout; import com.vaadin.ui.HorizontalLayout; /** * * @author matteo */ public class LandingPage extends CssLayout { SignIn signIn; Login login; public LandingPage() { logger.info("Creazione della Landing Page"); // Contenitore principale HorizontalLayout root = new HorizontalLayout(); root.setId("landingPage_root"); root.setMargin(true); // Componente di registrazione signIn = new SignIn(); signIn.resetField(); // Componente di login login = new Login(); root.addComponents(signIn, login); this.addComponents(root); } }