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 org.balisunrise.vaadin.components.header; import com.vaadin.server.ThemeResource; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.Embedded; /** * * @author Glauco */ public class FastMenuItem extends CustomComponent { private String name; private String icon; private Runnable action; public FastMenuItem() { init(); } private void init() { setStyleName("b-fast-menu-item"); ThemeResource i = new ThemeResource("img/tag1.png"); setIcon(i); } }