com.squadd.UI.HeaderLayout.java Source code

Java tutorial

Introduction

Here is the source code for com.squadd.UI.HeaderLayout.java

Source

/*
 * 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.squadd.UI;

import com.vaadin.ui.Alignment;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;

/**
 *
 * @author SharkNado
 */
public class HeaderLayout extends HorizontalLayout {
    Label header;

    public HeaderLayout() {
        configureHeader();
        setSizeFull();
        addComponents(header);
        setComponentAlignment(header, Alignment.TOP_LEFT);
    }

    private void configureHeader() {
        header = new Label("SQUADD");
    }
}