PDA

View Full Version : problem with inheritance



slmbakop
17 Mar 2011, 1:19 AM
please for my english.
i created a class which extends another class.
like this :
var myScreen = Ext.util;

myScreen.Screen = function(config){
this.config = config || {};
};

myScreen.Screen.prototype = {



doLayout:function(){},

render:function(){
Ext._QuickTips2.init();
this.view = new Ext.viewport({
layout:'border',
title:'viewport',
items:[{
region:'north',
title:'le nord',
xtype:'panel'
}]
});
}
};

and

var tabOp = Ext.util;

tabOp.screens._TableauOperationnel = Ext.extend(Ext.util.Screen,{
initComponent:function(config){
tabOp.screens._Tab.superclass.constructor.call(this);

},

view : null,

render : function()
{
this.view = new Ext.Viewport({
layout:'border',
items:[
{
region:'north',
collapsible:true,
xtype:'panel',
title:'My panel'
},
{
region:'center',
closeOnTab:false,
alwaysShowTabs:true,
titlebar:true,
title:"center"
}
]
});
},

I use tapOp which extends myScreen to display.
could you help me.