Example usage for com.vaadin.ui Panel setCaptionAsHtml

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

Introduction

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

Prototype

public void setCaptionAsHtml(boolean captionAsHtml) 

Source Link

Document

Sets whether the caption is rendered as HTML.

Usage

From source file:com.ocs.dynamo.ui.composite.dialog.BaseModalDialog.java

License:Apache License

private void constructLayout() {
    this.setModal(true);
    this.setResizable(false);

    Panel panel = new Panel();
    panel.setCaptionAsHtml(true);
    panel.setCaption(getTitle());/*from   w ww . ja v  a 2s  .co  m*/

    this.setContent(panel);

    VerticalLayout main = new DefaultVerticalLayout();
    main.setStyleName("ocsDialog");
    panel.setContent(main);

    doBuild(main);

    DefaultHorizontalLayout buttonBar = new DefaultHorizontalLayout();
    main.addComponent(buttonBar);

    doBuildButtonBar(buttonBar);
}

From source file:com.ocs.dynamo.ui.composite.layout.LazyTabLayout.java

License:Apache License

@Override
public void build() {
    Panel panel = new Panel();
    panel.setCaptionAsHtml(true);
    panel.setCaption(createTitle());// w ww.  j a va2s  . c o m

    VerticalLayout main = new DefaultVerticalLayout(true, true);
    panel.setContent(main);

    tabs = new TabSheet();
    tabs.setSizeFull();

    main.addComponent(tabs);
    setupLazySheet(tabs);
    setCompositionRoot(panel);
}