public Window getWindow ( ) { managementUIState . setBulkUploadWindowMinimised ( false ) ; bulkUploadWindow = new WindowBuilder ( SPUIDefinitions . CREATE_UPDATE_WINDOW ) . caption ( "" ) . content ( this ) . buildWindow ( ) ; bulkUploadWindow . addStyleName ( "bulk-upload-window" ) ; bulkUploadWindow . setImmediate ( true ) ; if ( managementUIState . getTargetTableFilters ( ) . getBulkUpload ( ) . getProgressBarCurrentValue ( ) <= 0 ) { bulkUploader . getUpload ( ) . setEnabled ( true ) ; } else { bulkUploader . getUpload ( ) . setEnabled ( false ) ; } return bulkUploadWindow ; }
create and return window