MWF.xDesktop.requireApp("Setting", "servers.DataServers", null, false); MWF.xApplication.Setting.servers = MWF.xApplication.Setting.servers || {}; MWF.xApplication.Setting.servers.CenterServer = new Class({ Extends: MWF.xApplication.Setting.servers.DataServer.Document, Implements: [Events], initialize: function(explorer){ this.explorer = explorer; this.app = this.explorer.app; this.container = this.explorer.centerServerContent; this.css = this.explorer.app.css; this.load(); }, load: function(){ this.app.actions.getCenterServer(function(json){ this.json = json.data; this.node = new Element("div", {"styles": this.css.centerServerDocumentNode}).inject(this.container); this.createForm(); }.bind(this)); }, createActions: function(){ this.actionNode = new Element("div", {"styles": this.css.applicationServerDocumentActionNode}).inject(this.node); this.saveAction = new Element("div", {"styles": this.css.applicationServerDocumentSaveNode}).inject(this.actionNode); //this.closeAction = new Element("div", {"styles": this.css.applicationServerDocumentCloseNode}).inject(this.actionNode); this.saveAction.addEvents({ "mouseover": function(){this.saveAction.setStyles(this.css.applicationServerDocumentSaveNode_over);}.bind(this), "mouseout": function(){this.saveAction.setStyles(this.css.applicationServerDocumentSaveNode);}.bind(this), "mousedown": function(){this.saveAction.setStyles(this.css.applicationServerDocumentSaveNode_down);}.bind(this), "mouseup": function(){this.saveAction.setStyles(this.css.applicationServerDocumentSaveNode_over);}.bind(this), "click": function(e){this.saveDocument();}.bind(this) }); }, createBaseInfo: function(){ this.inforAreaNode = new Element("div", {"styles": this.css.applicationServerDocumentInforAreaNode}).inject(this.node); this.inforNode = new Element("div", {"styles": this.css.dataServerDocumentInforNode}).inject(this.inforAreaNode); var html = "
| host | |
| port | |
| cipher | |
| proxyHost | |
| proxyPort |