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.wintindustries.pfserver.interfaces.view.dashboard; import com.vaadin.navigator.View; import com.vaadin.navigator.ViewChangeListener; import com.vaadin.ui.Alignment; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.themes.ValoTheme; /** * * @author Admin */ public class EmptyView extends VerticalLayout implements View { public EmptyView() { setSizeFull(); Label label = new Label("Nothing Selected"); addComponent(label); setComponentAlignment(label, Alignment.MIDDLE_CENTER); label.setSizeUndefined(); label.addStyleName(ValoTheme.LABEL_H1); label.addStyleName(ValoTheme.LABEL_LIGHT); } @Override public void enter(ViewChangeListener.ViewChangeEvent event) { // throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }