Example usage for com.vaadin.ui Window isAttached

List of usage examples for com.vaadin.ui Window isAttached

Introduction

In this page you can find the example usage for com.vaadin.ui Window isAttached.

Prototype

@Override
    public boolean isAttached() 

Source Link

Usage

From source file:com.yoncabt.ebr.ui.MyVaadinUI.java

private MenuBar.Command menuCommand(final Window window) {
    return (MenuBar.MenuItem selectedItem) -> {
        if (!window.isAttached()) {
            MyVaadinUI.this.addWindow(window);
        }/*from w w w .java  2  s .c o  m*/
    };
}