class FileUploadEditor implements IsWidget, LeafAttributeEditor<String> {

    boolean onSubmit() {
        final String fileName = view.getFileName();
        if ( isNullOrEmpty( fileName ) ) {
            return false;
        } else {
            view.setFileUploadVisible(false);
            view.setLoadingImageVisible(true);
        }
        return true;
    }

    @Inject public  FileUploadEditor(final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent,
                            final Event<NotificationEvent> workbenchNotification,
                            final View view);

}