flymis/WebRoot/dojojs/src/widget/ProgressBar.js

(开头部分) 9KB

这里只显示每个文件的开头 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.ProgressBar");

// requires here
dojo.require("dojo.widget.*"); // necessary
dojo.require("dojo.event");
dojo.require("dojo.dom.*");
dojo.require("dojo.html.style");
dojo.require("dojo.string.*");
dojo.require("dojo.lfx.*");

dojo.widget.defineWidget(
	"dojo.widget.ProgressBar",
	dojo.widget.HtmlWidget,
	{
		// Constructor arguments
		progressValue: "0",
		maxProgressValue: 100,
		width: 300,
		height: 30,
		frontPercentClass: "frontPercent",
		backPercentClass: "backPercent",
		frontBarClass: "frontBar",
		backBarClass: "backBar",
		hasText: "false",
		isVertical:"false",
		showOnlyIntegers: "false",
		dataSource: "",
		pollInterval: "3000",
		duration: "1000",
//		leftImage: null,
//		centerImage: null,
//		rightImage: null,
		templatePath: dojo.uri.dojoUri("src/widget/templates/ProgressBar.html"),
		templateCssPath: dojo.uri.dojoUri("src/widget/templates/ProgressBar.css"),
		
	
		// attach points
		containerNode: null,
		internalProgress: null,
	
		// private members
		_pixelUnitRatio: 0.0,
		// _pixelRatio := width/100
		_pixelPercentRatio: 0.0,
		_unitPercentRatio: 0.0,
		_unitPixelRatio: 0.0,
		_floatDimension: 0.0,
		_intDimension: 0,
		_progressPercentValue: "0%",
		_floatMaxProgressValue: 0.0,
后面还有 229 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。