1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
- MWF.xDesktop.requireApp("process.FormDesigner", "Module.$Input", null, false);
- MWF.xApplication.process.FormDesigner.Module.Combox = MWF.FCCombox = new Class({
- Extends: MWF.FC$Input,
- Implements: [Options, Events],
- options: {
- "style": "default",
- "type": "combox",
- "path": "../x_component_process_FormDesigner/Module/Combox/",
- "propertyPath": "../x_component_process_FormDesigner/Module/Combox/combox.html"
- },
- _preprocessingModuleData: function(){
- this.node.clearStyles();
- this.recoveryIconNode = this.node.getFirst();
- this.recoveryIconNode.dispose();
- this.recoveryTextNode = this.node.getFirst();
- this.recoveryTextNode.dispose();
- if (this.json.styles){
- this.json.recoveryStyles = Object.clone(this.json.styles);
- if (this.json.recoveryStyles) Object.each(this.json.recoveryStyles, function(value, key){
- if ((value.indexOf("x_processplatform_assemble_surface")==-1 && value.indexOf("x_portal_assemble_surface")==-1)){
- this.node.setStyle(key, value);
- delete this.json.styles[key];
- }
- }.bind(this));
- }
- this.json.preprocessing = "y";
- },
- _recoveryModuleData: function(){
- if (this.json.recoveryStyles) this.json.styles = this.json.recoveryStyles;
- if (this.json.recoveryInputStyles) this.json.inputStyles = this.json.recoveryInputStyles;
- if (this.recoveryTextNode) {
- this.node.empty();
- this.recoveryTextNode.inject(this.node, "top");
- }
- if (this.recoveryIconNode) {
- this.recoveryIconNode.inject(this.node, "top");
- }
- this.json.recoveryStyles = null;
- this.json.recoveryInputStyles = null;
- this.recoveryIconNode = null;
- this.recoveryTextNode = null;
- },
- });
|