forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
800 B
39 lines
800 B
/** |
|
* guy |
|
* 由一个元素切换到另一个元素的行为 |
|
* @class BI.Action |
|
* @extends BI.OB |
|
* @abstract |
|
*/ |
|
BI.Action = BI.inherit(BI.OB, { |
|
_defaultConfig: function () { |
|
return BI.extend(BI.Action.superclass._defaultConfig.apply(this, arguments), { |
|
src: null, |
|
tar: null |
|
}); |
|
}, |
|
|
|
_init: function () { |
|
BI.Action.superclass._init.apply(this, arguments); |
|
}, |
|
|
|
actionPerformed: function (src, tar, callback) { |
|
|
|
}, |
|
|
|
actionBack: function (tar, src, callback) { |
|
|
|
} |
|
}); |
|
|
|
BI.ActionFactory = { |
|
createAction: function (key, options) { |
|
var action; |
|
switch (key) { |
|
case "show": |
|
action = BI.ShowAction; |
|
break; |
|
} |
|
return new action(options); |
|
} |
|
}; |