public void close(boolean autoClosed) {
        //restore the old overflow of the page
        Document.get().getDocumentElement().getStyle().setProperty("overflow", viewportOverflow);

        getElement().getStyle().setDisplay(Display.NONE);

        getHandlerRegistry().clearHandlers();

        // if the component added himself to the document, it must remove
        // himself too
        if (autoAddedToDocument) {
            this.removeFromParent();
            autoAddedToDocument = false;
        }
        CloseEvent.fire(this, this, autoClosed);
    }
public void close ( boolean autoClosed ) { Document . get ( ) . getDocumentElement ( ) . getStyle ( ) . setProperty ( "overflow" , viewportOverflow ) ; getElement ( ) . getStyle ( ) . setDisplay ( Display . NONE ) ; getHandlerRegistry ( ) . clearHandlers ( ) ; if ( autoAddedToDocument ) { this . removeFromParent ( ) ; autoAddedToDocument = false ; } CloseEvent . fire ( this , this , autoClosed ) ; }
Closes the cut out.

@param autoClosed Notifies with the dialog was auto closed or closed by user action