Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1318 alexandre_ 1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
10
 
11
dojo.provide("dojo.namespaces.dojo");
12
dojo.require("dojo.ns");
13
 
14
(function(){
15
	// Mapping of all widget short names to their full package names
16
	// This is used for widget autoloading - no dojo.require() is necessary.
17
	// If you use a widget in markup or create one dynamically, then this
18
	// mapping is used to find and load any dependencies not already loaded.
19
	// You should use your own namespace for any custom widgets.
20
	// For extra widgets you use, dojo.declare() may be used to explicitly load them.
21
	// Experimental and deprecated widgets are not included in this table
22
	var map = {
23
		html: {
24
			"accordioncontainer": "dojo.widget.AccordionContainer",
25
			"animatedpng": "dojo.widget.AnimatedPng",
26
			"button": "dojo.widget.Button",
27
			"chart": "dojo.widget.Chart",
28
			"checkbox": "dojo.widget.Checkbox",
29
			"clock": "dojo.widget.Clock",
30
			"colorpalette": "dojo.widget.ColorPalette",
31
			"combobox": "dojo.widget.ComboBox",
32
			"combobutton": "dojo.widget.Button",
33
			"contentpane": "dojo.widget.ContentPane",
34
			"currencytextbox": "dojo.widget.CurrencyTextbox",
35
			"datepicker": "dojo.widget.DatePicker",
36
			"datetextbox": "dojo.widget.DateTextbox",
37
			"debugconsole": "dojo.widget.DebugConsole",
38
			"dialog": "dojo.widget.Dialog",
39
			"dropdownbutton": "dojo.widget.Button",
40
			"dropdowndatepicker": "dojo.widget.DropdownDatePicker",
41
			"dropdowntimepicker": "dojo.widget.DropdownTimePicker",
42
			"emaillisttextbox": "dojo.widget.InternetTextbox",
43
			"emailtextbox": "dojo.widget.InternetTextbox",
44
			"editor": "dojo.widget.Editor",
45
			"editor2": "dojo.widget.Editor2",
46
			"filteringtable": "dojo.widget.FilteringTable",
47
			"fisheyelist": "dojo.widget.FisheyeList",
48
			"fisheyelistitem": "dojo.widget.FisheyeList",
49
			"floatingpane": "dojo.widget.FloatingPane",
50
			"modalfloatingpane": "dojo.widget.FloatingPane",
51
			"form": "dojo.widget.Form",
52
			"googlemap": "dojo.widget.GoogleMap",
53
			"inlineeditbox": "dojo.widget.InlineEditBox",
54
			"integerspinner": "dojo.widget.Spinner",
55
			"integertextbox": "dojo.widget.IntegerTextbox",
56
			"ipaddresstextbox": "dojo.widget.InternetTextbox",
57
			"layoutcontainer": "dojo.widget.LayoutContainer",
58
			"linkpane": "dojo.widget.LinkPane",
59
			"popupmenu2": "dojo.widget.Menu2",
60
			"menuitem2": "dojo.widget.Menu2",
61
			"menuseparator2": "dojo.widget.Menu2",
62
			"menubar2": "dojo.widget.Menu2",
63
			"menubaritem2": "dojo.widget.Menu2",
64
			"pagecontainer": "dojo.widget.PageContainer",
65
			"pagecontroller": "dojo.widget.PageContainer",
66
			"popupcontainer": "dojo.widget.PopupContainer",
67
			"progressbar": "dojo.widget.ProgressBar",
68
			"radiogroup": "dojo.widget.RadioGroup",
69
			"realnumbertextbox": "dojo.widget.RealNumberTextbox",
70
			"regexptextbox": "dojo.widget.RegexpTextbox",
71
			"repeater": "dojo.widget.Repeater",
72
			"resizabletextarea": "dojo.widget.ResizableTextarea",
73
			"richtext": "dojo.widget.RichText",
74
			"select": "dojo.widget.Select",
75
			"show": "dojo.widget.Show",
76
			"showaction": "dojo.widget.ShowAction",
77
			"showslide": "dojo.widget.ShowSlide",
78
			"slidervertical": "dojo.widget.Slider",
79
			"sliderhorizontal": "dojo.widget.Slider",
80
			"slider":"dojo.widget.Slider",
81
			"slideshow": "dojo.widget.SlideShow",
82
			"sortabletable": "dojo.widget.SortableTable",
83
			"splitcontainer": "dojo.widget.SplitContainer",
84
			"tabcontainer": "dojo.widget.TabContainer",
85
			"tabcontroller": "dojo.widget.TabContainer",
86
			"taskbar": "dojo.widget.TaskBar",
87
			"textbox": "dojo.widget.Textbox",
88
			"timepicker": "dojo.widget.TimePicker",
89
			"timetextbox": "dojo.widget.DateTextbox",
90
			"titlepane": "dojo.widget.TitlePane",
91
			"toaster": "dojo.widget.Toaster",
92
			"toggler": "dojo.widget.Toggler",
93
			"toolbar": "dojo.widget.Toolbar",
94
			"toolbarcontainer": "dojo.widget.Toolbar",
95
			"toolbaritem": "dojo.widget.Toolbar",
96
			"toolbarbuttongroup": "dojo.widget.Toolbar",
97
			"toolbarbutton": "dojo.widget.Toolbar",
98
			"toolbardialog": "dojo.widget.Toolbar",
99
			"toolbarmenu": "dojo.widget.Toolbar",
100
			"toolbarseparator": "dojo.widget.Toolbar",
101
			"toolbarspace": "dojo.widget.Toolbar",
102
			"toolbarselect": "dojo.widget.Toolbar",
103
			"toolbarcolordialog": "dojo.widget.Toolbar",
104
			"tooltip": "dojo.widget.Tooltip",
105
			"tree": "dojo.widget.Tree",
106
			"treebasiccontroller": "dojo.widget.TreeBasicController",
107
			"treecontextmenu": "dojo.widget.TreeContextMenu",
108
			"treedisablewrapextension": "dojo.widget.TreeDisableWrapExtension",
109
			"treedociconextension": "dojo.widget.TreeDocIconExtension",
110
			"treeeditor": "dojo.widget.TreeEditor",
111
			"treeemphasizeonselect": "dojo.widget.TreeEmphasizeOnSelect",
112
			"treeexpandtonodeonselect": "dojo.widget.TreeExpandToNodeOnSelect",
113
			"treelinkextension": "dojo.widget.TreeLinkExtension",
114
			"treeloadingcontroller": "dojo.widget.TreeLoadingController",
115
			"treemenuitem": "dojo.widget.TreeContextMenu",
116
			"treenode": "dojo.widget.TreeNode",
117
			"treerpccontroller": "dojo.widget.TreeRPCController",
118
			"treeselector": "dojo.widget.TreeSelector",
119
			"treetoggleonselect": "dojo.widget.TreeToggleOnSelect",
120
			"treev3": "dojo.widget.TreeV3",
121
			"treebasiccontrollerv3": "dojo.widget.TreeBasicControllerV3",
122
			"treecontextmenuv3": "dojo.widget.TreeContextMenuV3",
123
			"treedndcontrollerv3": "dojo.widget.TreeDndControllerV3",
124
			"treeloadingcontrollerv3": "dojo.widget.TreeLoadingControllerV3",
125
			"treemenuitemv3": "dojo.widget.TreeContextMenuV3",
126
			"treerpccontrollerv3": "dojo.widget.TreeRpcControllerV3",
127
			"treeselectorv3": "dojo.widget.TreeSelectorV3",
128
			"urltextbox": "dojo.widget.InternetTextbox",
129
			"usphonenumbertextbox": "dojo.widget.UsTextbox",
130
			"ussocialsecuritynumbertextbox": "dojo.widget.UsTextbox",
131
			"usstatetextbox": "dojo.widget.UsTextbox",
132
			"usziptextbox": "dojo.widget.UsTextbox",
133
			"validationtextbox": "dojo.widget.ValidationTextbox",
134
			"treeloadingcontroller": "dojo.widget.TreeLoadingController",
135
			"wizardcontainer": "dojo.widget.Wizard",
136
			"wizardpane": "dojo.widget.Wizard",
137
			"yahoomap": "dojo.widget.YahooMap"
138
		},
139
		svg: {
140
			"chart": "dojo.widget.svg.Chart"
141
		},
142
		vml: {
143
			"chart": "dojo.widget.vml.Chart"
144
		}
145
	};
146
 
147
	dojo.addDojoNamespaceMapping = function(/*String*/shortName, /*String*/packageName){
148
	// summary:
149
	//	Add an entry to the mapping table for the dojo: namespace
150
	//
151
	// shortName: the name to be used as the widget's tag name in the dojo: namespace
152
	// packageName: the path to the Javascript module in dotted package notation
153
		map[shortName]=packageName;
154
	};
155
 
156
	function dojoNamespaceResolver(name, domain){
157
		if(!domain){ domain="html"; }
158
		if(!map[domain]){ return null; }
159
		return map[domain][name];
160
	}
161
 
162
	dojo.registerNamespaceResolver("dojo", dojoNamespaceResolver);
163
})();