metamodel.js
来自「xiorkflow工作流源码 是一个java开发的工作流源码」· JavaScript 代码 · 共 70 行
JS
70 行
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) xio.name 2006</p>
* @author xio
*/function MetaModel() { this.base = Observable; this.base(); this.setSelected(false); this.setText("");}MetaModel.prototype = new Observable();MetaModel.prototype.setSelected = function (selected) { if (selected == null) { return; } if (this.selected == selected) { return; } this.selected = selected; this.notifyObservers(MetaModel.SELECTED_CHANGED);};MetaModel.prototype.isSelected = function () { return this.selected;};MetaModel.prototype.suicide = function () { this.notifyObservers(MetaModel.SUICIDE);};//MetaModel.prototype.getID = function () { return this.id;};MetaModel.prototype.setID = function (id) { this.id = id;};//MetaModel.prototype.setText = function (text) { var regEx = /\</g; text = text.replace(regEx, "\uff1c"); regEx = /\>/g; text = text.replace(regEx, "\uff1e"); this.text = text; this.notifyObservers(MetaModel.TEXT_CHANGED);};MetaModel.prototype.getText = function () { return this.text;};//MetaModel.prototype.setEditing = function (editing) { this.editing = editing;};MetaModel.prototype.isEditing = function () { return this.editing;};//MetaModel.SELECTED_CHANGED = "SELECTED_CHANGED";MetaModel.SUICIDE = "META_SUICIDE";MetaModel.TEXT_CHANGED = "TEXT_CHANGED";//MetaModel.TYPE_META = "XIORKFLOW_META";MetaModel.prototype.type = MetaModel.TYPE_META;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?