flymis/WebRoot/dojojs/src/widget/TaskBar.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.TaskBar");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.FloatingPane");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.html.selection");
// summary
// Widget used internally by the TaskBar;
// shows an icon associated w/a floating pane
dojo.widget.defineWidget(
"dojo.widget.TaskBarItem",
dojo.widget.HtmlWidget,
{
// String
// path of icon for associated floating pane
iconSrc: '',
// String
// name of associated floating pane
caption: 'Untitled',
// String
// widget id of associated floating pane
widgetId: "",
templatePath: dojo.uri.dojoUri("src/widget/templates/TaskBarItemTemplate.html"),
templateCssPath: dojo.uri.dojoUri("src/widget/templates/TaskBar.css"),
fillInTemplate: function() {
if (this.iconSrc) {
var img = document.createElement("img");
img.src = this.iconSrc;
this.domNode.appendChild(img);
}
this.domNode.appendChild(document.createTextNode(this.caption));
dojo.html.disableSelection(this.domNode);
},
postCreate: function() {
this.window=dojo.widget.getWidgetById(this.windowId);
this.window.explodeSrc = this.domNode;
dojo.event.connect(this.window, "destroy", this, "destroy")
},
onClick: function() {
this.window.toggleDisplay();
}
});
后面还有 33 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。