/*
 * DEXTUploadX5 - DX5IEModule
 * http://www.dextsolution.com
 *
 * Copyright ⓒ DEXTSolution Inc.
 */
var DX5IEModule = function (manager, container, configuration) {   var host = document.createElement("object"); host.id = getIdSharp(configuration.id, false); host.style.width = configuration.width; host.style.height = configuration.height; configuration.style = configuration.style || "report"; configuration.messageXmlUrl = combinePath(configuration.path, "res/dextuploadx5-ax-message" + (configuration.lang ? "-" + escape(configuration.lang) : "") + ".xml"); applyParamToObject(host, "ObjectID", getIdSharp(configuration.id, false)); applyParamToObject(host, "CodePage", configuration.codePage);
applyParamToObject(host, "UseProfile", configuration.useProfile); applyParamToObject(host, "UIStyle", configuration.style); applyParamToObject(host, "MessageXMLURL", configuration.messageXmlUrl); applyParamToObject(host, "EnableDragDrop", configuration.enableDnd); applyParamToObject(host, "EnableDeleteKey", configuration.enableDeleteKey); applyParamToObject(host, "EnableSortColumn", configuration.enableSortColumn); applyParamToObject(host, "SortPriorityVirtualFile", configuration.sortPriorityVirtualFile); applyParamToObject(host, "AutoSortType", configuration.autoSortType);
applyParamToObject(host, "ExtractEXIF", configuration.extractEXIF); applyParamToObject(host, "EnableUploadHiddenItem", configuration.enableUploadHiddenItem); applyParamToObject(host, "OverWriteMode", configuration.overwriteMode.toUpperCase()); applyParamToObject(host, "DownloadHTTPMethod", configuration.downloadHTTPMethod.toUpperCase()); applyParamToObject(host, "ShowGridLine", configuration.showGridLine); applyParamToObject(host, "ShowOnlyTitle", configuration.showOnlyTitle); applyParamToObject(host, "ShowTreeStyle", configuration.showTreeStyle); applyParamToObject(host, "ListShowProgress", configuration.listShowProgress);
applyParamToObject(host, "AutoInsertAfterCompress", configuration.compressAutoInserting.toString()); applyParamToObject(host, "EnsureCompressFile", configuration.compressEnsuringFile.toString()); applyParamToObject(host, "AutoDeleteCompressFile", configuration.compressAutoDeleting.toString()); applyParamToObject(host, "AutoInsertAfterEncryption", configuration.encryptionAutoInserting.toString()); applyParamToObject(host, "EnsureEncryptionFile", configuration.encryptionEnsuringFile.toString()); applyParamToObject(host, "AutoDeleteEncryptionFile", configuration.encryptionAutoDeleting.toString()); applyParamToObject(host, "EnsureDecryptionFile", configuration.decryptionEnsuringFile.toString());
applyParamToObject(host, "EnablePreview", configuration.enablePreview.toString()); applyParamToObject(host, "EnableAutomakeThumbnail", configuration.thumbnailAutoMaking.toString()); applyParamToObject(host, "ThumbnailAutoRatio", configuration.thumbnailAspectRatio.toString()); applyParamToObject(host, "ThumbnailAutoDelete", configuration.thumbnailAutoDeleting.toString()); applyParamToObject(host, "ThumbnailAutoRotate", configuration.thumbnailAutoRotating.toString()); applyParamToObject(host, "LimitFileCount", configuration.limitFileCount.toString()); applyParamToObject(host, "LimitFileSizeMin", configuration.limitFileMinSize.toString());
applyParamToObject(host, "LimitFileSizeMax", configuration.limitFileMaxSize.toString()); applyParamToObject(host, "LimitTotalFileSize", configuration.limitTotalFileSize.toString()); applyParamToObject(host, "LimitCheckInSilence", configuration.filterSilence.toString()); applyParamToObject(host, "PermitDuplicateItem", configuration.duplicable.toString()); if (configuration.splitStr) applyParamToObject(host, "SplitStr", configuration.splitStr); if (configuration.emptyStr) applyParamToObject(host, "EmptyStr", configuration.emptyStr); if (configuration.fileDialogTitle) applyParamToObject(host, "FileDialogTitle", configuration.fileDialogTitle);
if (configuration.folderDialogTitle) applyParamToObject(host, "FolderDialogTitle", configuration.folderDialogTitle); if (configuration.filterWhite) applyParamToObject(host, "FilterWhite", configuration.filterWhite); if (configuration.filterBlack) applyParamToObject(host, "FilterBlack", configuration.filterBlack); if (configuration.limitNetSpeed) applyParamToObject(host, "NetSpeedLimit", configuration.limitNetSpeed.toString()); if (configuration.listUIColorPattern) applyParamToObject(host, "ListUIColorPattern", configuration.listUIColorPattern.toString()); if (configuration.listStatusImagePattern) applyParamToObject(host, "ListStatusImagePattern", configuration.listStatusImagePattern.toString());
if (configuration.progressType) applyParamToObject(host, "UpDownUIType", configuration.progressType.toString()); if (configuration.compressTitle) applyParamToObject(host, "CompressDlgTitle", configuration.compressTitle); if (configuration.compressSavePath) applyParamToObject(host, "CompressSavePath", configuration.compressSavePath); if (configuration.compressFileTitle) applyParamToObject(host, "CompressSaveTitle", configuration.compressFileTitle); if (configuration.compressType) applyParamToObject(host, "CompressType", configuration.compressType); if (configuration.encryptionTitle) applyParamToObject(host, "EncryptionDlgTitle", configuration.encryptionTitle);
if (configuration.encryptionSavePath) applyParamToObject(host, "EncryptionSavePath", configuration.encryptionSavePath); if (configuration.encryptionPrefix) applyParamToObject(host, "EncryptionPrefix", configuration.encryptionPrefix); if (configuration.decryptionTitle) applyParamToObject(host, "DecryptionDlgTitle", configuration.decryptionTitle); if (configuration.decryptionSavePath) applyParamToObject(host, "DecryptionSavePath", configuration.decryptionSavePath);  if (configuration.previewBgColor) applyParamToObject(host, "PreviewBgColor", configuration.previewBgColor);  if (configuration.thumbnailWidth) applyParamToObject(host, "ThumbnailWidth", configuration.thumbnailWidth.toString());
if (configuration.thumbnailHeight) applyParamToObject(host, "ThumbnailHeight", configuration.thumbnailHeight.toString());  if (configuration.thumbnailSavePath) applyParamToObject(host, "ThumbnailSavePath", configuration.thumbnailSavePath); if (configuration.thumbnailPrefix) applyParamToObject(host, "ThumbnailPrevTitle", configuration.thumbnailPrefix); if (configuration.thumbnailFormat) applyParamToObject(host, "ThumbnailImageExt", configuration.thumbnailFormat); if (configuration.tempExecutingPath) applyParamToObject(host, "TempPathForExecute", configuration.tempExecutingPath); if (configuration.headerColorNormalTop) applyParamToObject(host, "ListHeaderColorNormalTop", configuration.headerColorNormalTop);
if (configuration.headerColorNormalBottom) applyParamToObject(host, "ListHeaderColorNormalBottom", configuration.headerColorNormalBottom); if (configuration.headerColorPushTop) applyParamToObject(host, "ListHeaderColorPushTop", configuration.headerColorPushTop); if (configuration.headerColorPushBottom) applyParamToObject(host, "ListHeaderColorPushBottom", configuration.headerColorPushBottom); if (configuration.headerHeight) applyParamToObject(host, "ListHeaderHeight", configuration.headerHeight.toString()); if (configuration.itemHeight) applyParamToObject(host, "ListItemHeight", configuration.itemHeight.toString());
if (configuration.backgroundImageURL) applyParamToObject(host, "ListBkImageURL", configuration.backgroundImageURL); if (configuration.textColor) applyParamToObject(host, "ListCustomTextColor", configuration.textColor); if (configuration.backgroundColor) applyParamToObject(host, "ListCustomBkColor", configuration.backgroundColor); if (configuration.gridLineColor) applyParamToObject(host, "ListGridLineColor", configuration.gridLineColor);   host.classid = "CLSID:A0C72065-9C0A-4570-A4ED-3AB5D4951B20";  
container.appendChild(host);   if (isDefined(window.dialogArguments)) {     if (isDefined(window.attachEvent)) { host.attachEvent("onDX5_AX_Error", window.onDX5_AX_Error); host.attachEvent("onDX5_AX_Created", window.onDX5_AX_Created); host.attachEvent("onDX5_AX_BeforeItemsAdd", window.onDX5_AX_BeforeItemsAdd); host.attachEvent("onDX5_AX_ItemAdding", window.onDX5_AX_ItemAdding); host.attachEvent("onDX5_AX_ItemsAdded", window.onDX5_AX_ItemsAdded); host.attachEvent("onDX5_AX_BeforeItemsDelete", window.onDX5_AX_BeforeItemsDelete); host.attachEvent("onDX5_AX_ItemDeleting", window.onDX5_AX_ItemDeleting);
host.attachEvent("onDX5_AX_ItemsDeleted", window.onDX5_AX_ItemsDeleted); host.attachEvent("onDX5_AX_ItemSelected", window.onDX5_AX_ItemSelected); host.attachEvent("onDX5_AX_ItemChecked", window.onDX5_AX_ItemChecked); host.attachEvent("onDX5_AX_ItemClick", window.onDX5_AX_ItemClick); host.attachEvent("onDX5_AX_ItemDbClick", window.onDX5_AX_ItemDbClick); host.attachEvent("onDX5_AX_UploadBegin", window.onDX5_AX_UploadBegin); host.attachEvent("onDX5_AX_UploadItemStart", window.onDX5_AX_UploadItemStart); host.attachEvent("onDX5_AX_UploadItemEnd", window.onDX5_AX_UploadItemEnd);
host.attachEvent("onDX5_AX_UploadComplete", window.onDX5_AX_UploadComplete); host.attachEvent("onDX5_AX_UploadStop", window.onDX5_AX_UploadStop); host.attachEvent("onDX5_AX_DownloadBegin", window.onDX5_AX_DownloadBegin); host.attachEvent("onDX5_AX_DownloadItemStart", window.onDX5_AX_DownloadItemStart); host.attachEvent("onDX5_AX_DownloadItemEnd", window.onDX5_AX_DownloadItemEnd); host.attachEvent("onDX5_AX_DownloadComplete", window.onDX5_AX_DownloadComplete); host.attachEvent("onDX5_AX_DownloadStop", window.onDX5_AX_DownloadStop); host.attachEvent("onDX5_AX_CompressComplete", window.onDX5_AX_CompressComplete);
host.attachEvent("onDX5_AX_EncryptionComplete", window.onDX5_AX_EncryptionComplete); host.attachEvent("onDX5_AX_DecryptionComplete", window.onDX5_AX_DecryptionComplete); } else { document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_Error(vObjectID, vError)\">window.onDX5_AX_Error(vObjectID, vError);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_Created(vObjectID)\">window.onDX5_AX_Created(vObjectID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_BeforeItemsAdd(vObjectID, vItemCnt)\">window.onDX5_AX_BeforeItemsAdd(vObjectID, vItemCnt);</script>"));
document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemAdding(vObjectID, vItemObj)\">window.onDX5_AX_ItemAdding(vObjectID, vItemObj);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemsAdded(vObjectID, vAddedItemsCnt)\">window.onDX5_AX_ItemsAdded(vObjectID, vAddedItemsCnt);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_BeforeItemsDelete(vObjectID, vItemIds)\">window.onDX5_AX_BeforeItemsDelete(vObjectID, vItemIds);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemDeleting(vObjectID, vItemId)\">window.onDX5_AX_ItemDeleting(vObjectID, vItemId);</script>"));
document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemsDeleted(vObjectID, vItemCnt)\">window.onDX5_AX_ItemsDeleted(vObjectID, vItemCnt);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemSelected(vObjectID, vItemListIndex, vItemUniqID, vItemType)\">window.onDX5_AX_ItemSelected(vObjectID, vItemListIndex, vItemUniqID, vItemType);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemChecked(vObjectID, vItemCnt)\">window.onDX5_AX_ItemChecked(vObjectID, vItemCnt);</script>"));
document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemClick(vObjectID, vItemListIndex, vItemUniqID, vItemType)\">window.onDX5_AX_ItemClick(vObjectID, vItemListIndex, vItemUniqID, vItemType);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_ItemDbClick(vObjectID, vItemListIndex, vItemUniqID, vItemType)\">window.onDX5_AX_ItemDbClick(vObjectID, vItemListIndex, vItemUniqID, vItemType);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_UploadBegin(vObjectID)\">window.onDX5_AX_UploadBegin(vObjectID);</script>"));
document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_UploadItemStart(vObjectID, vItemID)\">window.onDX5_AX_UploadItemStart(vObjectID, vItemID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_UploadItemEnd(vObjectID, vItemID)\">window.onDX5_AX_UploadItemEnd(vObjectID, vItemID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_UploadComplete(vObjectID)\">window.onDX5_AX_UploadComplete(vObjectID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_UploadStop(vObjectID)\">window.onDX5_AX_UploadStop(vObjectID);</script>"));
document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_DownloadBegin(vObjectID)\">window.onDX5_AX_DownloadBegin(vObjectID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_DownloadItemStart(vObjectID, vItemID)\">window.onDX5_AX_DownloadItemStart(vObjectID, vItemID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_DownloadItemEnd(vObjectID, vItemID)\">window.onDX5_AX_DownloadItemEnd(vObjectID, vItemID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_DownloadComplete(vObjectID)\">window.onDX5_AX_DownloadComplete(vObjectID);</script>"));
document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_DownloadStop(vObjectID)\">window.onDX5_AX_DownloadStop(vObjectID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_CompressComplete(vObjectID)\">window.onDX5_AX_CompressComplete(vObjectID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_EncryptionComplete(vObjectID)\">window.onDX5_AX_EncryptionComplete(vObjectID);</script>")); document.head.appendChild(document.createTextNode("<script type=\"text/javascript\" for=\"" + host.id + "\" event=\"onDX5_AX_DecryptionComplete(vObjectID)\">window.onDX5_AX_DecryptionComplete(vObjectID);</script>"));
} } this.manager = manager; this.mode = configuration.mode; this.domObject = host; this.component = null; this.dndObject = null; this.loaded = false; this.lang = configuration.lang; this.progressType = configuration.progressType || "0"; }; var NotSupportedFunctionForIE = function (target) { var dx = target || this; var manager = dx.manager; manager.throwErr(dx ? dx.domObject.id : "undefined", "EX5-11", manager.errs.get("EX5-11", "_Not supported function in DEXTUploadX5 Multi module")); }; DX5IEModule.prototype.enableResumingUpload = NotSupportedFunctionForIE; DX5IEModule.prototype.addFileList = NotSupportedFunctionForIE;
DX5IEModule.prototype.addEntriesForChrome = NotSupportedFunctionForIE; DX5IEModule.prototype.setLimitMultiDownloadSize = NotSupportedFunctionForIE; DX5IEModule.prototype.updateUI = NotSupportedFunctionForIE; DX5IEModule.prototype.getCompressURL = NotSupportedFunctionForIE; DX5IEModule.prototype.setCompressURL = NotSupportedFunctionForIE; DX5IEModule.prototype.downloadCompressed = NotSupportedFunctionForIE; DX5IEModule.prototype.stopCompressWaiting = NotSupportedFunctionForIE; DX5IEModule.prototype.getWithCredentials = NotSupportedFunctionForIE; DX5IEModule.prototype.setWithCredentials = NotSupportedFunctionForIE;
DX5IEModule.prototype.getResourceBundle = NotSupportedFunctionForIE; DX5IEModule.prototype.isUsingProgressDialog = NotSupportedFunctionForIE; DX5IEModule.prototype.isWheelEnabled = NotSupportedFunctionForIE; DX5IEModule.prototype.setWheelEnabled = NotSupportedFunctionForIE; DX5IEModule.prototype.show = NotSupportedFunctionForIE; DX5IEModule.prototype.createColumn = NotSupportedFunctionForIE; DX5IEModule.prototype.deleteColumn = NotSupportedFunctionForIE; DX5IEModule.prototype.setColumnVisible = NotSupportedFunctionForIE; DX5IEModule.prototype.wrapItemForAX = function (origin) {
if (!origin) return undefined; var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0); var ctime = null, mtime = null; if (isIE8) { ctime = new Date(); ctime.setTime(parseInt(origin.cdateStr, 10)); mtime = new Date(); mtime.setTime(parseInt(origin.mdateStr, 10)); } return {   controlId: origin.controlId,   id: origin.id,   vindex: origin.vindex,   type: origin.type,   name: origin.name,   ext: origin.ext,   url: origin.url,   lock: origin.lock,   size: isIE8 ? parseInt(origin.sizeStr, 10) : origin.size,  
cdate: isIE8 ? ctime : origin.cdate,   mdate: isIE8 ? mtime : origin.mdate,   status: origin.status,   eventUriStart: origin.eventUriStart, eventUriStop: origin.eventUriStop, eventUriEnd: origin.eventUriEnd,   path: origin.path, middlePath: origin.middlePath, imageWidth: origin.imageWidth, imageHeight: origin.imageHeight, exif: origin.exif,   chunkSize: origin.chunkSize,   hdTitle: origin.hdTitle }; }; DX5IEModule.prototype.allowHiddenFile = function (allow) { this.component.allowHiddenFile(allow); }; DX5IEModule.prototype.getVersion = function () { return this.component.getVersion(); };
DX5IEModule.prototype.getSplitString = function () { return this.component.getSplitString(); }; DX5IEModule.prototype.setSplitString = function (str) { this.component.setSplitString(str); }; DX5IEModule.prototype.getEmptyString = function () { return this.component.getEmptyString(); }; DX5IEModule.prototype.setEmptyString = function (str) { this.component.setEmptyString(str); }; DX5IEModule.prototype.getAuthkey = function () { return this.component.getAuthkey(); }; DX5IEModule.prototype.setAuthkey = function (key) { this.component.setAuthkey(key); }; DX5IEModule.prototype.getUploadURL = function () { return this.component.getUploadURL(); };
DX5IEModule.prototype.setUploadURL = function (url) { this.component.setUploadURL(url); }; DX5IEModule.prototype.getUploadMode = function () { return this.component.getUploadMode(); }; DX5IEModule.prototype.setUploadMode = function (mode) { this.component.setUploadMode(mode); }; DX5IEModule.prototype.setUploadBlockSize = function (size) { this.component.setUploadBlockSize(size); }; DX5IEModule.prototype.openFileDialog = function () { return this.component.openFileDialog(); }; DX5IEModule.prototype.openFolderDialog = function () { return this.component.openFolderDialog(); }; DX5IEModule.prototype.addVirtualFile = function (vf) {
  this.component.addVirtualFile(vf.vindex || "", vf.name || "", vf.url || "", vf.folder || "", vf.size || -1, vf.lock || false, vf.checked || false, vf.eventUriStart || "", vf.eventUriStop || "", vf.eventUriEnd || "", vf.chunkSize || -1, vf.hdTitle || ""); }; DX5IEModule.prototype.addVirtualFileList = function (vfs) { for (var i = 0, len = vfs.length; i < len; i++) { this.addVirtualFile(vfs[i]); } }; DX5IEModule.prototype.getEnableDnd = function () { return this.component.getEnableDragDrop(); }; DX5IEModule.prototype.setEnableDnd = function (enable) { this.component.setEnableDragDrop(enable); };
DX5IEModule.prototype.setFilterSilence = function (enable) { this.component.setLimitCheckInSilence(enable); }; DX5IEModule.prototype.getMaxFileCount = function () { return this.component.getMaxFileCount(); }; DX5IEModule.prototype.setMaxFileCount = function (count, withVF) { this.component.setMaxFileCount(count, withVF); }; DX5IEModule.prototype.getMinFileSize = function () { var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0); return isIE8 ? parseInt(this.component.getMaxFileSizeMinStr(), 10) : this.component.getMaxFileSizeMin(); };
DX5IEModule.prototype.setMinFileSize = function (size) { this.component.setMaxFileSizeMin(size); }; DX5IEModule.prototype.getMaxFileSize = function () { var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0); return isIE8 ? parseInt(this.component.getMaxFileSizeMaxStr(), 10) : this.component.getMaxFileSizeMax(); }; DX5IEModule.prototype.setMaxFileSize = function (size) { this.component.setMaxFileSizeMax(size); }; DX5IEModule.prototype.getMaxTotalSize = function () { var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0);
return isIE8 ? parseInt(this.component.getMaxTotalSizeStr(), 10) : this.component.getMaxTotalSize(); }; DX5IEModule.prototype.setMaxTotalSize = function (tsize, withVF) { this.component.setMaxTotalSize(tsize, withVF); }; DX5IEModule.prototype.getExtensionFilter = function (reverse) { return (reverse === true) ? this.component.getFilterBlack() : this.component.getFilterWhite(); }; DX5IEModule.prototype.setExtensionFilter = function (filterString, reverse) { if (reverse === true) this.component.setFilterBlack(filterString); else this.component.setFilterWhite(filterString);
}; DX5IEModule.prototype.isAllowNoExtension = function () { return this.component.getAllowNoExtension(); }; DX5IEModule.prototype.setAllowNoExtension = function (allow) { this.component.setAllowNoExtension(allow); }; DX5IEModule.prototype.clearItems = function (flag) { this.component.clearItems(flag); }; DX5IEModule.prototype.getTotalItemCount = function (onlyLocal) { return this.component.getTotalItemCount(onlyLocal); }; DX5IEModule.prototype.getTotalFileSize = function (onlyLocal) { var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0); return isIE8 ? parseInt(this.component.getTotalFileSizeStr(onlyLocal), 10) : this.component.getTotalFileSize(onlyLocal);
}; DX5IEModule.prototype.setUploadableFilesFrom = function (dx) { if (!dx || !dx.getItems) return; var localOriginFiles = dx.component.getItems(true); if (!localOriginFiles || localOriginFiles.length == 0) return; this.component.addItems(localOriginFiles); }; DX5IEModule.prototype.setUploableFilesFrom = function (dx) { this.setUploadableFilesFrom(dx); }; DX5IEModule.prototype.getSelectedItems = function (onlyLocal) { var arr = [], items = this.component.getSelectedItems(onlyLocal); for (var i = 0, len = items.length, t = null; i < len; i++) { t = items.Item(i);
if (onlyLocal === true && t.type == "VIRTUAL") continue; else arr.push(this.wrapItemForAX(t)); } return arr; }; DX5IEModule.prototype.getItemIds = function (onlyLocal) { var arr = [], items = this.component.getItemIds(onlyLocal); for (var i = 0, len = items.length, t = null; i < len; i++) { t = items.Item(i); if (onlyLocal === true && t.type == "VIRTUAL") continue; else arr.push(t); } return arr; }; DX5IEModule.prototype.getSelectedItemIds = function (onlyLocal) { var arr = [], items = this.component.getSelectedItemIds(onlyLocal); for (var i = 0, len = items.length; i < len; i++) {
arr.push(items.Item(i)); } return arr; }; DX5IEModule.prototype.getSelectedIndices = function (onlyLocal) { var arr = [], items = this.component.getSelectedIndices(onlyLocal); for (var i = 0, len = items.length; i < len; i++) { arr.push(items.Item(i)); } return arr; }; DX5IEModule.prototype.getSelectedCount = function (onlyLocal) { return this.component.getSelectedCount(onlyLocal).length; }; DX5IEModule.prototype.getItemById = function (id) { return this.wrapItemForAX(this.component.getItemById(id)); }; DX5IEModule.prototype.getItemByIndex = function (index) { return this.wrapItemForAX(this.component.getItemByIndex(index)); };
DX5IEModule.prototype.getTotalRemovedFileCount = function () { return this.component.getTotalRemovedFileCount(); }; DX5IEModule.prototype.getTotalRemovedFileSize = function () { var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0); return isIE8 ? parseInt(this.component.getTotalRemovedFileSizeStr(), 10) : this.component.getTotalRemovedFileSize(); }; DX5IEModule.prototype.getRemovedFileIds = function () { return this.component.getRemovedFileIds(); }; DX5IEModule.prototype.getRemovedFiles = function () { var arr = [], items = this.component.getRemovedFiles();
for (var i = 0, len = items.length; i < len; i++) { arr.push(this.wrapItemForAX(items.Item(i))); } return arr; }; DX5IEModule.prototype.getRemovedFileById = function (id) { return this.wrapItemForAX(this.component.getRemovedFileById(id)); }; DX5IEModule.prototype.removeById = function (id, perma, fireEvent) { return this.component.removeById(id, perma); }; DX5IEModule.prototype.removeByIndex = function (index, perma, fireEvent) { return this.component.removeByIndex(index, perma); }; DX5IEModule.prototype.removeSelected = function (perma, fireEvent) { return this.component.removeSelected(perma); }; DX5IEModule.prototype.removeAll = function (perma, fireEvent) { return this.component.removeAll(perma); };
DX5IEModule.prototype.removeChecked = function (perma, fireEvent) { return this.component.removeChecked(perma); }; DX5IEModule.prototype.purgeRemovedVirtual = function (id) { this.component.purgeRemovedVirtual(id); }; DX5IEModule.prototype.revokeVirtualFile = function (id) { return this.component.revokeVirtualFile(id); }; DX5IEModule.prototype.revokeAllVirtualFiles = function () { return this.component.revokeAllVirtualFiles(); }; DX5IEModule.prototype.checkAll = function (allOrNot) { this.component.checkAll(allOrNot); }; DX5IEModule.prototype.checkById = function (id, checked) { this.component.checkById(id, checked); };
DX5IEModule.prototype.checkByIndex = function (index, checked) { this.component.checkByIndex(index, checked); }; DX5IEModule.prototype.changeStatus = function (id, status) { this.component.changeStatus(id, status); }; DX5IEModule.prototype.checkDuplication = function (enable) { this.component.setPermitDuplicateItem(enable); }; DX5IEModule.prototype.getMetaDataById = function (id, name) { return this.component.getMetaDataById(id, name); }; DX5IEModule.prototype.getMetaDataByIndex = function (index, name) { return this.component.getMetaDataByIndex(index, name); }; DX5IEModule.prototype.setMetaDataById = function (id, name, value) { return this.component.setMetaDataById(id, name, value); };
DX5IEModule.prototype.setMetaDataByIndex = function (index, name, value) { return this.component.setMetaDataByIndex(index, name, value); }; DX5IEModule.prototype.deleteMetaDataById = function (id, name) { return this.component.deleteMetaDataById(id, name); }; DX5IEModule.prototype.deleteMetaDataByIndex = function (index, name) { return this.component.deleteMetaDataByIndex(index, name); }; DX5IEModule.prototype.getResponses = function (index) { var arr = [], res = this.component.getResponses(); if (typeof (index) != "undefined") { if (index >= 0 && index < res.length) {
return res.Item(index); } else { this.manager.throwErr(this.domObject.id, "EX5-30", "The index of the responses is out of range."); return undefined; } } else { for (var i = 0, len = res.length; i < len; i++) { arr.push(res.Item(i)); } return arr; } }; DX5IEModule.prototype.getUploadStatus = function () { var status = this.component.getUploadStatus();         var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0); return { totalSize: (isIE8 ? parseInt(status.getTotalSizeStr(), 10) : status.getTotalSize()), totalCount: status.getTotalCount(),
totalSendSize: (isIE8 ? parseInt(status.getTotalSendSizeStr(), 10) : status.getTotalSendSize()), completeCount: status.getCompleteCount(), currentName: status.getCurName(), currentSize: (isIE8 ? parseInt(status.getCurSizeStr(), 10) : status.getCurSize()), currentSendSize: (isIE8 ? parseInt(status.getCurSendSizeStr(), 10) : status.getCurSendSize()), totalRate: status.getTotalRate(), totalSpeed: status.getSpeed(), currentRate: status.getCurRate(), currentSpeed: status.getSpeed(),   totalTime: status.getTotalTime(), currentTime: status.getCurTime(),
remainedTotalTime: status.getTotalRemainTime(), remainedCurrentTime: status.getCurRemainTime() }; }; DX5IEModule.prototype.hasUploadableItems = function () { return this.component.hasUploadableItems(); }; DX5IEModule.prototype.upload = function (flag) { this.component.uploadStart(flag); }; DX5IEModule.prototype.stopUploading = function () { this.component.uploadStop(); }; DX5IEModule.prototype.downloadById = function (id) { this.component.downloadStartById(id); }; DX5IEModule.prototype.download = function (flag, useMD) { this.component.downloadStart(flag); }; DX5IEModule.prototype.stopDownloading = function () { this.component.downloadStop(); };
DX5IEModule.prototype.getFileDialogTitle = function () { return this.component.getFileDialogTitle(); }; DX5IEModule.prototype.setFileDialogTitle = function (title) { this.component.setFileDialogTitle(title); }; DX5IEModule.prototype.getFolderDialogTitle = function () { return this.component.getFolderDialogTitle(); }; DX5IEModule.prototype.setFolderDialogTitle = function (title) { this.component.setFolderDialogTitle(title); }; DX5IEModule.prototype.selectAll = function () { this.component.selectAll(); }; DX5IEModule.prototype.unselectAll = function () { this.component.unselectAll(); };
DX5IEModule.prototype.selectByIndex = function (index) { this.component.selectByIndex(index); }; DX5IEModule.prototype.unselectByIndex = function (index) { this.component.unselectByIndex(index); }; DX5IEModule.prototype.isSelectedByIndex = function (index) { return this.component.isSelectedItem(index); }; DX5IEModule.prototype.getEnableColumnSorting = function () { return this.component.getEnableSortColumn(); }; DX5IEModule.prototype.setEnableColumnSorting = function (enable) { this.component.setEnableSortColumn(enable); }; DX5IEModule.prototype.setSortPriorityVirtualFile = function (enable) { this.component.setSortPriorityVirtualFile(enable); };
DX5IEModule.prototype.getAutoSortingType = function () { return this.component.getAutoSortType(); }; DX5IEModule.prototype.setAutoSortingType = function (stype) { this.component.setAutoSortType(stype); }; DX5IEModule.prototype.sortColumnIndex = function (index, ascending) { this.component.sortIndexColumn(index, ascending); }; DX5IEModule.prototype.moveItemUp = function (index) { this.component.moveUp(index); }; DX5IEModule.prototype.moveItemDown = function (index) { this.component.moveDown(index); }; DX5IEModule.prototype.getDownloadStatus = function () {
var status = this.component.getDownloadStatus();         var isIE8 = (this.manager.browser.isIE == true && navigator.userAgent.indexOf("MSIE 8.0") >= 0); return { totalSize: (isIE8 ? parseInt(status.getTotalSizeStr(), 10) : status.getTotalSize()), totalCount: status.getTotalCount(), totalReceiveSize: (isIE8 ? parseInt(status.getTotalRecvSizeStr(), 10) : status.getTotalRecvSize()), completeCount: status.getCompleteCount(), currentName: status.getCurName(), currentSize: (isIE8 ? parseInt(status.getCurSizeStr(), 10) : status.getCurSize()), currentReceiveSize: (isIE8 ? parseInt(status.getCurRecvSizeStr(), 10) : status.getCurRecvSize()),
totalRate: status.getTotalRate(), totalSpeed: status.getSpeed(), currentRate: status.getCurRate(), currentSpeed: status.getSpeed(),   totalTime: status.getTotalTime(), currentTime: status.getCurTime(), remainedTotalTime: status.getTotalRemainTime(), remainedCurrentTime: status.getCurRemainTime() }; }; DX5IEModule.prototype.getCommonFolderPath = function (title) { return this.component.showSelectFolderPathDlg(title); }; DX5IEModule.prototype.getTotalLocalFileCount = function () { return this.component.getItemCountFile(); }; DX5IEModule.prototype.getTotalLocalFolderCount = function () { return this.component.getItemCountFolder(); };
DX5IEModule.prototype.getTotalVirtualFileCount = function () { return this.component.getItemCountVirtual(); }; DX5IEModule.prototype.openDownloadPathDialog = function () { return this.component.setDownloadPathByDialog(); }; DX5IEModule.prototype.exploreDownloadPath = function () { this.component.exploreDownloadPath(); }; DX5IEModule.prototype.getDownloadPath = function () { return this.component.getDownloadPath(); }; DX5IEModule.prototype.setDownloadPath = function (path) { return this.component.setDownloadPath(path); }; DX5IEModule.prototype.getOverwriteMode = function () { return this.component.getOverWriteMode(); };
DX5IEModule.prototype.setOverwriteMode = function (mode) { return this.component.setOverWriteMode(mode); }; DX5IEModule.prototype.setDownloadPostData = function (index, data) { return this.component.setDownloadPostSendData(index, data); }; DX5IEModule.prototype.getLimitNetSpeed = function () { return this.component.getNetSpeedLimit(); }; DX5IEModule.prototype.setLimitNetSpeed = function (limit) { this.component.setNetSpeedLimit(limit); }; DX5IEModule.prototype.getCompressType = function () { return this.component.getCompressType().toLowerCase(); }; DX5IEModule.prototype.setCompressType = function (ctype) { this.component.setCompressType(ctype.toLowerCase()); };
DX5IEModule.prototype.getCompressDialogTitle = function () { return this.component.getCompressDlgTitle(); }; DX5IEModule.prototype.setCompressDialogTitle = function (title) { this.component.setCompressDlgTitle(title); }; DX5IEModule.prototype.getCompressFileName = function () { return this.component.getCompressSaveTitle(); }; DX5IEModule.prototype.setCompressFileName = function (title) { this.component.setCompressSaveTitle(title); }; DX5IEModule.prototype.getCompressSavePath = function () { return this.component.getCompressSavePath(); }; DX5IEModule.prototype.setCompressSavePath = function (path) { this.component.setCompressSavePath(path); };
DX5IEModule.prototype.isCompressAutoInserting = function () { return this.component.getAutoInsertAfterCompress(); }; DX5IEModule.prototype.setCompressAutoInserting = function (isAuto) { this.component.setAutoInsertAfterCompress(isAuto); }; DX5IEModule.prototype.isCompressEnsuringFile = function () { return this.component.getEnsureCompressFile(); }; DX5IEModule.prototype.setCompressEnsuringFile = function (ensure) { this.component.setEnsureCompressFile(ensure); }; DX5IEModule.prototype.isCompressAutoDeleting = function () { return this.component.getAutoDeleteCompressFile(); }; DX5IEModule.prototype.setCompressAutoDeleting = function (isAuto) { this.component.setAutoDeleteCompressFile(isAuto); };
DX5IEModule.prototype.compress = function (flag) { this.component.startCompress(flag); }; DX5IEModule.prototype.getEncryptionDialogTitle = function () { return this.component.getEncryptionDlgTitle(); }; DX5IEModule.prototype.setEncryptionDialogTitle = function (title) { this.component.setEncryptionDlgTitle(title); }; DX5IEModule.prototype.getEncryptionSavePath = function () { return this.component.getEncryptionSavePath(); }; DX5IEModule.prototype.setEncryptionSavePath = function (path) { this.component.setEncryptionSavePath(path); }; DX5IEModule.prototype.getEncryptionPrefix = function () { return this.component.getEncryptionPrefix(); };
DX5IEModule.prototype.setEncryptionPrefix = function (prefix) { this.component.setEncryptionPrefix(prefix); }; DX5IEModule.prototype.isEncryptionAutoInserting = function () { return this.component.getAutoInsertAfterEncryption(); }; DX5IEModule.prototype.setEncryptionAutoInserting = function (isAuto) { this.component.setAutoInsertAfterEncryption(isAuto); }; DX5IEModule.prototype.isEncryptionEnsuringFile = function () { return this.component.getEnsureEncryptionFile(); }; DX5IEModule.prototype.setEncryptionEnsuringFile = function (ensure) { this.component.setEnsureEncryptionFile(ensure); }; DX5IEModule.prototype.isEncryptionAutoDeleting = function () { return this.component.getAutoDeleteEncryptionFile(); };
DX5IEModule.prototype.setEncryptionAutoDeleting = function (isAuto) { this.component.setAutoDeleteEncryptionFile(isAuto); }; DX5IEModule.prototype.encrypt = function (flag) { this.component.startEncryption(flag); }; DX5IEModule.prototype.getDecryptionDialogTitle = function () { return this.component.getDecryptionDlgTitle(); }; DX5IEModule.prototype.setDecryptionDialogTitle = function (title) { this.component.setDecryptionDlgTitle(title); }; DX5IEModule.prototype.getDecryptionSavePath = function () { return this.component.getDecryptionSavePath(); }; DX5IEModule.prototype.setDecryptionSavePath = function (path) { this.component.setDecryptionSavePath(path); };
DX5IEModule.prototype.isDecryptionEnsuringFile = function () { return this.component.getEnsureDecryptionFile(); }; DX5IEModule.prototype.setDecryptionEnsuringFile = function (ensure) { this.component.setEnsureDecryptionFile(ensure); }; DX5IEModule.prototype.decrypt = function (flag) { this.component.startDecryption(flag); }; DX5IEModule.prototype.isPreviewEnable = function () { return this.component.getEnablePreview(); }; DX5IEModule.prototype.setPreviewEnable = function (enable) { this.component.setEnablePreview(enable); }; DX5IEModule.prototype.getPreviewMethod = function () { return this.component.getPreviewMethod(); };
DX5IEModule.prototype.setPreviewMethod = function (method) { this.component.setPreviewMethod(method); }; DX5IEModule.prototype.preview = function (index) { this.component.previewItem(index); }; DX5IEModule.prototype.getPreviewBackgroundColor = function () { return this.component.getPreviewBgcolor(); }; DX5IEModule.prototype.setPreviewBackgroundColor = function (hexrgb) { this.component.setPreviewBgColor(hexrgb); }; DX5IEModule.prototype.isThumbnailAutoMaking = function () { return this.component.getEnableAutoMakeThumbnail(); }; DX5IEModule.prototype.setThumbnailAutoMaking = function (enable) { this.component.setEnableAutoMakeThumbnail(enable); };
DX5IEModule.prototype.getThumbnailWidth = function () { return this.component.getThumbnailWidth(); }; DX5IEModule.prototype.setThumbnailWidth = function (width) { this.component.setThumbnailWidth(width); }; DX5IEModule.prototype.getThumbnailHeight = function () { return this.component.getThumbnailHeight(); }; DX5IEModule.prototype.setThumbnailHeight = function (height) { this.component.setThumbnailHeight(height); }; DX5IEModule.prototype.isThumbnailAspectRatio = function () { return this.component.getThumbnailAutoRatio(); }; DX5IEModule.prototype.setThumbnailAspectRatio = function (enable) { this.component.setThumbnailAutoRatio(enable); };
DX5IEModule.prototype.isThumbnailAutoDeleting = function () { return this.component.getThumbnailAutoDelete(); }; DX5IEModule.prototype.setThumbnailAutoDeleting = function (enable) { this.component.setThumbnailAutoDelete(enable); }; DX5IEModule.prototype.isThumbnailAutoRotating = function () { return this.component.getThumbnailAutoRotate(); }; DX5IEModule.prototype.setThumbnailAutoRotating = function (enable) { this.component.setThumbnailAutoRotate(enable); }; DX5IEModule.prototype.getThumbnailSavePath = function () { return this.component.getThumbnailSavePath(); }; DX5IEModule.prototype.setThumbnailSavePath = function (path) { return this.component.setThumbnailSavePath(path); };
DX5IEModule.prototype.getThumbnailPrefix = function () { return this.component.getThumbnailPrevTitle(); }; DX5IEModule.prototype.setThumbnailPrefix = function (prefix) { return this.component.setThumbnailPrevTitle(prefix); }; DX5IEModule.prototype.getThumbnailFormat = function () { return this.component.getThumbnailImageExt(); }; DX5IEModule.prototype.setThumbnailFormat = function (format) { return this.component.setThumbnailImageExt(format); }; DX5IEModule.prototype.getThumbnailProvider = function () { return this.component.getSupportThumbnailExtension(); }; DX5IEModule.prototype.getTempPathByExecuting = function () { return this.component.getTempPathForExecute(); };
DX5IEModule.prototype.setTempPathByExecuting = function (path) { return this.component.setTempPathForExecute(path); }; DX5IEModule.prototype.executeItem = function (index, origin, parameter) { this.component.executeItem(index, origin, parameter); }; DX5IEModule.prototype.getCheckedItems = function (onlyLocal) { var items = this.component.getCheckedItems(onlyLocal); var arr = []; for (var i = 0, len = items.length; i < len; i++) { arr.push(this.wrapItemForAX(items.Item(i))); } return arr; }; DX5IEModule.prototype.getCheckedIds = function (onlyLocal) { var items = this.component.getCheckedIds(onlyLocal);
var arr = []; for (var i = 0, len = items.length; i < len; i++) { arr.push(items.Item(i)); } return arr; }; DX5IEModule.prototype.getItemId = function (index) { return this.component.getItemId(index); }; DX5IEModule.prototype.getItemIndex = function (id) { return this.component.getItemIndex(id); }; DX5IEModule.prototype.lockById = function (id) { return this.component.lockById(id); }; DX5IEModule.prototype.lockByIndex = function (index) { return this.component.lockByIndex(index); }; DX5IEModule.prototype.unlockById = function (id) { return this.component.unlockById(id); }; DX5IEModule.prototype.unlockByIndex = function (index) { return this.component.unlockByIndex(index); };
DX5IEModule.prototype.isExtractingEXIF = function () { return this.component.getExtractEXIF(); }; DX5IEModule.prototype.setExtractingEXIF = function (enable) { this.component.setExtractEXIF(enable); }; DX5IEModule.prototype.useProgressDialog = function (enable) { this.component.useProgressDialog(enable); }; DX5IEModule.prototype.getProgressType = function () { return this.component.getUpDownUIType(); }; DX5IEModule.prototype.setProgressType = function (uitype) { this.component.setUpDownUIType(uitype); }; DX5IEModule.prototype.changeLocalFileById = function (id, localPath) { return this.component.itemFileChangeById(id, localPath); };
DX5IEModule.prototype.changeLocalFileByIndex = function (index, localPath) { this.component.itemFileChangeByIndex(index, localPath); }; DX5IEModule.prototype.getSupportClipboard = function () { return this.component.getSupportClipboard(); }; DX5IEModule.prototype.setSupportClipboard = function (enable) { this.component.setSupportClipboard(enable); }; DX5IEModule.prototype.getAutoDeleteClipboardFile = function () { return this.component.getAutoDeleteClipboardFile(); }; DX5IEModule.prototype.setAutoDeleteClipboardFile = function (enable) { this.component.setAutoDeleteClipboardFile(enable); }; DX5IEModule.prototype.getClipboardFilePrefix = function () { return this.component.getClipboardFilePrefix(); };
DX5IEModule.prototype.setClipboardFilePrefix = function (prefix) { this.component.setClipboardFilePrefix(prefix); }; DX5IEModule.prototype.getTempPathForClipboard = function () { return this.component.getTempPathForClipboard(); }; DX5IEModule.prototype.setTempPathForClipboard = function (path) { return this.component.setTempPathForClipboard(path); }; DX5IEModule.prototype.getSupportPHP = function () { return this.component.getSupportPHP(); }; DX5IEModule.prototype.setSupportPHP = function (enable) { this.component.setSupportPHP(enable); }; DX5IEModule.prototype.isFolderDeletionWithSubItems = function () { return this.component.getDeleteSubItemsWithParent(); };
DX5IEModule.prototype.setFolderDeletionWithSubItems = function (enable) { this.component.setDeleteSubItemsWithParent(enable); }; DX5IEModule.prototype.isEnableUseProfile = function () { return this.component.getUseProfile(); }; DX5IEModule.prototype.setEnableUseProfile = function (enable) { this.component.setUseProfile(enable); }; DX5IEModule.prototype.getLayoutStyle = function () { return this.component.getListUIStyle(); }; DX5IEModule.prototype.setLayoutStyle = function (style) { this.component.setListUIStyle(style); }; DX5IEModule.prototype.getShowTreeStyle = function () { return this.component.getShowTreeStyle(); };
DX5IEModule.prototype.setShowTreeStyle = function (enable) { this.component.setShowTreeStyle(enable); }; DX5IEModule.prototype.isBorderVisible = function () { return this.component.getShowBorder(); }; DX5IEModule.prototype.setBorderVisible = function (enable) { this.component.setShowBorder(enable); }; DX5IEModule.prototype.isGridLineVisible = function () { return this.component.getShowGridLine(); }; DX5IEModule.prototype.setGridLineVisible = function (enable) { this.component.setShowGridLine(enable); }; DX5IEModule.prototype.getItemHeight = function () { return this.component.getListItemHeight(); };
DX5IEModule.prototype.setItemHeight = function (height) { return this.component.setListItemHeight(height); }; DX5IEModule.prototype.getHeaderHeight = function () { return this.component.getListHeaderHeight(); }; DX5IEModule.prototype.setHeaderHeight = function (height) { return this.component.setListHeaderHeight(height); }; DX5IEModule.prototype.getHeaderGradientType = function () { return this.component.getListHeaderGradationType(); }; DX5IEModule.prototype.setHeaderGradientType = function (gtype) { this.component.setListHeaderGradationType(gtype); }; DX5IEModule.prototype.getHeaderColorNormalTop = function () { return this.component.getListHeaderColorNormalTop(); };
DX5IEModule.prototype.setHeaderColorNormalTop = function (hexrgb) { this.component.setListHeaderColorNormalTop(hexrgb); }; DX5IEModule.prototype.getHeaderColorNormalBottom = function () { return this.component.getListHeaderColorNormalbottom(); }; DX5IEModule.prototype.setHeaderColorNormalBottom = function (hexrgb) { this.component.setListHeaderColorNormalBottom(hexrgb); }; DX5IEModule.prototype.getHeaderColorPushTop = function () { return this.component.getListHeaderColorPushTop(); }; DX5IEModule.prototype.setHeaderColorPushTop = function (hexrgb) { this.component.setListHeaderColorPushTop(hexrgb); }; DX5IEModule.prototype.getHeaderColorPushBottom = function () { return this.component.getListHeaderColorPushbottom(); };
DX5IEModule.prototype.setHeaderColorPushBottom = function (hexrgb) { this.component.setListHeaderColorPushbottom(hexrgb); }; DX5IEModule.prototype.getBackgroundImageURL = function () { return this.component.getListBkImageURL(); }; DX5IEModule.prototype.setBackgroundImageURL = function (url) { this.component.setListBkImageURL(url); }; DX5IEModule.prototype.getBackgroundImageOffsetX = function () { return this.component.getListBkImageXOffsetPos(); }; DX5IEModule.prototype.setBackgroundImageOffsetX = function (x) { this.component.setListBkImageXOffsetPos(x); }; DX5IEModule.prototype.getBackgroundImageOffsetY = function () { return this.component.getListBkImageYOffsetPos(); };
DX5IEModule.prototype.setBackgroundImageOffsetY = function (y) { this.component.setListBkImageYOffsetPos(y); }; DX5IEModule.prototype.getColorPattern = function () { return this.component.getListUIColorPattern(); }; DX5IEModule.prototype.setColorPattern = function (pattern) { this.component.setListUIColorPattern(pattern); }; DX5IEModule.prototype.getStatusImagePattern = function () { return this.component.getListStatusImagePattern(); }; DX5IEModule.prototype.setStatusImagePattern = function (pattern) { this.component.setListStatusImagePattern(pattern); }; DX5IEModule.prototype.getBackgroundColor = function () { return this.component.getListCustomBkColor(); };
DX5IEModule.prototype.setBackgroundColor = function (hexrgb) { this.component.setListCustomBkColor(hexrgb); }; DX5IEModule.prototype.getGridLineColor = function () { return this.component.getListGridLineColor(); }; DX5IEModule.prototype.setGridLineColor = function (hexrgb) { this.component.setListGridLineColor(hexrgb); }; DX5IEModule.prototype.setBackgroundImage = function (url, x, y) { this.component.setListBkImageURL(url); this.component.setListBkImageXOffsetPos(x); this.component.setListBkImageYOffsetPos(y); };
DX5IEModule.prototype.getHeaderFontName = function () { return this.component.getListHeaderFontName(); }; DX5IEModule.prototype.setHeaderFontName = function (font) { this.component.setListHeaderFontName(font); }; DX5IEModule.prototype.getHeaderFontSize = function () { return this.component.getListHeaderFontSize(); }; DX5IEModule.prototype.setHeaderFontSize = function (size) { this.component.setListHeaderFontSize(size); }; DX5IEModule.prototype.getHeaderFontColor = function () { return this.component.getHeaderTextColor(); }; DX5IEModule.prototype.setHeaderFontColor = function (hexrgb) { return this.component.setHeaderTextColor(hexrgb); };
DX5IEModule.prototype.getItemFontName = function () { return this.component.getListFontName(); }; DX5IEModule.prototype.setItemFontName = function (font) { this.component.setListFontName(font); }; DX5IEModule.prototype.getItemFontSize = function () { return this.component.getListFontSize(); }; DX5IEModule.prototype.setItemFontSize = function (size) { this.component.setListFontSize(size); }; DX5IEModule.prototype.getItemTextColor = function () { return this.component.getListCustomTextColor(); }; DX5IEModule.prototype.setItemFontColor = function (hexrgb) { this.component.setListCustomTextColor(hexrgb); }; DX5IEModule.prototype.getFontName = function () { return this.component.getListFontName(); };
DX5IEModule.prototype.setFontName = function (font) { this.component.setListFontName(font); }; DX5IEModule.prototype.getFontSize = function () { return this.component.getListFontSize(); }; DX5IEModule.prototype.setFontSize = function (size) { this.component.setListFontSize(size); }; DX5IEModule.prototype.getCustomTextColor = function () { return this.component.getListCustomTextColor(); }; DX5IEModule.prototype.setCustomTextColor = function (hexrgb) { this.component.setListCustomTextColor(hexrgb); }; DX5IEModule.prototype.setUIStyle = function (style) {
if (!style) return; if (isDefined(style.colorPattern)) this.setColorPattern(style.colorPattern); if (isDefined(style.imagePattern)) this.setStatusImagePattern(style.imagePattern); if (isDefined(style.borderVisible)) this.setBorderVisible(style.borderVisible === true); if (isDefined(style.gridLineVisible)) this.setGridLineVisible(style.gridLineVisible === true); if (isDefined(style.gridLineColor)) this.setGridLineColor(style.gridLineColor); if (isDefined(style.itemHeight)) this.setItemHeight(style.itemHeight); if (isDefined(style.fontName)) this.setItemFontName(style.fontName);
if (isDefined(style.fontSize)) this.setItemFontSize(style.fontSize); if (isDefined(style.fontColor)) this.setItemFontColor(style.fontColor); if (isDefined(style.headerHeight)) this.setHeaderHeight(style.headerHeight); if (isDefined(style.headerGradientType)) this.setHeaderGradientType(style.headerGradientType); if (isDefined(style.headerFontName)) this.setHeaderFontName(style.headerFontName); if (isDefined(style.headerFontSize)) this.setHeaderFontSize(style.headerFontSize); if (isDefined(style.headerFontColor)) this.setHeaderFontColor(style.headerFontColor); if (isDefined(style.headerColors)) {
var colors = style.headerColors.split(" "), cntop = colors[0], cnbottom, cptop, cpbottom; if (colors.length == 1) { cnbottom = cptop = cpbottom = cntop; } else if (colors.length == 2) { cnbottom = cntop; cptop = cpbottom = colors[1]; } else if (colors.length == 3) { cnbottom = colors[1]; cptop = cpbottom = colors[2]; } else { cnbottom = colors[1]; cptop = colors[2]; cpbottom = colors[3]; } this.setHeaderColorNormalTop(cntop); this.setHeaderColorNormalBottom(cnbottom); this.setHeaderColorPushTop(cptop); this.setHeaderColorPushBottom(cpbottom);
} if (isDefined(style.backgroundColor)) this.setBackgroundColor(style.backgroundColor); if (isDefined(style.backgroundImageURL)) this.setBackgroundImageURL(style.backgroundImageURL); if (isDefined(style.backgroundImageOffset)) { var xy = style.backgroundImageOffset.split(" "), xpos = xy[0], ypos = (xy.length == 1 ? xpos : xy[1]); this.setBackgroundImageOffsetX(xpos); this.setBackgroundImageOffsetY(ypos); } if (isDefined(style.backgroundImage)) { var background = style.backgroundImage.split(" "), url, x, y; url = background[0];
if (background.length == 1) x = y = parseInt(0, 10); if (background.length == 2) x = y = parseInt(background[1], 10); if (background.length >= 3) x = parseInt(background[1], 10), y = parseInt(background[1], 10); this.setBackgroundImage(url, x, y); } }; DX5IEModule.prototype.downloadByIdToHD = function (id, duplicated) { var manager = this.manager, errs = manager.errs; var item = this.getItemById(id); if (item) { if (item.type != "VIRTUAL") { manager.throwErr(this.domObject.id, "EX5-20", errs.get("EX5-20", "_The virtual file is only permitted to download.")); } else if (!item.downUrl) {
manager.throwErr(this.domObject.id, "EX5-21", errs.get("EX5-21", "_The target path of downloading is not set.")); } else { var self = this, hd = manager.hdManager; hd.exeHD(self, function () { hd.transferToHD(self, [item], duplicated); }); } }  }; DX5IEModule.prototype.downloadToHD = function (flag, duplicated) { var manager = this.manager, errs = manager.errs;     if (!isDefined(flag)) { flag = "AUTO"; } else if (["AUTO", "CHECKED", "SELECTED"].indexOf(flag.toUpperCase()) == -1) { manager.throwErr(this.domObject.id, "EX5-22", errs.get("EX5-22", "_Choose one flag of 'AUTO, CHECKED, SELECTED.")); return;
} else { flag = flag.toUpperCase(); }   var temp = null; if (flag === "AUTO") temp = this.getItems(); else if (flag === "CHECKED") temp = this.getCheckedItems(); else if (flag === "SELECTED") temp = this.getSelectedItems(); var arr = [];   for (var i = 0, len = temp.length; i < len; i++) { if (temp[i].type && temp[i].type === "VIRTUAL" && (temp[i].downUrl || temp[i].url)) { arr.push(temp[i]); } } if (arr.length == 0) {   manager.throwErr(this.domObject.id, "EX5-18", errs.get("EX5-18", "_There is no item for downloading.")); } else {
var self = this, hd = manager.hdManager; hd.exeHD(self, function () { hd.transferToHD(self, arr, duplicated); }); } }; DX5IEModule.prototype.openDownloadPathDialogOfHD = function (success) { var self = this; var hd = self.manager.hdManager; hd.exeHD(self, function () { hd.askDownPathOfHD(self, success); }); }; DX5IEModule.prototype.getDownloadPathOfHD = function (success) { var self = this; var hd = self.manager.hdManager; hd.exeHD(self, function () { hd.getDownPathOfHD(self, success); }); }; DX5IEModule.prototype.setDownloadPathOfHD = function (path, success) { var self = this;
var hd = self.manager.hdManager; hd.exeHD(self, function () { hd.setDownPathOfHD(self, path, success); }); }; DX5IEModule.prototype.isUsingHDWhenSingle = function () { return this.component.isUsingHDWhenSingle(); }; DX5IEModule.prototype.setUsingHDWhenSingle = function (enable) { this.component.setUsingHDWhenSingle(enable); }; DX5IEModule.prototype.getCustomHeader = function (name) { return this.component.getCustomHeader(name); }; DX5IEModule.prototype.setCustomHeader = function (name, value) { this.component.setCustomHeader(name, value); }; DX5IEModule.prototype.removeCustomHeader = function (name) { this.component.removeCustomHeader(name); };
DX5IEModule.prototype.getTotalCustomHeaders = function (separator) { if (typeof separator == "undefined") return this.component.getTotalCustomHeaders(); else return this.component.getTotalCustomHeaders(separator); }; DX5IEModule.prototype.getOptionsOfHD = function (success) { var self = this, hd = self.manager.hdManager; hd.exeHD(self, function () { hd.getEnvHD(self, success); }); }; DX5IEModule.prototype.setOptionsOfHD = function (env, success) { var self = this, hd = self.manager.hdManager; hd.exeHD(self, function () { hd.setEnvHD(self, env, success);
}); }; DX5IEModule.prototype.setAutoActivationOptionOfHD = function (enable, success) { var self = this, manager = self.manager, errs = manager.errs; if (typeof enable != "boolean") { manager.throwErr(self.domObject.id, "EX5-23", errs.get("EX5-23", "_The 'enable' parameter should be set to a value of Boolean type.")); } else { var hd = manager.hdManager; hd.exeHD(self, function () { hd.setEnvHD(self, { autoActivation: enable }, success); }); } }; DX5IEModule.prototype.setAutoDownloadOptionOfHD = function (enable, success) { var self = this, manager = self.manager, errs = manager.errs;
if (typeof enable != "boolean") { manager.throwErr(self.domObject.id, "EX5-23", errs.get("EX5-23", "_The 'enable' parameter should be set to a value of Boolean type.")); } else { var hd = manager.hdManager; hd.exeHD(self, function () { hd.setEnvHD(self, { autoDownload: enable }, success); }); } }; DX5IEModule.prototype.setDeleteTemporaryOptionOfHD = function (enable, success) { var self = this, manager = self.manager, errs = manager.errs; if (typeof enable != "boolean") { manager.throwErr(self.domObject.id, "EX5-23", errs.get("EX5-23", "_The 'enable' parameter should be set to a value of Boolean type.")); } else {
var self = this; var hd = manager.hdManager; hd.exeHD(self, function () { hd.setEnvHD(self, { deleteTemporary: enable }, success); }); } }; DX5IEModule.prototype.setResumeDownloadOptionOfHD = function (enable, success) { var self = this, manager = self.manager, errs = manager.errs; if (typeof enable != "boolean") { manager.throwErr(self.domObject.id, "EX5-23", errs.get("EX5-23", "_The 'enable' parameter should be set to a value of Boolean type.")); } else { var hd = manager.hdManager; hd.exeHD(self, function () { hd.setEnvHD(self, { resumeDownload: enable }, success);
}); } }; DX5IEModule.prototype.setSaveStatusOptionOfHD = function (value, success) { var self = this, manager = self.manager, errs = manager.errs; if (typeof value === "number" && (value >= 0 && value <= 15)) { var hd = manager.hdManager; hd.exeHD(self, function () { hd.setEnvHD(self, { saveStatus: value }, success); }); } else { manager.throwErr(self.domObject.id, "EX5-24", errs.get("EX5-24", "_The 'value' parameter should be one of '0 ~ 15'.")); } }; DX5IEModule.prototype.getItems = function (flag) {  
var arr = [], items = isDefined(flag) ? this.component.getItems(flag) : this.component.getItems(false); for (var i = 0, len = items.length; i < len; i++) { arr.push(this.wrapItemForAX(items.Item(i))); } return arr; }; DX5IEModule.prototype.changeToVirtualFile = function (id, url) { this.component.changeToVirtualFile(id, url); }; DX5IEModule.prototype.load = function (waitTime, success, fail) { (function loadLazily(module, delay) { var version = ""; try {     module.dndObject = module.component = module.domObject; version = module.component.getVersion();
} catch (e) { version = ""; } if (version) { if (typeof success === "function") { success(version); } } else if (delay < waitTime) { setTimeout(function () { loadLazily(module, delay + 100); }, 100); } else { if (typeof fail === "function") { fail(); } } })(this, 0); }; 