vaadin/src/main/java/net/typedrest/vaadin/views/ViewComponent.java
protected Window asWindow() {
        if (containingWindow == null) {
            containingWindow = new Window(getCaption(), this);
            containingWindow.setWidth(80, Unit.PERCENTAGE);
            containingWindow.setHeight(80, Unit.PERCENTAGE);
            containingWindow.center();
        }
        return containingWindow;
    }
protected Window asWindow() {
        if (containingWindow == null) {
            containingWindow = new Window(getCaption(), this);
            containingWindow.setWidth(80, Unit.PERCENTAGE);
            containingWindow.setHeight(80, Unit.PERCENTAGE);
            containingWindow.center();
        }
        return containingWindow;
    }
protected Window asWindow ( ) { if ( containingWindow == null ) { containingWindow = new Window ( getCaption ( ) , this ) ; containingWindow . setWidth ( 80 , Unit . PERCENTAGE ) ; containingWindow . setHeight ( 80 , Unit . PERCENTAGE ) ; containingWindow . center ( ) ; } return containingWindow ; }
Wraps the control in a {@link Window}.

@return The newly created window.
Wraps the control in a { @link Window } .