@ -68613,7 +68613,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
} ]
} ,
value : o . value ,
min Height : 400
max Height : 400
}
} ;
} ,
@ -68692,7 +68692,7 @@ BI.shortcut("bi.multilayer_select_tree_combo", BI.MultiLayerSelectTreeCombo);/**
* @ class BI . MultiLayerSelectLevelTree
* @ extends BI . Select
* /
BI . MultiLayerSelectLevelTree = BI . inherit ( BI . Widget , {
BI . MultiLayerSelectLevelTree = BI . inherit ( BI . Pane , {
_defaultConfig : function ( ) {
return BI . extend ( BI . MultiLayerSelectLevelTree . superclass . _defaultConfig . apply ( this , arguments ) , {
baseCls : "bi-multilayer-select-level-tree" ,
@ -68706,9 +68706,14 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Widget, {
} ,
_init : function ( ) {
var o = this . options ;
BI . MultiLayerSelectLevelTree . superclass . _init . apply ( this , arguments ) ;
this . storeValue = o . value ;
this . initTree ( this . options . items ) ;
this . check ( ) ;
} ,
_formatItems : function ( nodes , layer , pNode ) {
@ -68776,16 +68781,24 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Widget, {
items : this . _formatItems ( BI . Tree . transformToTreeFormat ( nodes ) , 0 ) ,
itemsCreator : function ( op , callback ) {
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loading ( ) ;
} ) ;
o . itemsCreator ( op , function ( ob ) {
hasNext = ob . hasNext ;
self . _populate ( ob . items ) ;
callback ( self . _formatItems ( BI . Tree . transformToTreeFormat ( ob . items ) , op . node ? op . node . layer + 1 : 0 , op . node ) ) ;
self . setValue ( self . storeValue ) ;
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loaded ( ) ;
} ) ;
} ) ;
} ,
value : o . value ,
el : {
type : "bi.loader" ,
isDefaultInit : true ,
isDefaultInit : o . itemsCreator !== BI . emptyFn ,
chooseType : o . chooseType ,
el : {
type : "bi.button_tree" ,
@ -68799,9 +68812,10 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Widget, {
}
}
} ) ;
this . tree . on ( BI . Controller . EVENT _CHANGE , function ( type ) {
this . tree . on ( BI . Controller . EVENT _CHANGE , function ( type , value ) {
self . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) ;
if ( type === BI . Events . CLICK ) {
self . setValue ( value ) ;
self . fireEvent ( BI . MultiLayerSelectLevelTree . EVENT _CHANGE , arguments ) ;
}
} ) ;
@ -68814,16 +68828,22 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Widget, {
} ) ;
} ,
_populate : function ( ) {
BI . MultiLayerSelectLevelTree . superclass . populate . apply ( this , arguments ) ;
} ,
populate : function ( nodes ) {
this . _populate ( nodes ) ;
BI . isNull ( nodes ) ? this . tree . populate ( ) : this . tree . populate ( this . _formatItems ( BI . Tree . transformToTreeFormat ( nodes ) , 0 ) ) ;
} ,
setValue : function ( v ) {
this . storeValue = v ;
this . tree . setValue ( v ) ;
} ,
getValue : function ( ) {
return BI . uniq ( this . tree . getValue ( ) ) ;
return BI . isArray ( this . storeValue ) ? this . storeValue : [ this . storeValue ] ;
} ,
getAllLeaves : function ( ) {
@ -68847,7 +68867,7 @@ BI.shortcut("bi.multilayer_select_level_tree", BI.MultiLayerSelectLevelTree);/**
* @ extends BI . Pane
* /
BI . MultiLayerSelectTreePopup = BI . inherit ( BI . Pane , {
BI . MultiLayerSelectTreePopup = BI . inherit ( BI . Widget , {
_defaultConfig : function ( ) {
return BI . extend ( BI . MultiLayerSelectTreePopup . superclass . _defaultConfig . apply ( this , arguments ) , {
@ -68869,18 +68889,7 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Pane, {
type : "bi.multilayer_select_level_tree" ,
isDefaultInit : o . isDefaultInit ,
items : o . items ,
itemsCreator : function ( op , callback ) {
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loading ( ) ;
} ) ;
o . itemsCreator ( op , function ( ob ) {
self . _populate ( ob . items ) ;
callback ( ob ) ;
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loaded ( ) ;
} ) ;
} ) ;
} ,
itemsCreator : o . itemsCreator ,
keywordGetter : o . keywordGetter ,
value : o . value ,
scrollable : null
@ -68902,12 +68911,6 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Pane, {
this . tree . on ( BI . MultiLayerSelectLevelTree . EVENT _CHANGE , function ( ) {
self . fireEvent ( BI . MultiLayerSelectTreePopup . EVENT _CHANGE ) ;
} ) ;
this . check ( ) ;
} ,
_populate : function ( ) {
BI . MultiLayerSelectTreePopup . superclass . populate . apply ( this , arguments ) ;
} ,
getValue : function ( ) {
@ -68920,7 +68923,6 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Pane, {
} ,
populate : function ( items ) {
this . _populate ( items ) ;
this . tree . populate ( items ) ;
}
} ) ;
@ -69542,7 +69544,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
} ]
} ,
value : o . value ,
min Height : 400
max Height : 400
}
} ;
} ,
@ -69621,7 +69623,7 @@ BI.shortcut("bi.multilayer_single_tree_combo", BI.MultiLayerSingleTreeCombo);/**
* @ class BI . MultiLayerSingleLevelTree
* @ extends BI . Single
* /
BI . MultiLayerSingleLevelTree = BI . inherit ( BI . Widget , {
BI . MultiLayerSingleLevelTree = BI . inherit ( BI . Pane , {
_defaultConfig : function ( ) {
return BI . extend ( BI . MultiLayerSingleLevelTree . superclass . _defaultConfig . apply ( this , arguments ) , {
baseCls : "bi-multilayer-single-level-tree" ,
@ -69638,6 +69640,8 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
BI . MultiLayerSingleLevelTree . superclass . _init . apply ( this , arguments ) ;
this . initTree ( this . options . items ) ;
this . check ( ) ;
} ,
_formatItems : function ( nodes , layer , pNode ) {
@ -69705,15 +69709,23 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
items : this . _formatItems ( BI . Tree . transformToTreeFormat ( nodes ) , 0 ) ,
value : o . value ,
itemsCreator : function ( op , callback ) {
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loading ( ) ;
} ) ;
o . itemsCreator ( op , function ( ob ) {
hasNext = ob . hasNext ;
self . _populate ( ob . items ) ;
callback ( self . _formatItems ( BI . Tree . transformToTreeFormat ( ob . items ) , op . node ? op . node . layer + 1 : 0 , op . node ) ) ;
self . setValue ( self . storeValue ) ;
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loaded ( ) ;
} ) ;
} ) ;
} ,
el : {
type : "bi.loader" ,
isDefaultInit : tru e,
isDefaultInit : fals e,
chooseType : o . chooseType ,
el : {
type : "bi.button_tree" ,
@ -69730,6 +69742,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
this . tree . on ( BI . Controller . EVENT _CHANGE , function ( type , v ) {
self . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) ;
if ( type === BI . Events . CLICK ) {
self . setValue ( v ) ;
self . fireEvent ( BI . MultiLayerSingleLevelTree . EVENT _CHANGE , v ) ;
}
} ) ;
@ -69742,19 +69755,22 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
} ) ;
} ,
_populate : function ( ) {
BI . MultiLayerSelectLevelTree . superclass . populate . apply ( this , arguments ) ;
} ,
populate : function ( nodes ) {
this . _populate ( nodes ) ;
BI . isNull ( nodes ) ? this . tree . populate ( ) : this . tree . populate ( this . _formatItems ( BI . Tree . transformToTreeFormat ( nodes ) , 0 ) ) ;
} ,
setValue : function ( v ) {
this . storeValue = v ;
this . tree . setValue ( v ) ;
} ,
getValue : function ( ) {
return BI . filter ( BI . uniq ( this . tree . getValue ( ) ) , function ( idx , value ) {
return BI . isNotNull ( value ) ;
} ) ;
return BI . isArray ( this . storeValue ) ? this . storeValue : [ this . storeValue ] ;
} ,
getAllLeaves : function ( ) {
@ -69779,7 +69795,7 @@ BI.shortcut("bi.multilayer_single_level_tree", BI.MultiLayerSingleLevelTree);
* @ extends BI . Pane
* /
BI . MultiLayerSingleTreePopup = BI . inherit ( BI . Pane , {
BI . MultiLayerSingleTreePopup = BI . inherit ( BI . Widget , {
_defaultConfig : function ( ) {
return BI . extend ( BI . MultiLayerSingleTreePopup . superclass . _defaultConfig . apply ( this , arguments ) , {
@ -69800,18 +69816,7 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Pane, {
type : "bi.multilayer_single_level_tree" ,
isDefaultInit : o . isDefaultInit ,
items : o . items ,
itemsCreator : function ( op , callback ) {
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loading ( ) ;
} ) ;
o . itemsCreator ( op , function ( ob ) {
self . _populate ( ob . items ) ;
callback ( ob ) ;
( op . times === 1 && ! op . node ) && BI . nextTick ( function ( ) {
self . loaded ( ) ;
} ) ;
} ) ;
} ,
itemsCreator : o . itemsCreator ,
keywordGetter : o . keywordGetter ,
value : o . value ,
scrollable : null
@ -69833,12 +69838,6 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Pane, {
this . tree . on ( BI . MultiLayerSingleLevelTree . EVENT _CHANGE , function ( ) {
self . fireEvent ( BI . MultiLayerSingleTreePopup . EVENT _CHANGE ) ;
} ) ;
this . check ( ) ;
} ,
_populate : function ( ) {
BI . MultiLayerSingleTreePopup . superclass . populate . apply ( this , arguments ) ;
} ,
getValue : function ( ) {
@ -69851,7 +69850,6 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Pane, {
} ,
populate : function ( items ) {
this . _populate ( items ) ;
this . tree . populate ( items ) ;
}
} ) ;