Example usage for com.vaadin.ui BrowserFrame setSizeFull

List of usage examples for com.vaadin.ui BrowserFrame setSizeFull

Introduction

In this page you can find the example usage for com.vaadin.ui BrowserFrame setSizeFull.

Prototype

@Override
    public void setSizeFull() 

Source Link

Usage

From source file:ui.wizard.PdfLayout.java

License:Apache License

private Component getView(final byte[] bytes) {
    BrowserFrame pdf = new BrowserFrame("", new StreamResource(new StreamResource.StreamSource() {

        @Override/*from  w w  w .java 2 s .  c o m*/
        public InputStream getStream() {
            return new ByteArrayInputStream(bytes);
        }
    }, "cv" + "_" + getUsername() + ".pdf"));

    pdf.setSizeFull();

    VerticalLayout layout = new VerticalLayout(pdf);
    layout.setSizeFull();

    Panel p = new Panel(layout);
    return pdf;
}