2 * @class Ext.org.AlbumTree
3 * @extends Ext.tree.Panel
6 * This class implements the "My Albums" tree. In addition, this class provides the ability
7 * to add new albums and accept dropped items from the {@link Ext.org.ImageView}.
9 Ext.define('Ext.org.AlbumTree', {
10 extend: 'Ext.tree.Panel',
11 alias : 'widget.albumtree',
19 ddGroup: 'organizerDD',
20 ptype : 'treeviewdragdrop'
26 initComponent: function() {
34 handler: this.addAlbum
38 this.store = Ext.create('Ext.data.TreeStore', {
59 * Adds a new album node to the root
61 addAlbum: function() {
62 var root = this.store.getRootNode();
66 name: 'Album ' + this.count,