11import Base from '../container/Base.mjs' ;
22import ClassSystemUtil from '../util/ClassSystem.mjs' ;
3- import GroupStore from './store/Groups.mjs' ;
43import ItemStore from './store/Items.mjs' ;
54
65/**
@@ -23,10 +22,6 @@ class Container extends Base {
2322 * @member {String[} cls=['neo-sitemap','neo-container']
2423 */
2524 cls : [ 'neo-sitemap' , 'neo-container' ] ,
26- /*
27- * @member {Neo.sitemap.store.Groups|null} groupStore_=null
28- */
29- groupStore_ : null ,
3025 /*
3126 * @member {Object} itemDefaults
3227 */
@@ -44,26 +39,6 @@ class Container extends Base {
4439 layout : { ntype : 'hbox' , align : 'stretch' }
4540 } }
4641
47- /**
48- * Triggered after the itemStore config got changed
49- * @param {Neo.sitemap.store.Items|null } value
50- * @param {Neo.sitemap.store.Items|null } oldValue
51- * @protected
52- */
53- afterSetGroupStore ( value , oldValue ) {
54- let me = this ;
55-
56- value ?. on ( {
57- filter : 'onGroupStoreFilter' ,
58- load : 'onGroupStoreLoad' ,
59- recordChange : 'onGroupStoreRecordChange' ,
60- sort : 'onGroupStoreSort' ,
61- scope : me
62- } ) ;
63-
64- value ?. getCount ( ) > 0 && me . itemStore . getCount ( ) > 0 && me . createColumns ( ) ;
65- }
66-
6742 /**
6843 * Triggered after the itemStore config got changed
6944 * @param {Neo.sitemap.store.Items|null } value
@@ -80,18 +55,8 @@ class Container extends Base {
8055 sort : 'onItemStoreSort' ,
8156 scope : me
8257 } ) ;
83- }
8458
85- /**
86- * Triggered before the groupStore config gets changed.
87- * @param {Object|Neo.data.Store } value
88- * @param {Object|Neo.data.Store } oldValue
89- * @returns {Neo.data.Store }
90- * @protected
91- */
92- beforeSetGroupStore ( value , oldValue ) {
93- oldValue ?. destroy ( ) ;
94- return ClassSystemUtil . beforeSetInstance ( value , GroupStore ) ;
59+ value ?. getCount ( ) > 0 && me . createColumns ( ) ;
9560 }
9661
9762 /**
@@ -135,34 +100,6 @@ class Container extends Base {
135100 me . items = items ;
136101 }
137102
138- /**
139- *
140- */
141- onGroupStoreFilter ( ) {
142- console . log ( 'onItemStoreFilter' ) ;
143- }
144-
145- /**
146- *
147- */
148- onGroupStoreLoad ( ) {
149- console . log ( 'onItemStoreLoad' ) ;
150- }
151-
152- /**
153- *
154- */
155- onGroupStoreRecordChange ( ) {
156- console . log ( 'onItemStoreRecordChange' ) ;
157- }
158-
159- /**
160- *
161- */
162- onGroupStoreSort ( ) {
163- console . log ( 'onItemStoreSort' ) ;
164- }
165-
166103 /**
167104 *
168105 */
0 commit comments