class AttachmentFileWidget extends Composite {

    public void submit(final Path context,
                       final String fileName,
                       final String targetUrl,
                       final Command successCallback,
                       final Command errorCallback) {
        submit(fileName,
               context.toURI(),
               FileOperation.CREATE,
               "",
               targetUrl,
               successCallback,
               errorCallback);
    }

    public  AttachmentFileWidget();
    public  AttachmentFileWidget(final String[] validFileExtensions);
    public  AttachmentFileWidget(final boolean addFileUpload);
    public  AttachmentFileWidget(final String[] validFileExtensions,
                                final boolean addFileUpload);

}