Class FileAttachmentUICustomWidgetFactory

java.lang.Object
com.apgar.common.lib.ui.widget.fileattachmentwidget.FileAttachmentUICustomWidgetFactory
All Implemented Interfaces:
UIWidgetFactory<FileAttachmentUICustomWidget>

public class FileAttachmentUICustomWidgetFactory extends Object implements UIWidgetFactory<FileAttachmentUICustomWidget>
Factory class for creating instances of FileAttachmentUICustomWidget.

This factory implements UIWidgetFactory and is responsible for instantiating and setting up FileAttachmentUICustomWidget, which allows file attachment on a field within a form.

This class is defined as follows under the attachment field in the XSD.

 <xs:element name="attachmentField" minOccurs="0" maxOccurs="1">
     <xs:annotation>
         <xs:documentation xml:lang="en-US">
             <osd:label>Attachment Field</osd:label>
         </xs:documentation>
         <xs:appinfo>
             <osd:defaultView>
                 <widget osd:class="com.apgar.common.lib.ui.widget.fileattachmentwidget.FileAttachmentUICustomWidgetFactory">
                      <servletPath>/YourProject/FileUploadDownloadServlet</servletPath>
                      <fileUploadDirectory>/YourProject/FileUploadDownloadServlet</fileUploadDirectory>
                 </widget>
             </osd:defaultView>
         </xs:appinfo>
     </xs:annotation>
 </xs:element>
 
Author:
APGAR Consulting