45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
|
Ext.namespace('Zarafa.plugins.mdm.ui');
|
||
|
|
||
|
/**
|
||
|
* @class Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel
|
||
|
* @extends Zarafa.hierarchy.ui.Tree
|
||
|
* @xtype mdm.hierarchytree
|
||
|
*
|
||
|
* MDMHierarchyTreePanel for hierachy list in the
|
||
|
* {@link Zarafa.plugins.mdm.dialogs.MDMManageSharedFolderPanel manageSharedFolderPanel}.
|
||
|
*/
|
||
|
Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel = Ext.extend(Zarafa.hierarchy.ui.Tree, {
|
||
|
|
||
|
/**
|
||
|
* @constructor
|
||
|
* @param {Object} config Configuration object
|
||
|
*/
|
||
|
constructor : function(config)
|
||
|
{
|
||
|
Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel.superclass.constructor.call(this, config);
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* Function will initialize {@link Zarafa.hierarchy.ui.Tree Tree} and creates a
|
||
|
* {@link Zarafa.common.ui.LoadMask} if {@link Zarafa.hierarchy.ui.Tree Tree} is intantiated as full tree.
|
||
|
* @protected
|
||
|
*/
|
||
|
initComponent : function()
|
||
|
{
|
||
|
// Intialize the loader
|
||
|
if (!this.loader) {
|
||
|
this.loader = new Zarafa.plugins.mdm.data.MDMHierarchyTreeLoader({
|
||
|
tree : this,
|
||
|
store : this.store,
|
||
|
nodeConfig : this.nodeConfig,
|
||
|
deferredLoading : this.deferredLoading
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// call parent
|
||
|
Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel.superclass.initComponent.apply(this, arguments);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
Ext.reg('mdm.hierarchytree', Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel);
|