Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
875 lars 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
	<head>
5
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
		<meta name="generator" content="JsDoc Toolkit" />
7
 
8
		<title>JsDoc Reference - PubSub</title>
9
 
10
		<style type="text/css">
11
			/* default.css */
12
body
13
{
14
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
15
	width: 800px;
16
}
17
 
18
.header
19
{
20
	clear: both;
21
	background-color: #ccc;
22
	padding: 8px;
23
}
24
 
25
h1
26
{
27
	font-size: 150%;
28
	font-weight: bold;
29
	padding: 0;
30
	margin: 1em 0 0 .3em;
31
}
32
 
33
hr
34
{
35
	border: none 0;
36
	border-top: 1px solid #7F8FB1;
37
	height: 1px;
38
}
39
 
40
pre.code
41
{
42
	display: block;
43
	padding: 8px;
44
	border: 1px dashed #ccc;
45
}
46
 
47
#index
48
{
49
	margin-top: 24px;
50
	float: left;
51
	width: 160px;
52
	position: absolute;
53
	left: 8px;
54
	background-color: #F3F3F3;
55
	padding: 8px;
56
}
57
 
58
#content
59
{
60
	margin-left: 190px;
61
	width: 600px;
62
}
63
 
64
.classList
65
{
66
	list-style-type: none;
67
	padding: 0;
68
	margin: 0 0 0 8px;
69
	font-family: arial, sans-serif;
70
	font-size: 1em;
71
	overflow: auto;
72
}
73
 
74
.classList li
75
{
76
	padding: 0;
77
	margin: 0 0 8px 0;
78
}
79
 
80
.summaryTable { width: 100%; }
81
 
82
h1.classTitle
83
{
84
	font-size:170%;
85
	line-height:130%;
86
}
87
 
88
h2 { font-size: 110%; }
89
caption, div.sectionTitle
90
{
91
	background-color: #7F8FB1;
92
	color: #fff;
93
	font-size:130%;
94
	text-align: left;
95
	padding: 2px 6px 2px 6px;
96
	border: 1px #7F8FB1 solid;
97
}
98
 
99
div.sectionTitle { margin-bottom: 8px; }
100
.summaryTable thead { display: none; }
101
 
102
.summaryTable td
103
{
104
	vertical-align: top;
105
	padding: 4px;
106
	border-bottom: 1px #7F8FB1 solid;
107
	border-right: 1px #7F8FB1 solid;
108
}
109
 
110
/*col#summaryAttributes {}*/
111
.summaryTable td.attributes
112
{
113
	border-left: 1px #7F8FB1 solid;
114
	width: 140px;
115
	text-align: right;
116
}
117
 
118
td.attributes, .fixedFont
119
{
120
	line-height: 15px;
121
	color: #002EBE;
122
	font-family: "Courier New",Courier,monospace;
123
	font-size: 13px;
124
}
125
 
126
.summaryTable td.nameDescription
127
{
128
	text-align: left;
129
	font-size: 13px;
130
	line-height: 15px;
131
}
132
 
133
.summaryTable td.nameDescription, .description
134
{
135
	line-height: 15px;
136
	padding: 4px;
137
	padding-left: 4px;
138
}
139
 
140
.summaryTable { margin-bottom: 8px; }
141
 
142
ul.inheritsList
143
{
144
	list-style: square;
145
	margin-left: 20px;
146
	padding-left: 0;
147
}
148
 
149
.detailList {
150
	margin-left: 20px;
151
	line-height: 15px;
152
}
153
.detailList dt { margin-left: 20px; }
154
 
155
.detailList .heading
156
{
157
	font-weight: bold;
158
	padding-bottom: 6px;
159
	margin-left: 0;
160
}
161
 
162
.light, td.attributes, .light a:link, .light a:visited
163
{
164
	color: #777;
165
	font-style: italic;
166
}
167
 
168
.fineprint
169
{
170
	text-align: right;
171
	font-size: 10px;
172
}
173
		</style>
174
	</head>
175
 
176
	<body>
177
<!-- ============================== header ================================= -->
178
		<!-- begin static/header.html -->
179
		<div id="header">
180
</div>
181
		<!-- end static/header.html -->
182
 
183
<!-- ============================== classes index ============================ -->
184
		<div id="index">
185
			<!-- begin publish.classesIndex -->
186
			<div align="center"><a href="../index.html">Class Index</a>
187
| <a href="../files.html">File Index</a></div>
188
<hr />
189
<h2>Classes</h2>
190
<ul class="classList">
191
 
192
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
193
 
194
	<li><a href="../symbols/FontObject.html">FontObject</a></li>
195
 
196
	<li><a href="../symbols/jsPDF.html">jsPDF</a></li>
197
 
198
	<li><a href="../symbols/PubSub.html">PubSub</a></li>
199
 
200
</ul>
201
<hr />
202
			<!-- end publish.classesIndex -->
203
		</div>
204
 
205
		<div id="content">
206
<!-- ============================== class title ============================ -->
207
			<h1 class="classTitle">
208
 
209
				Class PubSub
210
			</h1>
211
 
212
<!-- ============================== class summary ========================== -->
213
			<p class="description">
214
 
215
 
216
 
217
 
218
 
219
 
220
					<br /><i>Defined in: </i> <a href="../symbols/src/c__work_jsPDF_jspdf.js.html">jspdf.js</a>.
221
 
222
			</p>
223
 
224
<!-- ============================== constructor summary ==================== -->
225
 
226
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class PubSub.">
227
				<caption>Class Summary</caption>
228
				<thead>
229
					<tr>
230
						<th scope="col">Constructor Attributes</th>
231
						<th scope="col">Constructor Name and Description</th>
232
					</tr>
233
				</thead>
234
				<tbody>
235
					<tr>
236
						<td class="attributes">&nbsp;</td>
237
						<td class="nameDescription" >
238
							<div class="fixedFont">
239
								<b><a href="../symbols/PubSub.html#constructor">PubSub</a></b>()
240
							</div>
241
							<div class="description">PubSub implementation</div>
242
						</td>
243
					</tr>
244
				</tbody>
245
			</table>
246
 
247
 
248
<!-- ============================== properties summary ===================== -->
249
 
250
 
251
<!-- ============================== methods summary ======================== -->
252
 
253
 
254
 
255
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class PubSub.">
256
					<caption>Method Summary</caption>
257
					<thead>
258
						<tr>
259
							<th scope="col">Method Attributes</th>
260
							<th scope="col">Method Name and Description</th>
261
						</tr>
262
					</thead>
263
					<tbody>
264
 
265
						<tr>
266
							<td class="attributes">&nbsp;</td>
267
							<td class="nameDescription">
268
								<div class="fixedFont"><b><a href="../symbols/PubSub.html#publish">publish</a></b>(topic, **args)
269
								</div>
270
								<div class="description">Allows caller to emit an event and pass arguments to event listeners.</div>
271
							</td>
272
						</tr>
273
 
274
						<tr>
275
							<td class="attributes">&nbsp;</td>
276
							<td class="nameDescription">
277
								<div class="fixedFont"><b><a href="../symbols/PubSub.html#subscribe">subscribe</a></b>(topic, callback, once)
278
								</div>
279
								<div class="description">Allows listener code to subscribe to channel and be called when data is available</div>
280
							</td>
281
						</tr>
282
 
283
						<tr>
284
							<td class="attributes">&nbsp;</td>
285
							<td class="nameDescription">
286
								<div class="fixedFont"><b><a href="../symbols/PubSub.html#unsubscribe">unsubscribe</a></b>(token)
287
								</div>
288
								<div class="description">Allows listener code to unsubscribe from a channel</div>
289
							</td>
290
						</tr>
291
 
292
					</tbody>
293
				</table>
294
 
295
 
296
 
297
 
298
<!-- ============================== events summary ======================== -->
299
 
300
 
301
<!-- ============================== constructor details ==================== -->
302
 
303
			<div class="details"><a name="constructor"> </a>
304
				<div class="sectionTitle">
305
					Class Detail
306
				</div>
307
 
308
				<div class="fixedFont">
309
						<b>PubSub</b>()
310
				</div>
311
 
312
				<div class="description">
313
					PubSub implementation
314
 
315
				</div>
316
 
317
 
318
 
319
 
320
 
321
 
322
 
323
 
324
 
325
 
326
 
327
 
328
			</div>
329
 
330
 
331
<!-- ============================== field details ========================== -->
332
 
333
 
334
<!-- ============================== method details ========================= -->
335
 
336
				<div class="sectionTitle">
337
					Method Detail
338
				</div>
339
 
340
					<a name="publish"> </a>
341
					<div class="fixedFont">
342
 
343
 
344
					<b>publish</b>(topic, **args)
345
 
346
					</div>
347
					<div class="description">
348
						Allows caller to emit an event and pass arguments to event listeners.
349
 
350
 
351
					</div>
352
 
353
 
354
 
355
 
356
							<dl class="detailList">
357
							<dt class="heading">Parameters:</dt>
358
 
359
								<dt>
360
									<b>topic</b>
361
 
362
								</dt>
363
								<dd>{String} Name of the channel on which to voice this event</dd>
364
 
365
								<dt>
366
									<b>**args</b>
367
 
368
								</dt>
369
								<dd>Any number of arguments you want to pass to the listeners of this event.</dd>
370
 
371
							</dl>
372
 
373
 
374
 
375
 
376
 
377
 
378
 
379
 
380
					<hr />
381
 
382
					<a name="subscribe"> </a>
383
					<div class="fixedFont">
384
 
385
					<span class="light">{Object}</span>
386
					<b>subscribe</b>(topic, callback, once)
387
 
388
					</div>
389
					<div class="description">
390
						Allows listener code to subscribe to channel and be called when data is available
391
 
392
 
393
					</div>
394
 
395
 
396
 
397
 
398
							<dl class="detailList">
399
							<dt class="heading">Parameters:</dt>
400
 
401
								<dt>
402
									<b>topic</b>
403
 
404
								</dt>
405
								<dd>{String} Name of the channel on which to voice this event</dd>
406
 
407
								<dt>
408
									<b>callback</b>
409
 
410
								</dt>
411
								<dd>{Function} Executable (function pointer) that will be ran when event is voiced on this channel.</dd>
412
 
413
								<dt>
414
									<b>once</b>
415
 
416
								</dt>
417
								<dd>{Boolean} (optional. False by default) Flag indicating if the function is to be triggered only once.</dd>
418
 
419
							</dl>
420
 
421
 
422
 
423
 
424
 
425
							<dl class="detailList">
426
							<dt class="heading">Returns:</dt>
427
 
428
								<dd><span class="light fixedFont">{Object}</span> A token object that cen be used for unsubscribing.</dd>
429
 
430
							</dl>
431
 
432
 
433
 
434
 
435
					<hr />
436
 
437
					<a name="unsubscribe"> </a>
438
					<div class="fixedFont">
439
 
440
 
441
					<b>unsubscribe</b>(token)
442
 
443
					</div>
444
					<div class="description">
445
						Allows listener code to unsubscribe from a channel
446
 
447
 
448
					</div>
449
 
450
 
451
 
452
 
453
							<dl class="detailList">
454
							<dt class="heading">Parameters:</dt>
455
 
456
								<dt>
457
									<b>token</b>
458
 
459
								</dt>
460
								<dd>{Object} A token object that was returned by `subscribe` method</dd>
461
 
462
							</dl>
463
 
464
 
465
 
466
 
467
 
468
 
469
 
470
 
471
 
472
 
473
 
474
 
475
<!-- ============================== event details ========================= -->
476
 
477
 
478
			<hr />
479
		</div>
480
 
481
 
482
<!-- ============================== footer ================================= -->
483
		<div class="fineprint" style="clear:both">
484
 
485
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Mon Oct 15 2012 22:41:49 GMT-0700 (PDT)
486
		</div>
487
	</body>
488
</html>