code
stringlengths
1
2.08M
language
stringclasses
1 value
_package("alz.core"); _import("alz.core.ManagerBase"); _import("alz.core.Plugin"); /** * 插件管理者(面向WebRuntime,Application) */ _class("PluginManager", ManagerBase, function(){ this._init = function(){ _super._init.call(this); this._plugins = {}; }; /* this.create = function(context){ _super.create.apply(this...
JavaScript
_package("alz.core"); /** * 事件基类 */ _class("EventBase", "", function(){ this._init = function(type, data){ _super._init.call(this); this._type = type || ""; if(data){ for(var k in data){ this[k] = data[k]; } } }; this.getType = function(){ return this._type; }; });
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); /** * 产品配置信息管理者类 */ _class("ProductManager", Plugin, function(){ this._init = function(){ _super._init.call(this); /** * 产品配置数据 * { * name: "sinamail-5.0", //产品名称 * tpl: [], //模板 * skin: [], //皮肤 * paper: [] //信纸 * } */ th...
JavaScript
_package("alz.core"); /** * 管理者基类 */ _class("ManagerBase", "", function(){ this._init = function(){ _super._init.call(this); this._context = null; this._hash = {}; this._list = []; }; this.create = function(context){ this._context = context; }; this.dispose = function(){ if(this._disposed) return; ...
JavaScript
_package("alz.core"); _class("BoxElement", "", function(){ //BoxElement._all_ = []; this._init = function(el, parent){ _super._init.call(this); this._win = window; this._doc = document; this._parent = parent || null; this._self = null; this._nodes = []; this._style = {}; this.__style = null; //DOM元素...
JavaScript
_package("alz.core"); _import("alz.core.EventTarget"); _import("alz.core.Plugin"); /** * 全局事件管理者 */ _class("EventManager", Plugin, function(){ this._init = function(){ _super._init.call(this); }; /** * 给组件内的DOM元素或子组件添加事件 * @param {HTMLElement|EventTarget} obj 要添加事件的对象 * @param {String} type 事件类型 * @par...
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); _import("alz.core.AnimateData"); /** * 由陈超群同学提供,参考部分jQuery,madrobby/emile源码,整合Easing效果库 * * 动画引擎 animate 动画效果模块(插件) * 动画组件,使元素可以产生动画效果 * * TO:CSS3支持,rotate旋转支持,目前还没有实现如jquery的队列机制,同时执行好几个动画会有问题 */ _class("AnimationEngine", Plugin, function(){ this._init = func...
JavaScript
_package("alz.core"); _import("alz.core.EventTarget"); /** * JS文件加载器 */ _class("ScriptLoader", EventTarget, function(){ this._init = function(){ _super._init.call(this); this._event = runtime.ie ? "onreadystatechange" : "onload"; this._scripts = []; this._agent = null; this._func = null; this._urls = n...
JavaScript
_package("alz.core"); /** * 使用IFRAME工作的json数据加载器 */ _class("IframeLoader", "", function(){ this._init = function(){ _super._init.call(this); this._event = runtime.ie ? "onreadystatechange" : "onload"; this._win = window; this._doc = this._win.document; this._self = null; this._name = ""; this.loaded =...
JavaScript
_package("alz.core"); _class("BoxElement", "", function(){ this._init = function(el, dom){ _super._init.call(this); this._dom = dom; this._self = null; this.init(el); }; this.init = function(obj){ obj.__ptr__ = this; this._self = obj; //chrome,safari下marginRight等属性会自动变化,所以使用缓存,不再重新获取 var sc = runtim...
JavaScript
_package("alz.core"); _import("alz.core.ScriptLoader"); /** * FileLoader * 文件加载引擎,使用script或者link加载js和css文件 * 其中js文件的种类包括(conf,lib,tpl) */ _class("LibLoader", "", function(){ this._init = function(){ _super._init.call(this); this._libs = []; this._fileExt = ".js"; //库文件默认的后缀名 this._codeProvider = ""; t...
JavaScript
_package("alz.core"); _import("alz.core.Task"); _import("alz.core.Plugin"); /** * 任务调度器 * 单个JS操作花费的总时间(最大值)不应该超过100毫秒。——摘自《高性能JavaScript》 */ _class("TaskSchedule", Plugin, function(){ this._init = function(){ _super._init.call(this); this._status = "free"; //调度循环的状态(free|planned|running) this._tid = 1; ...
JavaScript
_package("alz.core"); /** * 系统服务基类 */ _class("ServiceBase", "", function(){ this._init = function(){ _super._init.call(this); }; this.dispose = function(){ _super.dispose.apply(this); }; });
JavaScript
_package("alz.core"); _import("alz.core.ActionManager"); _extension("Application", function(){ //注册 Application 扩展(action) this._init = function(){ this._actionManager = null; }; this.init = function(){ this._actionManager = new ActionManager(); this._actionManager.init(); }; this.dispose = function(){ ...
JavaScript
_package("alz.core"); _import("alz.core.EventBase"); /** * 数据变化事件 */ _class("DataChangeEvent", EventBase, function(){ this._init = function(act, data){ _super._init.call(this); this._type = "dataChange"; this.act = act; this.data = data; }; });
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); _import("alz.core.LibLoader"); _import("alz.core.Application"); /** * 应用管理者 */ _class("AppManager", Plugin, function(){ this._init = function(){ _super._init.call(this); this._confList = {}; //APP配置数据 this._activeAppName = ""; this._activeAppConf = null; ...
JavaScript
_package("alz.core"); /** * 一个元素的一个动画效果代理 */ _class("Animate", "", function(){ this.props = ("backgroundColor borderBottomColor borderBottomWidth borderLeftColor borderLeftWidth " + "borderRightColor borderRightWidth borderSpacing borderTopColor borderTopWidth bottom color fontSize " + "fontWeight height left l...
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); _import("alz.template.TemplateObject"); /** * 标签库 */ _class("TagLib", Plugin, function(){ this._init = function(){ _super._init.call(this); this._hash = {}; }; this.create = function(name, app){ _super.create.apply(this, arguments); }; this.dispose = func...
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); _class("DataModel", Plugin, function(){ this._init = function(){ _super._init.call(this); this._app = null; this._path = ""; //[TODO]针对联系人按照手机号码建立一个hash映射 this._models = {}; //数据模型对象,所有数据模型的哈希表 this._hash = {}; //model_conf哈希存储 this._conf = null; //键...
JavaScript
_package("alz.core"); _import("alz.core.EventTarget"); /** * 针对Application的插件基类 */ _class("Plugin", EventTarget, function(){ this._init = function(){ _super._init.call(this); this._app = null; //插件所属的应用(Application)或管理者{PluginManager} this._id = ""; //插件的名字(ID标识) }; this.create = function(id, app){ ...
JavaScript
_package("alz.core"); /** * @class EventTarget * @extends alz.lang.AObject * @desc DOM事件模型 DOM Event Model 《Document Object Model (DOM) Level 2 Events Specification》 http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113 * @example var _dom = new DOMUtil(); */ _class("EventTarget", "", function(){ this._in...
JavaScript
_package("alz.core"); _import("alz.core.EventTarget"); _import("alz.core.DataChangeEvent"); /** * 数据表索引对象 */ _class("TableIndex", EventTarget, function(){ this._init = function(){ _super._init.call(this); this._table = null; //所属数据表 this._pkey = ""; //表的主键 this._asc = "+"; //排序顺序(+:正序,-:逆序) this._k...
JavaScript
_package("alz.core"); _class("ActionElementFactory", "", function(){ });
JavaScript
_package("alz.core"); /** * 状态按钮分组 */ _class("ToggleGroup", "", function(){ this._init = function(){ _super._init.call(this); this._buttons = []; this._activeButton = null; }; this.append = function(btn){ this._buttons.push(btn); }; this.toggle = function(v){ if(this._activeButton == v){ if(this._a...
JavaScript
_package("alz.core"); _import("alz.core.ManagerBase"); _class("LibManager", ManagerBase, function(){ this._init = function(){ _super._init.call(this); this._hash = {}; this._libs = []; this._libExt = ".lib.js"; //库文件默认的后缀名 }; //this.create = function(context){_super.create.apply(this, arguments);}; this....
JavaScript
_package("alz.core"); /** * 自定义事件类 */ _class("CustomEvent", "", function(){ function Subscriber(){this._init.apply(this, arguments);} (function(){ this._init = function(fn, obj, overrideContext){ this.fn = fn; this.obj = typeof obj == "undefined" ? null : obj; this.overrideContext = overrideContext; }...
JavaScript
_package("alz.core"); /** * 一个任务对象 * 一个任务的状态: * wait * ready done * cancel quit */ _class("Task", "", function(){ this._init = function(){ _super._init.call(this); this._parent = null; this.id = 0; //任务编号 this.type = ""; //任务类型(event=事件响应任务) this.status = "wait"; //任务状态(...
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); /** * 只是包装了一下Sizzle选择器 */ _class("XPathQuery", Plugin, function(){ this._init = function(){ _super._init.call(this); }; this.create = function(name, app){ _super.apply(this, arguments); }; this.dispose = function(){ _super.dispose.apply(this); }; this.q...
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); /** * 本地存储接口封装类 */ _class("LocalStorage", Plugin, function(){ this._init = function(data){ _super._init.call(this); this._data = data || window.localStorage; }; this.dispose = function(){ this._data = null; _super.dispose.apply(this); }; /** * 当前存储的个数...
JavaScript
_package("alz.core"); _extension("WebRuntime", function(){ //注册 WebRuntime 扩展 /* this._init = function(){ }; this.dispose = function(){ }; */ this.addMethods = function(dest, src){ for(var key in src){ dest[key] = src[key]; } return dest; }; /* this.toArray = function(iterable){ //prototype $A 的实现...
JavaScript
_package("alz.core"); _import("alz.core.ToggleGroup"); /** * 双态按钮管理者 */ _class("ToggleManager", "", function(){ this._init = function(){ _super._init.call(this); this._groups = {}; }; this.add = function(btn){ var groupid = btn.getGroupId(); if(!this._groups[groupid]){ this._groups[groupid] = new Togg...
JavaScript
_package("alz.core"); /** * ftype含义 * 1=系统邮件夹 * 0=自建邮件夹 * 2=代收邮件夹 * [TOOD]是否应该让子类实现如下接口? * dataFormat * appendItem * updateItem * removeItem * appendItems * removeItems */ _class("AbstractModel", "", function(){ this._init = function(){ _super._init.call(this); this._parent = null; this....
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); /** * @class DOMUtil * @extends alz.lang.AObject * @desc 关于DOM操作的一些工具方法的集合 * @example var _dom = new DOMUtil(); */ _class("DOMUtil", Plugin, function(){ this._init = function(){ _super._init.call(this); this._components = []; this._nodes = []; this._domT...
JavaScript
_package("alz.core"); _import("alz.core.TableIndex"); /** * 数据表过滤器对象 */ _class("TableFilter", TableIndex, function(){ this._init = function(){ _super._init.call(this); }; this.dispose = function(){ _super.dispose.apply(this); }; });
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); /** * 历史记录管理 */ _class("HistoryManager", Plugin, function(){ this._init = function(){ _super._init.call(this); this._stack = []; //{pid:"",params:{navmode:"normal",...}} }; this.create = function(name, app){ _super.create.apply(this, arguments); }; this....
JavaScript
_package("alz.core"); _import("alz.core.Plugin"); /** * 伪线程池,线程调度管理器 */ _class("ThreadPool", Plugin, function(){ this._init = function(){ _super._init.call(this); this._suspend = false; //是否暂停整个运行时环境 this._tid = 1; //线程唯一编号 this._hash = {}; //模拟线程池(哈希表) }; this.dispose = function(){ fo...
JavaScript
_package("alz.core"); /** * Action管理者类(Pane专用元素管理类) */ _class("ActionManager", "", function(){ this._init = function(){ _super._init.call(this); this._actionEngine = null; //动作执行引擎,实现了doAction接口的类的实例 this._nodes = {}; //所管理的全部action组件 this._components = []; this._focusbutton = null }; this.init = func...
JavaScript
_package("alz.core"); _import("alz.core.Animate"); /** * 一组动画 */ _class("AnimateData", "", function(){ this._init = function(){ _super._init.call(this); this._engine = null; this._cbid = -1; this._msec = 10; //定时器步长 this._timer = 0; //定时器 this._startTime = 0; //总开始时间 this._stopTime = 0; //总结束时间 ...
JavaScript
_package("alz.core"); /** * 内存泄漏检查工具 */ _class("MemLeakChecker", "", function(){ });
JavaScript
_package("alz.core"); _import("alz.core.IConfigurable"); _import("alz.lang.Exception"); _import("alz.core.PluginManager"); _import("alz.core.ThreadPool"); _import("alz.core.TaskSchedule"); _import("alz.core.AppManager"); _import("alz.core.Element"); _import("alz.core.EventManager"); //_import("alz.core.DOMUtil"); //_i...
JavaScript
_package("alz.core"); /** * 接口: 可配置的 */ _interface("IConfigurable", "", function(_property){ /* * 配置信息 */ this.__conf = { "plugin": {}, //插件 格式: {id:s,clazz:s} "model" : {}, //数据模型 格式: {id:s,clazz:s} "taglib": {}, //标签库 格式: {id:s,clazz:s} "popup" : {}, //弹出式组件 格式: {id:s,clazz:s,tpl:s} ...
JavaScript
_package("alz.mui"); _import("alz.mui.ListItem"); /** * 数据行组件(视图) */ _class("DataRow", ListItem, function(){ /** * 根据cell结构数据创建一组cell对象 */ this.createCells = function(cellsInfo){ for(var i = 0, len = cellsInfo.length; i < len; i++){ this._createElement2(this._self, "td", cellsInfo[i][0], { "innerHTML...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 菜单项 */ _class("MenuItem", Component, function(){ this._init = function(){ _super._init.call(this); }; this.build = function(el){ _super.build.apply(this, arguments); //[TODO]使用文本类型模板更新TextNode var attributes = el._attributes; var sb = []; if(at...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 银光按钮组件 */ _class("SilverButton", Component, function(){ var _css = { "normal":{"background-position":"0 0" ,"_cite":{"background-position":"right -30px" ,"color":"#333" }}, "over" :{"background-position":"0 -60px" ,"_cite":{"background-position":"...
JavaScript
_package("alz.mui"); _import("alz.mui.Container"); /** * 面板组件,支持布局自适应特性的面板 */ _class("Panel", Container, function(){ this._init = function(){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); }; this.dispose = function(){ if(this._disposed) return; _super.dispos...
JavaScript
_package("alz.mui"); _import("alz.mui.BitButton"); /** * 工具栏按钮 */ _class("ToggleButton", BitButton, function(){ this._init = function(){ _super._init.call(this); this._groupId = ""; this._toggled = false; }; this.create = function(parent, data){ this.setParent2(parent); this.setData(data); var el = t...
JavaScript
_package("alz.mui"); _import("alz.core.EventTarget"); _import("alz.mui.IBoxModel"); _import("alz.mui.IDesignable"); /** * UI组件应该实现BoxElement的接口 * @class Component * @extends alz.core.EventTarget * @desc ss */ _class("Component", EventTarget, function(){ _implements(this, IBoxModel/*, IDesignable*/); /* 0 : e...
JavaScript
_package("alz.mui"); _import("alz.util.FileType"); _import("alz.mui.Component"); _import("alz.mui.Label"); _import("alz.mui.TreeView"); _import("alz.core.Ajax"); /** * TreeNode 类 */ _class("TreeNode", Component, function(){ TreeNode.iconCache = {}; //树节点图标缓存 this._init = function(){ _super._init.call(this); ...
JavaScript
_package("alz.mui"); _import("alz.mui.Container"); _import("alz.mui.ModalPanel"); /** * 工作区组件 */ _class("Workspace", Container, function(){ this._init = function(){ _super._init.call(this); this._fixedX = 0; this._fixedY = 0; this._fixedOff = null; this._fixed = null; this._testFixDiv = null; this._m...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); _class("TextItem", Component, function(){ this._init = function(){ _super._init.call(this); this._type = "sys"; //当前文本的类型 this._text = ""; //文本内容 this._active = false; //当前文本是否处于活动状态之下 this._cursor = -1; //如果处在活动状态下,当前光标位置 //this.create(parent,...
JavaScript
_package("alz.mui"); _import("alz.mui.Container"); _import("alz.mui.IAction"); /** * 可独立工作的面板组件 */ _class("Pane", Container, function(){ _implements(this, IAction); this._init = function(){ _super._init.call(this); this._app = null; this._params = null; //参数 this._pid = ""; //pageid }; this.init ...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 模态对话框使用的遮挡面板组件 */ _class("ModalPanel", Component, function(){ this._init = function(){ _super._init.call(this); this._targetList = []; this._activeTarget = null; this._iframe = null; //用来遮挡SELECT等DIV遮挡不住的组件 this._panel = null; //再用这个DIV遮挡在IFRAME...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); _import("alz.mui.ToolButton"); _import("alz.mui.BitButton"); _import("alz.mui.ToggleButton"); /** * 工具栏组件 */ _class("ToolBar", Component, function(){ var HASH = { "ui-toolbutton" : ToolButton, "ui-bitbutton" : BitButton, "ui-togglebutton": ToggleButton }...
JavaScript
_package("alz.mui"); _import("alz.mui.Pane"); /** * 弹出式组件 */ _class("Popup", Pane, function(){ this._init = function(){ _super._init.call(this); this._conf = null; this._app = null; this._params = null; this._owner = null; //所有者(必须是一个UI组件) this._req = null; }; this.create2 = function(conf, parent, a...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /* <div class="ui-skin"> <div class="nw"></div> <div class="n"></div> <div class="ne"></div> <div class="w"></div> <div class="e"></div> <div class="sw"></div> <div class="s"></div> <div class="se"></div> </div> 一个窗体组件的几种BorderStyle: bsDialog bsN...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); _class("WindowSkinWIN2K", Component, function(){ this._cssData = { "resizable":{ /* "_skin1" :{"background-position":"0px -10px"}, "_skin2" :{"background-position":"-10px 0px"}, "_skin3" :{"background-position":"0px 0px"}, "_skin4" :{"background-pos...
JavaScript
_package("alz.mui"); _import("alz.mui.ToolButton"); /** * 带图标的按钮组件 */ _class("BitButton", ToolButton, function(){ this._init = function(){ _super._init.call(this); this._icon = ""; this._disabled = false; this._app = null; }; this.bind = function(obj, app){ this._app = app; this.init(obj); }; this....
JavaScript
_package("alz.mui"); _import("alz.mui.Pane"); /** * 面板基类 */ _class("PaneBase", Pane, function(){ this._init = function(){ _super._init.call(this); }; this.create = function(parent, app, tpl){ this.setParent2(parent); this.setApp(app); var el = this.createTplElement(parent, tpl); this.init(el); return...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); _class("Iframe", Component, function(){ this._init = function(){ _super._init.call(this); this._event = runtime.ie ? "onreadystatechange" : "onload"; this._skipCallback = false; //标志,忽略回调处理 this._type = "text"; this._agent = null; this._callback = null;...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 表视图组件 */ _class("TableView", Component, function(){ this._init = function(){ _super._init.call(this); }; this.create = function(parent){ var sb = []; sb.push('<table class="ui-table" border="1" bordercolor="gray" cellspacing="0" cellpadding="1">'); ...
JavaScript
_package("alz.mui"); /** * 盒子模型接口 */ _interface("IBoxModel", "", function(){ /* var PROPS = "color,cursor,display,visibility,opacity,zIndex," + "overflow,position," + "left,top,bottom,right,width,height," + "marginBottom,marginLeft,marginRight,marginTop," + "borderTopWidth,borderRightWidth,borderBottomWidt...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 菜单栏按钮 */ _class("MenuButton", Component, function(){ this._init = function(){ _super._init.call(this); }; this.dispose = function(){ if(this._disposed) return; _super.dispose.apply(this); }; });
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 层叠面板管理组件(N个Pane组件层叠) */ _class("DeckPane", Component, function(){ this._init = function(){ _super._init.call(this); this._app = null; this._conf = {}; //Pane类配置信息 this._hash = {}; this._activePane = null; //当前活动的Pane页 }; this.bind = function(ob...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); //CodeMirror //MirrorFrame /** * 代码编辑器 */ _class("CodeEditor", Component, function(){ this._eid = 0; this._editors = {}; this._init = function(){ _super._init.call(this); this._app = null; this._editor = null; }; this.build = function(el){ _super.build...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); _import("alz.mui.LineEdit"); /** * 控制台组件 */ _class("Console", Component, function(){ this._init = function(){ _super._init.call(this); this._app = null; this._lines = []; //this._lastLine = null; this._lineEdit = null; this._prompt = ">"; this._inter...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); _class("DropDown", Component, function(){ this._init = function(){ _super._init.call(this); this._menu = null; }; this.bind = function(obj){ _super.bind.apply(this, arguments); this._bindDrop(); }; this.init = function(obj){ _super.init.apply(this, arg...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 列表项目 */ _class("ListItem", Component, function(){ this._css = { "normal": {}, "active": {}, "_hover": {} }; this._init = function(){ _super._init.call(this); this._data = null; this._active = false; this._itemDom = null; //响应 ListItem 相关事件的 ...
JavaScript
_package("alz.mui"); /** * 列表条目选择动作管理 */ _class("SelectionManager", "", function(){ var listener = { "mouseover": function(ev){ //this._parent._activeItems.indexOf(this) == -1 if(!this._active){ //如果不是焦点 if(this._css.hover && this._css.hover.className){ //hover状态可能不存在 this._self.className = this....
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 窗体组件上的系统按钮组件 */ _class("SysBtn", Component, function(){ //#_interface("IActionSource"); this._init = function(){ _super._init.call(this); this._win = null; }; this.init = function(obj, win, css){ _super.init.apply(this, arguments); this._win = win...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 工作区组件 */ _class("Workspace", Component, function(){ this._init = function(){ _super._init.call(this); this._captureComponent = null; }; this.init = function(obj){ _super.init.apply(this, arguments); this._self.onmousedown = this._self.onmousemove...
JavaScript
_package("alz.mui"); _import("alz.core.ActionManager"); _import("alz.action.ActionElement"); _import("alz.action.FormElement"); _import("alz.action.LinkLabel"); _import("alz.action.ComboBox"); _import("alz.action.Select"); _import("alz.action.TextField"); _import("alz.action.Button"); _import("alz.action.CheckBox"); ...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 工具栏按钮 */ _class("ToolButton", Component, function(){ this._init = function(){ _super._init.call(this); this._label = null; }; this.create = function(parent, data){ this.setParent2(parent); this.setData(data); var el = this._createElement2(parent,...
JavaScript
_package("alz.mui"); _import("alz.mui.Popup"); /** * 弹出式菜单 */ _class("PopupMenu", Popup, function(){ this._init = function(){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); this.setVisible(false); }; this.dispose = function(){ if(this._disposed) return; _su...
JavaScript
_package("alz.mui"); _import("alz.mui.SelectionManager"); _import("alz.mui.Component"); /** * 列表框组件 * protected boolean selectionMode = 0; * 0 = (默认)配合ctrl,shift按键可以方便的进行多选的常规模式,仿 window 资源管理器文件选择的行为 * 1 = ctrl,shift仍然可用,不过默认单击为复选模式,再次单击改为取消复选(目的为了不使用ctrl,shift键依然可以进行多选操作) */ _class("ListBox", Component, functio...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 选项卡组件 */ _class("TabPage", Component, function(){ this._init = function(){ _super._init.call(this); this._tabs = []; this._activeTab = null; this._head = null; this._body = null; }; this.init = function(el){ _super.init.apply(this, arguments); ...
JavaScript
_package("alz.mui"); _import("alz.mui.Popup"); /** * 菜单组件 */ _class("Menu", Popup, function(){ this._init = function(){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); }; this.dispose = function(){ if(this._disposed) return; _super.dispose.apply(this); }; });
JavaScript
_package("alz.mui"); _import("alz.mui.BaseWindow"); _import("alz.mui.SysBtn"); _import("alz.mui.WindowSkinWINXP"); _import("alz.mui.WindowSkinWIN2K"); /* <div class="head"> <img src="images/win-icon.gif" /> <label>窗体组件标题栏 - Windown XP</label> <div class="sysbtn"> <div class="icon-min"></div> <div class="...
JavaScript
_package("alz.mui"); _import("alz.mui.Pane"); _import("alz.mui.SysBtn"); /** * 窗体基类 */ _class("BaseWindow", Pane, function(){ this._init = function(){ _super._init.call(this); this._conf = null; this._app = null; this._params = null; this._req = null; this._head = null; this._title = null; this._cl...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); _import("alz.mui.TextHistory"); _import("alz.mui.TextItem"); /** * 行编辑器组件 * <div id="d1" class="LineEdit">&gt;window.<span class="cursor">a</span>lert("aaaa");</div> */ _class("LineEdit", Component, function(){ var KEY_BACKSPACE = 8; var KEY_TAB = 9; //\...
JavaScript
_package("alz.mui"); /** * 组件可设计性接口 */ _interface("IDesignable", "", function(){ this._init = function(){ this._layer = null; }; this.setLeft = function(v){ this._layer.style.left = v + "px"; }; this.setTop = function(v){ this._layer.style.top = v + "px"; }; this._setWidth = function(v){ this._layer.s...
JavaScript
_package("alz.mui"); _import("alz.mui.BaseWindow"); /** * 对话框组件 */ _class("Dialog", BaseWindow, function(){ var KEY_ESC = 27; this._init = function(){ _super._init.call(this); //对话框的双态特性,和PaneAppContent相似,主要用来屏蔽环境差异 this._ownerApp = null; //身在曹营 //this._app = null; //心在汉 this._skin = null; this._...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 列表项目 */ _class("ListItem", Component, function(){ this._init = function(){ _super._init.call(this); this._icon = null; this._label = null; }; this.__init = function(obj, domBuildType){ _super.__init.apply(this, arguments); //window.alert(this._se...
JavaScript
_package("alz.mui"); _import("alz.mui.ListBox"); /** * 菜单栏 */ _class("MenuBar", ListBox, function(){ this._init = function(){ _super._init.call(this); this._activeItem1 = null; }; this.bind = function(obj){ this.init(obj); }; this.init = function(obj){ _super.init.apply(this, arguments); }; this.disp...
JavaScript
_package("alz.mui"); _import("alz.util.FileType"); _import("alz.mui.Component"); _import("alz.mui.TreeNode"); /** * TreeView 类 */ _class("TreeView", Component, function(){ var KEY_TAB = 9; //'\t' var KEY_ENTER = 13; //'\n' var KEY_ESC = 27; this._init = function(){ _super._init.call(this); ...
JavaScript
_package("alz.mui"); _import("alz.mui.ListBox"); /** * 数据表格组件(视图) */ _class("DataTable", ListBox, function(){ this._init = function(){ _super._init.call(this); this._hashIndexs = {}; //索引哈希(每个元素是一个数组) this._dataModel = null; //数据模型 this._checkall = null; //全选复选框 this._table = null; //关键的table th...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * 凡是具有_layout,_align属性的元素全部是该类或子类的实例 */ _class("Container", Component, function(){ this._init = function(){ _super._init.call(this); this._nodes = []; }; this.init = function(el){ _super.init.apply(this, arguments); }; this.dispose = function(){ if...
JavaScript
_package("alz.mui"); _import("alz.mui.Component"); /** * TreeView中使用的标签组件 */ _class("Label", Component, function(){ var _css = { "normal" : {"color":"#000000","border":"1px solid #EEEEEE" ,"background-color":"" ,"text-decoration":"none" }, "over" : {"color":"#0000FF","border":"1px solid #EEEEEE" ...
JavaScript
_package("alz.mui"); _import("alz.mui.Container"); /** * 应用的子窗体工作区组件 */ _class("AppWorkspace", Container, function(){ this._init = function(){ _super._init.call(this); }; this.build = function(el){ _super.build.apply(this, arguments); }; this.dispose = function(){ _super.dispose.apply(this); }; this.re...
JavaScript
_package("alz.mui"); _import("alz.mui.BaseWindow"); /** * 工具窗体 */ _class("ToolWin", BaseWindow, function(){ this._init = function(){ _super._init.call(this); this._dock = false; }; this.rendered = function(){ _super.rendered.apply(this); runtime.dom.addClass(this._self, "undock"); }; this.init = functi...
JavaScript
_package("alz.mui"); /** * 命令历史纪录 */ _class("TextHistory", "", function(){ this._init = function(){ _super._init.call(this); this._historys = []; this._curIndex = 0; //历史记录的位置 }; this.dispose = function(){ if(this._disposed) return; for(var i = 0, len = this._historys.length; i < len; i++){ this._hi...
JavaScript
_package("alz.action"); _import("alz.action.ComboBox"); /** * select元素的封装 */ _class("Select", ComboBox, function(){ this._init = function(obj){ _super._init.call(this); this._select = null; }; this.init = function(obj){ _super.init.apply(this, arguments); this._select = this._self; }; this.dispose = fu...
JavaScript
_package("alz.action"); _import("alz.action.ActionElement"); /** * 超链接(a)元素的封装 */ _class("LinkLabel", ActionElement, function(){ this._init = function(){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); var _this = this; this._self.onclick = function(ev, sender){...
JavaScript
_package("alz.action"); _import("alz.action.BitButton"); /** * 带下拉菜单的按钮类 */ _class("ComboBox", BitButton, function(){ this._init = function(){ _super._init.call(this); this._popmenu = null; this._popmenu_visible = false; }; this.init = function(obj){ _super.init.apply(this, arguments); var rows = this....
JavaScript
_package("alz.action"); _import("alz.action.ActionElement"); /** * input:text元素的封装 */ _class("TextField", ActionElement, function(){ this._init = function(){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); var _this = this; this._self.onblur = function(ev){ r...
JavaScript
_package("alz.action"); _import("alz.action.ActionElement"); /** * 带图标的按钮(表格实现 */ _class("BitButton", ActionElement, function(){ this._init = function(){ _super._init.call(this); this._visible = true; }; this.init = function(obj, actionManager){ _super.init.apply(this, arguments); this._actionManager = a...
JavaScript
_package("alz.action"); _import("alz.action.ActionElement"); /** * select元素的封装 */ _class("ComboBox", ActionElement, function(){ this._init = function(obj){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); var _this = this; this._self.onchange = function(ev){ r...
JavaScript
_package("alz.action"); _import("alz.mui.Component"); /** * 具有action特性的组件的基类 */ _class("ActionElement", Component, function(){ ActionElement.hash = { //free cn "ActionElement" : null, "FormElement" : null, "LinkLabel" : null, "ComboBox" : null, //["ComboBox", "FolderSelect"...
JavaScript
_package("alz.action"); _import("alz.action.ActionElement"); /** * form元素的封装 */ _class("FormElement", ActionElement, function(){ this._init = function(){ _super._init.call(this); this._elements = []; this._app = null; }; this.init = function(obj){ _super.init.apply(this, arguments); var _this = this; ...
JavaScript
_package("alz.action"); _import("alz.action.ActionElement"); /** * input:checkbox元素的封装 */ _class("CheckBox", ActionElement, function(){ this._init = function(){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); this.setAction(this._action.split("|")); var _this = ...
JavaScript
_package("alz.action"); _import("alz.action.ActionElement"); /** * input:button元素的封装 */ _class("Button", ActionElement, function(){ this._init = function(){ _super._init.call(this); }; this.init = function(obj){ _super.init.apply(this, arguments); var _this = this; this._self.onclick = function(ev){ r...
JavaScript