Example usage for com.vaadin.ui Embedded setDebugId

List of usage examples for com.vaadin.ui Embedded setDebugId

Introduction

In this page you can find the example usage for com.vaadin.ui Embedded setDebugId.

Prototype

@Deprecated
public void setDebugId(String id) 

Source Link

Usage

From source file:ru.codeinside.gses.webui.form.PrintPanel.java

License:Mozilla Public License

private Panel createDocumentPanel(Application app, String classId) {
    Embedded document = new Embedded(null, new FileResource(htmlFile, app));
    document.setDebugId(classId);
    document.setType(Embedded.TYPE_BROWSER);
    document.setSizeFull();/*from ww w . j  a  va2 s. c o  m*/

    VerticalLayout documentLayout = new VerticalLayout();
    documentLayout.setMargin(true);
    documentLayout.setSizeFull();
    documentLayout.addComponent(document);
    documentLayout.setExpandRatio(document, 1f);

    Panel documentPanel = new Panel(documentLayout);
    documentPanel.setSizeFull();
    return documentPanel;
}