HorizontalPanel panel = new HorizontalPanel();
panel.setStyleName("logo-section");
panel.getElement().setAttribute("role", "presentation");
panel.getElement().setAttribute("aria-hidden", "true");
Image logo = null;
if(ProductConfig.Profile.EAP.equals(productConfig.getProfile()))
{
logo = new Image("images/logo/product_title.png");
logo.setAltText("JBoss Enterprise Application Platform");
}
else {
logo = new Image("images/logo/community_title.png");
logo.setAltText("JBoss Application Server");
}
logo.setStyleName("logo");
panel.add(logo);
HTML prodVersion = new HTML(productConfig.getProductVersion());
prodVersion.setStyleName("header-prod-version");
panel.add(prodVersion);
logo.getElement().getParentElement().setAttribute("valign", "bottom");
logo.getElement().getParentElement().setAttribute("style", "vertical-align:bottom;");
prodVersion.getElement().getParentElement().setAttribute("valign", "bottom");
prodVersion.getElement().getParentElement().setAttribute("style", "vertical-align:bottom;");
prodVersion.getElement().getParentElement().setAttribute("width", "100%");
return panel;