Ext.namespace("Itransition.ChartCrafters.MarketWindow.ux");

Itransition.ChartCrafters.MarketWindow.ux.InformationPanel = Ext.extend(Ext.Panel, {
    autoScroll:true,
    title:'Information',
    border:false,
    
    addInformation : function (description)
    {
        try {
            var infoHtml = '<div class="description">' + description + '</div>';
            this.body.update(infoHtml);
        }
        catch(ex) {
            var html = '<p class="symbolName"><span style="color:red;">N/A</span></p>';
            this.body.update(html);
        }
    },
    
    initComponent : function() {
        Itransition.ChartCrafters.MarketWindow.ux.InformationPanel.superclass.initComponent.apply(this, arguments);
    },
            
    onRender : function() {
        Itransition.ChartCrafters.MarketWindow.ux.InformationPanel.superclass.onRender.apply(this, arguments);
    }
});

Ext.reg('informationpanel', Itransition.ChartCrafters.MarketWindow.ux.InformationPanel);