class DocumentUpload implements DocumentUploadView.Presenter,
                                       IsWidget {

    public void setMaxDocuments(int maxDocuments) {
        this.maxDocuments = maxDocuments;
        if (maxDocuments > 0) {
            view.setMaxDocuments(translationService.format(Constants.DocumentUploadViewImplMaxDocuments, maxDocuments));
        } else {
            view.setMaxDocuments("");
        }
    }

    @Inject public  DocumentUpload(final DocumentUploadManager uploader, final DocumentUploadView view, final ManagedInstance<DocumentPreview> instance, final TranslationService translationService);

}