/**
* Project : AMDA-NG
* Name : UploadUI.js
* @class amdaUI.UploadUI
* @extends Ext.container.Container
* @brief Upload Module UI definition (View)
* @author Elena
* @version $Id: UploadUI.js 2831 2015-03-26 10:33:42Z elena $
*/
Ext.define('amdaUI.UploadUI', {
extend: 'Ext.container.Container',
alias: 'widget.panelTabUpload',
requires: [
'amdaUI.UploadPanelUI'
],
constructor: function(config) {
this.init(config);
this.callParent(arguments);
},
init : function(config) {
var myConf = {
layout: 'border',
items: [ {
xtype: 'tabpanel',
region: 'center',
activeTab : 0,
items :
[
{ xtype: 'panelUpload', panelType : 'file'},
{ xtype: 'panelUpload', panelType : 'timetable'}
]
},
{
xtype: 'panel',
region: 'south',
title: 'Information',
collapsible: true,
height: 100,
autoHide: false,
iconCls: 'icon-information',
html: 'Select local or remote file (time table) to upload
File size is limited to '
+ myDesktopApp.MAX_UPLOADED_FILE_SIZE/1000000+'MB
Milliseconds are ignored for the moment',
autoScroll : true,
loader: {}
}
]
};
Ext.apply (this, Ext.apply(arguments, myConf));
},
forceUpload : function(url,format) {
//this.setDisabled(true);
this.items.items[0].items.items[0].forceUpload(url,format);
//this.setDisabled(false);
}
});