List of usage examples for com.vaadin.ui GridLayout setCaptionAsHtml
public void setCaptionAsHtml(boolean captionAsHtml)
From source file:com.cms.utils.CommonUtils.java
public static void setBasicAttributeLayout(GridLayout gridLayout, String caption, boolean isCollapseable) { gridLayout.setWidth("100%"); gridLayout.setHeight("-1px"); gridLayout.setImmediate(true);//from w ww.jav a 2 s .co m gridLayout.setMargin(true); gridLayout.setSpacing(true); if (isCollapseable && !DataUtil.isStringNullOrEmpty(caption)) { gridLayout.setStyleName("custom-feildset"); gridLayout.setCaption(MakeURL.makeURLForGrid(caption)); gridLayout.setCaptionAsHtml(isCollapseable); } }