Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
		"http://www.w3.org/TR/html4/strict.dtd">
3
<html>
4
	<head>
5
		<title>Test Widget Templates in Multiple Themes</title>
6
 
7
		<script type="text/javascript" src="../../dojo/dojo.js"
8
			djConfig="parseOnLoad: true, isDebug: true"></script>
9
		<script type="text/javascript" src="../tests/_testCommon.js"></script>
10
 
11
		<script type="text/javascript">
12
			dojo.require("dijit.Menu");
13
			dojo.require("dijit.form.Button");
14
			dojo.require("dijit.form.ComboBox");
15
			dojo.require("dijit.form.NumberSpinner");
16
			dojo.require("dojo.parser");
17
			logMessage = console.debug;
18
		</script>
19
		<style type="text/css">
20
			@import "../../dojo/resources/dojo.css";
21
			@import "noir/noir.css";
22
			@import "tundra/tundra.css";
23
			@import "soria/soria.css";
24
			@import "../tests/css/dijitTests.css";
25
 
26
			/* group multiple buttons in a row */
27
			body {
28
				margin:10px;
29
			}
30
			.box {
31
				display: block;
32
			}
33
			.box .dijitButton {
34
				margin-right: 10px;
35
			}
36
 
37
		</style>
38
	</head>
39
	<body>
40
		<h2>Tundra</h2>
41
		<div id='tundra' class="box tundra">
42
			<button id='foo' dojoType="dijit.form.Button" onClick='logMessage("clicked simple")'>
43
				Button
44
			</button>
45
			<button dojoType="dijit.form.Button" iconClass="noteIcon" onClick='logMessage("clicked simple")'>
46
				Button w/image
47
			</button>
48
			<button dojoType="dijit.form.Button" onClick='logMessage("clicked simple")' disabled='true'>
49
				Disabled Button
50
			</button>
51
		<br><br>
52
			<button dojoType="dijit.form.DropDownButton">
53
				<span>Drop Down Button</span>
54
				<div dojoType="dijit.Menu" id="editMenu" style="display: none;">
55
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCut"
56
						onClick="logMessage('not actually cutting anything, just a test!')">Cut</div>
57
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCopy"
58
						onClick="logMessage('not actually copying anything, just a test!')">Copy</div>
59
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconPaste"
60
						onClick="logMessage('not actually pasting anything, just a test!')">Paste</div>
61
				</div>
62
			</button>
63
			<button dojoType="dijit.form.DropDownButton" iconClass="noteIcon">
64
				<span>Button w/image</span>
65
				<div dojoType="dijit.Menu" id="editMenu2" style="display: none;">
66
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCut"
67
						onClick="logMessage('not actually cutting anything, just a test!')">Cut</div>
68
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCopy"
69
						onClick="logMessage('not actually copying anything, just a test!')">Copy</div>
70
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconPaste"
71
						onClick="logMessage('not actually pasting anything, just a test!')">Paste</div>
72
				</div>
73
			</button>
74
			<button dojoType="dijit.form.DropDownButton" disabled='true'>
75
				<span>Drop Down Disabled</span>
76
				<div dojoType="dijit.Menu" id="editMenu3" style="display: none;">
77
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCut"
78
						onClick="logMessage('not actually cutting anything, just a test!')">Cut</div>
79
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCopy"
80
						onClick="logMessage('not actually copying anything, just a test!')">Copy</div>
81
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconPaste"
82
						onClick="logMessage('not actually pasting anything, just a test!')">Paste</div>
83
				</div>
84
			</button>
85
		<br><br>
86
			<button dojoType="dijit.form.ComboButton" onClick='logMessage("clicked combo save")'>
87
				<span>Combo Button</span>
88
				<div dojoType="dijit.Menu" id="saveMenu" style="display: none;">
89
					<div dojoType="dijit.MenuItem" iconSrc="../../templates/buttons/save.gif"
90
						onClick="logMessage('not actually saving anything, just a test!')">Save</div>
91
					<div dojoType="dijit.MenuItem" iconSrc="../../templates/buttons/save.gif"
92
						onClick="logMessage('not actually saving anything, just a test!')">Save As</div>
93
				</div>
94
			</button>
95
			<button dojoType="dijit.form.ComboButton" iconClass="noteIcon" onClick='logMessage("clicked combo save")'>
96
				<span>Combo w/image</span>
97
				<div dojoType="dijit.Menu" id="saveMenu" style="display: none;">
98
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconSave"
99
						onClick="logMessage('not actually saving anything, just a test!')">Save</div>
100
					<div dojoType="dijit.MenuItem"
101
						onClick="logMessage('not actually saving anything, just a test!')">Save As</div>
102
				</div>
103
			</button>
104
			<button dojoType="dijit.form.ComboButton" onClick='logMessage("clicked combo save")' disabled='true'>
105
				<span>Combo Disabled</span>
106
				<div dojoType="dijit.Menu" id="saveMenu" style="display: none;">
107
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconSave"
108
						onClick="logMessage('not actually saving anything, just a test!')">Save</div>
109
					<div dojoType="dijit.MenuItem"
110
						onClick="logMessage('not actually saving anything, just a test!')">Save As</div>
111
				</div>
112
			</button>
113
		<br><br>
114
			<input dojoType="dijit.form.ComboBox"
115
					value="California"
116
					class="medium"
117
					url="../tests/form/states.json"
118
					searchAttr="name"
119
					labelField="label"
120
					labelType="html"
121
					style="width: 300px;"
122
					name="state2"
123
					promptMessage="Please enter a state"
124
					id="datatest"
125
			>
126
 
127
			<input dojoType="dijit.form.ComboBox"
128
					value="California"
129
					class="medium"
130
					url="../tests/form/states.json"
131
					searchAttr="name"
132
					labelField="label"
133
					labelType="html"
134
					style="width: 300px;"
135
					name="state2"
136
					promptMessage="Please enter a state"
137
					id="datatest"
138
					disabled="true"
139
			>
140
 
141
		<br><br>
142
		<input dojoType="dijit.form.NumberSpinner"
143
			onChange="console.debug('onChange fired for widget id = ' + this.id + ' with value = ' + arguments[0]);"
144
			value="900"
145
			constraints={max:1550,places:0}
146
			maxLength="10"
147
			id="integerspinner1">
148
 
149
 
150
		<input dojoType="dijit.form.NumberSpinner"
151
			onChange="console.debug('onChange fired for widget id = ' + this.id + ' with value = ' + arguments[0]);"
152
			value="900"
153
			disabled='true'
154
			constraints={max:1550,places:0}
155
			maxLength="10"
156
			id="integerspinner1">
157
 
158
		</div>
159
		<br clear=both>
160
 
161
		<h2>Noir</h2>
162
		<div id='noir' class="box noir">
163
		</div>
164
		<br clear=both>
165
 
166
		<h2>Soria</h2>
167
		<div id='soria' class="box soria">
168
		</div>
169
		<br clear=both>
170
 
171
		<h2>a11y mode</h2>
172
		<div id='a11y' class="box dijit_a11y">
173
		</div>
174
		<br clear=both>
175
 
176
 
177
 
178
<script language='javascript'>
179
	var html = dojo.byId("tundra").innerHTML;
180
	dojo.byId("noir").innerHTML = html;
181
	dojo.byId("a11y").innerHTML = html;
182
	dojo.byId("soria").innerHTML = html;
183
</script>
184
 
185
	</body>
186
</html>