List of usage examples for com.vaadin.ui Panel setCaptionAsHtml
public void setCaptionAsHtml(boolean captionAsHtml)
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); }