Example usage for com.vaadin.server BrowserWindowOpener setFeatures

List of usage examples for com.vaadin.server BrowserWindowOpener setFeatures

Introduction

In this page you can find the example usage for com.vaadin.server BrowserWindowOpener setFeatures.

Prototype


public void setFeatures(String features) 

Source Link

Document

Sets the features for opening the window.

Usage

From source file:com.foc.vaadin.gui.layouts.validationLayout.FVValidationLayout.java

License:Apache License

public void applyBrowserWindowOpenerToPrintButton(AbstractComponent printButton) {
    BrowserWindowOpener opener = null;
    if (validationSettings != null && validationSettings.avoidRowBreak()) {
        opener = new BrowserWindowOpener(PrintUI_Break.class);
    } else {/*from   ww w .java2  s  .  c om*/
        opener = new BrowserWindowOpener(PrintUI.class);
    }
    opener.setFeatures("height=700,width=900,resizable,titlebar=no");
    opener.extend(printButton);
}