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 ) ; }
Closes the cut out .