Example usage for com.vaadin.ui GridLayout setCaptionAsHtml

List of usage examples for com.vaadin.ui GridLayout setCaptionAsHtml

Introduction

In this page you can find the example usage for com.vaadin.ui GridLayout setCaptionAsHtml.

Prototype

public void setCaptionAsHtml(boolean captionAsHtml) 

Source Link

Document

Sets whether the caption is rendered as HTML.

Usage

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);
    }
}