code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
var FCKDragTableHandler =
{
"_DragState" : 0,
"_LeftCell" : null,
"_RightCell" : null,
"_MouseMoveMode" : 0, // 0 - find candidate cells for resizing, 1 - drag to resize
"_ResizeBar" : null,
"_OriginalX" : null,
"_MinimumX" : null,
"_MaximumX" : null,
"_LastX" : null,
"_TableMap" : null,
"_doc" ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
function SentenceCase(text){
text.value = text.value.substr(0, 1).toUpperCase() + text.value.substr(1);
}
function showpicture(){
menu=$('targetid');
if(menu.selectedIndex > 0 ){
$('detailpagetr').style.display='';
$('detailcheck').checked=true;
$('urltr').style.display='none';
}
}
function showde... | JavaScript |
_package("alz.app.doc");
_import("alz.core.Application");
_import("alz.mui.DeckPane");
_import("alz.app.doc.ClassFile");
_import("alz.app.doc.pane.PaneHome");
_import("alz.app.doc.pane.PaneAppAdd");
/**
* 框架文档应用
*/
_class("AppDocs", Application, function(){
this.__conf__(__context__, {
"pane": [ //插件配置列表
{"i... | JavaScript |
_package("alz.app.doc.pane");
_import("alz.app.doc.ui.PaneBase");
/**
* 新建应用
*/
_class("PaneAppAdd", PaneBase, function(){
this.create = function(parent, app, tpl){
this.setParent(parent);
this.setApp(app);
var obj = this.createTplElement(parent, tpl);
this.init(obj);
return obj;
};
}); | JavaScript |
_package("alz.app.doc.pane");
_import("alz.mui.TreeView");
_import("alz.app.doc.ui.PaneBase");
/**
* 主面板
*/
_class("PaneHome", PaneBase, function(){
this._init = function(){
_super._init.call(this);
this._treeview = null;
};
this.init = function(obj){
_super.init.apply(this, arguments);
this.initActionEl... | JavaScript |
_package("alz.app.doc.pane");
_import("alz.app.doc.ui.PaneBase");
/**
* 文档显示
*/
_class("PaneDoclet", PaneBase, function(){
this.showFile = function(file){
if(file._mtime == 0 && file._source == ""){
//[TODO]文件不存在
}else{
file.genDoc(this._self);
this._app.navPane(this._pid);
}
};
}); | JavaScript |
_package("alz.app.doc");
/**
* 描述一个JS类文件
*/
_class("ClassFile", "", function(){
var re_class = /\n_class\(\"(\w+)\", \"?(\w*)\"?, function\(\)\{/;
var re_method = /\n\t(this|\w+)\.(\w+)\s*=\s*function\s*\(([\w, ]*)\)\s*\{/g;
this._init = function(){
_super._init.call(this);
this._mtime = 0;
this._source = ... | JavaScript |
_package("alz.app.doc.ui");
_import("alz.mui.Pane");
/**
* 面板基类
*/
_class("PaneBase", Pane, function(){
this._init = function(){
_super._init.call(this);
this._pid = "";
this._params = null;
};
this.create = function(parent, app, tpl){
this.setParent(parent);
this.setApp(app);
var obj = this.createTp... | JavaScript |
/*
* alzui-mini 框架文档模板库
*/
runtime.regTpl("docs.tpl", {
home.xml,
doc.xml,
app_list.xml,
app_add.xml,
app_pkg.xml,
app_check.xml
}); | JavaScript |
/**
* 框架文档应用
*/
import alz.copyright;
//"core,ui"
runtime.regLib("docs.app", "AppDocs", function(){with(arguments[0]){
import alz.app.doc.ClassFile;
import alz.app.doc.ui.PaneBase;
import alz.app.doc.pane.PaneHome;
import alz.app.doc.pane.PaneDoclet;
import alz.app.doc.pane.PaneAppAdd;
import alz.app.doc.AppDocs;
}... | JavaScript |
function $(id){
return window.document.getElementById(id);
}
(function(){
var keys = {
"break":1,
"delete":1,
"function":1,
"return":1,
"typeof":1,
"case":1,
"do":1,
"if":1,
"switch":1,
"var":1,
"catch":1,
"else":1,
"in":1,
"this":1,
"void":1,
"continue":1,
"false":1,
"instanceof":1,
"throw":1,
"... | JavaScript |
chm.head(); | JavaScript |
chm.foot(); | JavaScript |
window.onload = function(){
var pres = window.document.getElementsByTagName("pre");
for(var i = 0, len = pres.length; i < len; i++){
pres[i].innerHTML = ("" + pres[i].innerHTML).replace(/\t/g, " ").replace(/\n/g, "<br />");
}
pres = null;
var h3s = window.document.getElementsByTagName("h3");
f... | JavaScript |
_package("alz.app.demo.pane");
_import("alz.mui.Pane");
_import("alz.mui.Console");
/**
* 控制台面板
*/
_class("PaneConsole", Pane, function(){
this._init = function(){
_super._init.call(this);
this._tpl = "pane_console.xml";
this._console = null;
};
this.create = function(parent, app){
this.setParent2(parent... | JavaScript |
_package("alz.app.demo.pane");
_import("alz.mui.Pane");
_import("alz.mui.TableView");
/**
* 表格组件面板
*/
_class("PaneTable", Pane, function(){
this._init = function(){
_super._init.call(this);
this._tpl = "pane_table.xml";
this._table = null;
};
this.create = function(parent, app){
var data = [];
for(var ... | JavaScript |
_package("alz.app.demo.pane");
_import("alz.mui.Pane");
/**
* 网址管理面板
*/
_class("PaneUrlMan", Pane, function(){
this._init = function(){
_super._init.call(this);
this._tpl = "pane_urlman.xml";
};
this.create = function(parent, app){
this.setParent2(parent);
this.setApp(app);
var el = this.createTplEleme... | JavaScript |
_package("alz.app.demo.pane");
_import("alz.mui.Pane");
/**
* 通用表单面板
*/
_class("PaneForm", Pane, function(){
this._init = function(){
_super._init.call(this);
this._tpl = "pane_form.xml";
};
this.create = function(parent, app){
this.setParent2(parent);
this.setApp(app);
var el = this.createTplElement(p... | JavaScript |
_package("alz.app.demo.pane");
_import("alz.mui.Pane");
/**
* 默认面板
*/
_class("PaneHome", Pane, function(){
this._init = function(){
_super._init.call(this);
this._tpl = "pane_home.xml";
};
/*
<li><a href="index.html">介绍</a></li>
<li><a href="Window.html">Window组件</a></li>
<li><a href="Table.html">Table... | JavaScript |
_package("alz.app.demo.pane");
_import("alz.mui.Pane");
_import("alz.mui.Window");
/**
* 窗体组件面板
*/
_class("PaneWindow", Pane, function(){
this._init = function(){
_super._init.call(this);
this._tpl = "pane_window.xml";
this._win1 = null;
this._win2 = null;
};
this.create = function(parent, app){
this.s... | JavaScript |
_package("alz.app.demo");
_import("alz.core.Application");
_import("alz.app.demo.pane.PaneHome");
_import("alz.app.demo.pane.PaneWindow");
_import("alz.app.demo.pane.PaneTable");
_import("alz.app.demo.pane.PaneForm");
_import("alz.app.demo.pane.PaneUrlMan");
_class("AppTestWin", Application, function(){
this.__conf_... | JavaScript |
/**
* 示例应用模板库
*/
runtime.regTpl("demos.tpl", {
pane_main.xml,
pane_home.xml,
pane_console.xml,
pane_window.xml,
pane_table.xml,
pane_form.xml,
pane_urlman.xml,
win_main.xml
}); | JavaScript |
/**
* 示例应用代码库
*/
//"core,ui"
runtime.regLib("demos.app", "AppTestWin", function(){with(arguments[0]){
//import alz.core.DomUtil2;
//import alz.mui.Component2;
import alz.mui.Workspace2;
import alz.mui.SilverButton;
import alz.app.demo.pane.PaneHome;
import alz.app.demo.pane.PaneConsole;
import alz.app.demo.pane.Pane... | JavaScript |
/**
* alzui-mini JavaScript Framework, v0.0.8
* Copyright (c) 2009 wmingjian@gmail.com. All rights reserved.
*
* Licensed under the GNU General Public License v2.
* For details, see: http://code.google.com/p/alzui/
*/
(function(){with(runtime.createContext("test_win", "core,ui")){
function $(id){return window.do... | JavaScript |
/**
* 性能剖析工具
*/
function Profile(){
this._methods = {}; //统计类方法调用次数、执行时间等数据用的哈希
this._callstack = []; //模拟调用栈
this._logLock = false; //日志锁,决定是否输出日志
this._log = false; //日志开关
this._list = null;
this._hash = {}; //统计数据
this._stack = [];
}
(function(){
this.reset = function(){
for(var k in t... | JavaScript |
//定义类
function Clazz(cxt, pkgName, className, superClass, superProto, classImp){
if(typeof classImp !== "function"){
console.log("error");
}
var fullName = __pkgName + "." + className;
this._context = cxt; //类所属LibContext
this._pkgName = __pkgName; //所属包名
this._className = className; //类名
th... | JavaScript |
/**
* 命名空间和上下文环境的概念在这里并不严格区分,这个特殊的类的主要目的就是创建
* 多个上下文环境对象并由此构造出一个个的命名空间来,并及由上下文环境对象区别于
* 匿名函数局部作用域的可操作性,设计了OOP模拟原理。
*
* _package,_import,_class三个OOP关键特性的重要程度是反过来的。
*/
/*
//标准的_class声明形式,不过现在还不是在真实的上下文环境下
_package("alz.core");
_class("Context", null, function(){
});
*/
function LibContext(name, rt){
this._init.app... | JavaScript |
/**
* alzui-mini JavaScript Framework, v__VERSION__
* Copyright (c) 2009-2011 wmingjian@gmail.com. All rights reserved.
*
* Licensed under the GNU General Public License v2.
* For details, see: http://code.google.com/p/alzui/
*/ | JavaScript |
_package("alz.util");
/**
* 文件类型
*/
_class("FileType", "", function(){
var _mapIcon = {
"jsc" :{index: 0,isDir:1},
"js" :{index: 1,isDir:1},
"json" :{index: 2,isDir:1},
"htm" :{index: 3,isDir:1}, "html":{index: 3,isDir:1},
"tpl" :{index: 4,isDir:1},
"tmpl" :{index: 5,isDir:1... | JavaScript |
function $(id){
return document.getElementById(id);
}
function $E(id){
return document.getElementById(id);
} | JavaScript |
_package("alz.lang");
/**
* @class AObject
* @extends Object
* @desc 根类 AObject
*/
_class("AObject", null, function(){
//[memleak]AObject.__hash__ = {};
//[memleak]AObject.__id__ = 0;
//this._className = ""; //static property
this._init = function(){
//Object.call(this);
this._disposed = false;
//[memle... | JavaScript |
_package("alz.lang");
//import alz.native.Error;
/**
* 异常基类
*/
//class Exception(Error){
_class("Exception", "", function(){
this._init = function(msg){
_super._init.call(this);
this._message = this._formatMsg(msg, arguments);
};
this.dispose = function(){
if(this._disposed) return;
_super.dispose.apply(... | JavaScript |
_package("alz.template");
/**
* 通过模板创建的DOM元素(可以包含子节点)
*/
_class("TemplateElement", "", function(){
var RE_TVAR = /\{\$(\w+)\}/g; //模板变量语法
this._init = function(){
_super._init.call(this);
this._tpldoc = null; //所属文档对象
this._tplobj = null; //元素创建时参照的模板对象
this._confStack = null; //TagConf堆栈
this._compo... | JavaScript |
_package("alz.template");
_import("alz.core.Plugin");
_import("alz.template.TrimPath");
_import("alz.template.TemplateObject");
//_import("alz.core.Ajax");
/**
* 提供对模板数据的管理支持,实现了对多种类型的前端模板的管理和方便的外部调用接
* 口,达到分离前端开发过程中逻辑和界面的初步分离。
*
* [TODO]TrimPath 每次重复解析模板的性能问题还没有解决。
*
* 模板的类型
* html = 纯 HTML 代码
* tpl = 符合 /\... | JavaScript |
_package("alz.template");
_import("alz.template.TemplateElement");
_import("alz.template.TplDocument");
/**
* 一个模板文件或者文件片段的封装对象
* 1)支持xml语法
* 2)支持模板变量
* 3)支持数据绑定
* 4)支持数据动态更新
*/
_class("TemplateObject", "", function(){
/*
function TplVar(){ //模板变量
}
function TplValue(){ //模板值
}
function TplRef(){ //模板引... | JavaScript |
_package("alz.template");
/**
* 模板解析异常类
*/
_class("ParseError", "", function(){
this._init = function(name, line, message){
_super._init.call(this);
this.name = name;
this.line = line;
this.message = message;
};
this.toString = function(){
return "TrimPath template ParseError in " + this.name + ": line ... | JavaScript |
_package("alz.template");
/**
* 基于模板的文档对象
*/
_class("TplDocument", "", function(){
function str2hash(str, sep){
var hash = {};
var arr = str.split(sep || ",");
for(var i = 0, len = arr.length; i < len; i++){
hash[arr[i]] = true;
}
return hash;
}
this._htmlTags = str2hash("a,-address,-applet,-area,"
... | JavaScript |
_package("alz.template");
/**
* @param name 模板名
* @param content 模板内容
* @param etc 配置信息
*/
_class("Template", "", function(){
this._init = function(name, content, etc){
this._name = name;
this._source = content;
this._etc = etc;
this._sourceFunc = "";
this._func = null;
this._buffer = [];
};
this.to... | JavaScript |
_package("alz.template");
/**
* 模板引擎
*/
_class("TemplateEngine", "", function(){
this._init = function(){
_super._init.call(this);
};
this.dispose = function(){
_super.dispose.apply(this);
};
}); | JavaScript |
_package("alz.template");
//importMethod Array.pop,Array.push;
/*
try{
String.prototype.process = function(context, optFlags){
var template = new TrimPath().parseTemplate(this, null);
if(template != null){
return template.process(context, optFlags);
}
return this;
};
}catch(ex){ // Swallow exception, suc... | JavaScript |
_package("alz.core");
_import("alz.core.Plugin");
/**
* DOM元素操作类
*/
_class("Element", Plugin, function(){
this._init = function(){
_super._init.call(this);
this._key = "aui_uid";
this._uid = 1;
this._cache = {}; //DOM元素扩展数据缓存
};
this.create = function(name, app){
_super.create.apply(this, arguments);
... | JavaScript |
_package("alz.core");
_import("alz.core.EventTarget");
_import("alz.core.TableIndex");
_import("alz.core.TableFilter");
_import("alz.core.DataChangeEvent");
/**
* 元数据表
*/
_class("MetaTable", EventTarget, function(){
this._init = function(pid){
_super._init.call(this);
//this._parent = null;
//this._listeners =... | JavaScript |
_package("alz.core");
_import("alz.core.IConfigurable");
_import("alz.core.EventTarget");
_import("alz.core.PluginManager");
//_import("alz.core.LocalStorage");
_import("alz.core.DataModel");
_import("alz.core.TagLib");
_import("alz.template.TemplateManager");
//_import("alz.core.TemplateManager");
_import("alz.core.H... | JavaScript |
_package("alz.core");
_import("alz.core.AjaxEngine");
/**
* 异步数据调用引擎的封装版,主要目的是屏蔽并减少runtime对象的使用
*/
_class("Ajax", "", function(){
this._init = function(){
_super._init.call(this);
this._ajax = runtime.getAjax();
};
this.dispose = function(){
if(this._disposed) return;
this._ajax = null;
//[memleak]this... | JavaScript |
_package("alz.core");
//_import("alz.core.ActionManager");
_import("alz.core.ToggleManager");
_import("alz.mui.Workspace");
_import("alz.mui.Dialog");
_extension("WebRuntime", function(){ //注册 WebRuntime 扩展
this._init = function(){ //加载之后的初始化工作
this._domTemp = null;
this.toggleMgr = new ToggleManager();
//th... | JavaScript |
_package("alz.core");
/**
* 动作栈,管理APP内部的前进、后退功能
*/
_class("ActionStack", "", function(){
this._init = function(){
_super._init.call(this);
this._stack = []; //动作栈
this._oldAction = null; //前一个动作
this._activeAction = null; //当前活动的动作
};
this.dispose = function(){
if(this._disposed) return;
this._acti... | JavaScript |
_package("alz.core");
_class("DomUtil2", "", function(){
this._init = function(){
_super._init.call(this);
this._nodes = [];
this._domTemp = null;
}
this.dispose = function(){
if(this._disposed) return;
this._domTemp = null;
//解除所有DOM元素和脚本对象的绑定关系
for(var i = 0, len = this._nodes.length; i < len; i++){... | JavaScript |
_package("alz.core");
_import("alz.core.DOMUtil");
//_import("alz.core.DOMUtil2");
_import("alz.core.AjaxEngine");
_import("alz.core.XPathQuery");
_import("alz.template.TemplateManager");
_import("alz.core.ActionCollection");
_import("alz.core.ProductManager");
_extension("WebRuntime", function(){ //注册 WebRuntime 扩展... | JavaScript |
_package("alz.core");
/**
* 元表接口
*/
_interface("IMetaTable", "", function(_property){
_property(this, {
_hash: {},
_list: []
});
this.exists = function(id){
return id in this._hash;
};
this.getItem = function(id){
return this._hash[id];
};
this.appendItem = function(item){
};
this.appendItems = func... | JavaScript |
_package("alz.core");
/**
* 数据模型管理者
*/
_class("ModelManager", "", function(){
this._init = function(){
_super._init.call(this);
this._hash = {};
this._list = [];
};
this.dispose = function(){
if(this._disposed) return;
_super.dispose.apply(this);
};
/**
* 添加一个数据模型(注册)
* @param item {AbstractModel}... | JavaScript |
_package("alz.core");
//_import("alz.core.Exception");
_import("alz.core.Plugin");
_import("alz.core.ScriptLoader");
//_import("alz.core.IframeLoader");
//依赖于 runtime, runtime.getBrowser()
//[TODO]
// 1)添加防错误处理机制,保证请求队列的持续工作
// 2)短路所有的异步请求,保证单机环境下能够正常工作
/**
* 异步数据调用引擎
* [TODO]跨页面工作
*/
_class("AjaxEngine", Plugi... | JavaScript |
_package("alz.core");
_import("alz.core.Plugin");
/**
* action收集器
*/
_class("ActionCollection", Plugin, function(){
this._init = function(){
_super._init.call(this);
this._list = [];
};
this.dispose = function(){
if(this._disposed) return;
_super.dispose.apply(this);
};
this.append = function(action){
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.