Ext.namespace('com.domorewithsage.mock');


com.domorewithsage.mock.CustomerListPanel = Ext.extend(Ext.Panel, {

    initComponent : function()
    {
        Ext.apply(this, {
            layout : 'fit',
            items  : new com.domorewithsage.mock.CustomerGrid({
                border : false
            }),
            tbar   : new Ext.Toolbar({
                items : [{
                    text    : 'New Record',
                    iconCls : 'newRecord'
                }, {
                    text    : 'Price List',
                    iconCls : 'priceList'
                }, {
                    text    : 'Activity',
                    iconCls : 'activity'
                }, {
                    text    : 'Aged',
                    iconCls : 'aged'
                }, {
                    text    : 'Invoice',
                    iconCls : 'invoice'
                }, {
                    text    : 'Credit',
                    iconCls : 'credit'
                }, {
                    text    : 'Charges',
                    iconCls : 'charges'
                }, {
                    text    : 'Phone',
                    iconCls : 'phone'
                }, {
                    text    : 'Labels',
                    iconCls : 'labels'
                }]
            }),
            buttons : [{
                text : 'Search'
            }, {
                text : 'Swap'
            }, {
                text : 'Clear'
            }, {
                text : 'Delete'
            }, {
                text : 'Print List'
            }, {
                text     : 'Duplicate',
                disabled : true
            }, {
                text : 'Batch Change',
                disabled : true
            }]
        });

        Ext.applyIf(this, {
            title : 'Customers'
        });

        com.domorewithsage.mock.CustomerListPanel.superclass.initComponent.call(this);
    }


});