类 Upload


  • public class Upload
    extends Object
    文件上传组件,可以支持多个文件的上传,可以显示已上传的多个文件
    作者:
    周俊辉
    • 字段详细资料

      • supportedLocales

        @InjectService("locales")
        protected ISupportedLocales supportedLocales
      • support

        @Inject
        protected org.apache.tapestry5.services.javascript.JavaScriptSupport support
      • resources

        @Inject
        protected org.apache.tapestry5.ComponentResources resources
      • messages

        @Inject
        protected org.apache.tapestry5.commons.Messages messages
      • javaScriptSupport

        @Environmental
        protected org.apache.tapestry5.services.javascript.JavaScriptSupport javaScriptSupport
    • 构造器详细资料

      • Upload

        public Upload()
    • 方法详细资料

      • getFixfieldname

        public String getFixfieldname()
      • getUrlKey

        public String getUrlKey()
      • getFiletag

        public String getFiletag()
      • getInitFiles

        public FilesBean[] getInitFiles()
      • onUploadFile

        public org.apache.tapestry5.StreamResponse onUploadFile​(String filePath,
                                                                String remoteUrlKey)
        参数:
        filePath -
        remoteUrlKey - 它的数据来自url参数
        返回:
      • getUploadFileLink

        public org.apache.tapestry5.http.Link getUploadFileLink​(String filePath)
      • getUploadFileUrl

        public String getUploadFileUrl()
        返回前台做为js的url变量
        返回:
      • getInitFileId

        public String getInitFileId()
      • getName

        public String getName()
        得到name属性
        返回:
      • getNameFile

        public String getNameFile()
      • getId

        public String getId()
        得到id
        返回: