private static void addLogoToHeader ( final HorizontalLayout topHeader ) { final ThemeResource ciaLogoResource = new ThemeResource ( "cia-logo.png" ) ; final Image ciaLogoImage = new Image ( null , ciaLogoResource ) ; topHeader . addComponent ( ciaLogoImage ) ; ciaLogoImage . setWidth ( "60px" ) ; ciaLogoImage . setHeight ( "60px" ) ; topHeader . setComponentAlignment ( ciaLogoImage , Alignment . MIDDLE_LEFT ) ; topHeader . setExpandRatio ( ciaLogoImage , ContentRatio . SMALL ) ; }
Adds the logo to header .