org.balisunrise.vaadin.components.header.Configuration.java Source code

Java tutorial

Introduction

Here is the source code for org.balisunrise.vaadin.components.header.Configuration.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 org.balisunrise.vaadin.components.header;

import com.vaadin.server.FontAwesome;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.PopupView;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Label;

/**
 *
 * @author Glauco
 */
public class Configuration extends CustomComponent {

    private PopupView popup;

    public Configuration() {
        init();
    }

    private void init() {
        setStyleName("b-configuration");
        popup = new PopupView(FontAwesome.COG.getHtml(), new VerticalLayout(new Label("Configuration")));

        setCompositionRoot(popup);
    }
}