Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<com:TContent ID="body" >
2
<!-- $Id: Home.page 2537 2008-10-20 08:05:02Z Christophe.Boulain $ -->
3
<h1 id="128031">Active Controls (AJAX enabled Controls)</h1>
4
<p id="640423" class="block-content">See the <a href="?page=ActiveControls.Introduction">Introduction</a>
5
for a quick overview of the concept behind active controls (AJAX enabled controls).
6
Most active controls have a property of
7
<a href="?page=ActiveControls.BaseActiveControl">ActiveControl</a> and
8
a sub-property <a href="?page=ActiveControls.CallbackClientSide">ClientSide</a>
9
that provides many properties to customize the controls. The
10
<a href="?page=TCallbackClientScript">CallbackClient</a> property of the
11
<tt>TPage</tt> class provides many methods to update and alter the client-side content
12
during a callback request. Active controls is reliant on a collection
13
of <a href="?page=ActiveControl.ClientSideJavascript">javascript classes</a>.
14
</p>
15
 
16
<p id="640424" class="block-content">For a quick demo of active controls, try the <a href="?page=ActiveControls.ActiveButton">
17
TActiveButton</a> control. See also the later part of the <a href="?page=Tutorial.CurrencyConverter">Currency Converter</a> tutorial for a more in depth example.
18
</p>
19
 
20
<p id="640425" class="block-content">* the tutorial for this control is not completed yet.</p>
21
 
22
<h2 id="128032">Standard Active Controls</h2>
23
<ul id="u1" class="block-content">
24
  <li>
25
  <a href="?page=ActiveControls.ActiveButton">TActiveButton</a>
26
  represents a click button on a Web page. It can be used to trigger a callback request.
27
  </li>
28
 
29
  <li>
30
  <a href="?page=ActiveControls.ActiveCheckBox">TActiveCheckBox</a>
31
  represents a checkbox on a Web page. It can be used to collect two-state user input
32
  and can trigger a callback request.
33
  </li>
34
 
35
  <li>
36
  <a href="?page=ActiveControls.ActiveCustomValidator">TActiveCustomValidator</a>
37
  validates a particular control using a callback request.
38
  </li>
39
 
40
  <li>
41
  <a href="?page=ActiveControls.ActiveHyperLink">TActiveHyperLink</a>
42
  represents a hyperlink on a Web page.
43
  </li>
44
 
45
  <li>
46
  * <a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
47
  represents an image on a Web page.
48
  </li>
49
 
50
  <li>
51
  * <a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
52
  represents a click button that has an image as the background.
53
  It is can be used to trigger a callback request.
54
  </li>
55
 
56
  <li>
57
  * <a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
58
	represents a label on a Web page.
59
	The label can be customized via various CSS attributes.
60
  </li>
61
 
62
  <li>
63
  * <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
64
	represents a hyperlink that can perform a callback request.
65
  </li>
66
 
67
  <li>
68
  * <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
69
  represents a container for other controls on a Web page. In HTML,
70
  it is displayed as a &lt;div&gt; element. The panel's contents
71
  can be replaced during a callback request.
72
  </li>
73
 
74
  <li>
75
  <a href="?page=ActiveControls.ActivePager">TActivePager</a>
76
  generates UI that allows users to interactively specify which page of
77
  data to be displayed in a data-bound control.
78
  </li>
79
 
80
  <li>
81
  * <a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
82
  represents a radiobutton on a Web page.
83
  It is mainly used in a group from which users make a choice. It can
84
  be used to perform a callback request.
85
  </li>
86
 
87
  <li>
88
  * <a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
89
	represents a text input field on a Web page.
90
	It can collect single-line, multi-line or password text input from users.
91
	It can be used to perform a callback request.
92
  </li>
93
 
94
  <li>
95
  * <a href="?page=ActiveControls.CallbackOptions">TCallbackOptions</a>
96
  	callback options such as <tt>OnLoading</tt> client-side event handlers.
97
  </li>
98
 
99
</ul>
100
 
101
<h2 id="128033">Active List Controls</h2>
102
<ul id="u2" class="block-content">
103
  <li>
104
  * <a href="?page=ActiveControls.ActiveCheckBoxList">TActiveCheckBoxList</a>
105
  displays a list of checkboxes on a Web page and each checkbox
106
  	can trigger a callback request.
107
  </li>
108
 
109
  <li>
110
  * <a href="?page=ActiveControls.ActiveDropDownList">TActiveDropDownList</a>
111
  displays a dropdown list box that allows users to select a
112
  single option from a few prespecified ones. It can be used
113
  to perform a callback request.
114
  </li>
115
 
116
  <li>
117
  * <a href="?page=ActiveControls.ActiveListBox">TActiveListBox</a>
118
  displays a list box that allows single or multiple selection. It can be used
119
  to perform a callback request.
120
  </li>
121
 
122
  <li>
123
  * <a href="?page=ActiveControls.ActiveRadioButtonList">TActiveRadioButtonList</a>
124
  is similar to TActiveCheckBoxList in every aspect except that each
125
  TActiveRadioButtonList displays a group of radiobuttons. Each radio button
126
  can perform a callback request.
127
  </li>
128
</ul>
129
 
130
<h2 id="128034">Extended Active Controls</h2>
131
 
132
 
133
<ul id="u3" class="block-content">
134
	<li>
135
	<a href="?page=ActiveControls.AutoComplete">TAutoComplete</a>
136
	extends TActiveTextBox to offer text completion suggestions.
137
	</li>
138
 
139
	<li>
140
	* <a href="?page=ActiveControls.Callback">TCallback</a>
141
	a generic control that can perform callback requests.
142
	</li>
143
 
144
	<li>
145
	* <a href="?page=ActiveControls.EventTriggeredCallback">TEventTriggeredCallback</a>
146
	triggers a callback request based on HTML DOM events.
147
	</li>
148
 
149
	<li>
150
	* <a href="?page=ActiveControls.InPlaceTextBox">TInPlaceTextBox</a>
151
	represents a label that can be edited by clicked.
152
	</li>
153
 
154
	<li>
155
	* <a href="?page=ActiveControls.TimeTriggeredCallback">TTimeTriggeredCallback</a>
156
	triggers a callback request based on time elapsed.
157
	</li>
158
 
159
	<li>
160
	* <a href="?page=ActiveControls.ValueTriggeredCallback">TValueTriggeredCallback</a>
161
	monitors (using a timer) an attribute of an HTML element and triggers a callback request
162
	when the attribute value changes.
163
	</li>
164
 
165
	<li>
166
	<a href="?page=ActiveControls.DragDrop">TDropContainer & TDraggable</a> represents drag and drop containers.
167
		The former will make its child controls "draggable" while the latter will raise a callback when a draggable
168
		control is dropped on it.
169
	</li>
170
 
171
</ul>
172
 
173
<h2 id="128035">Active Control Abilities</h2>
174
<p id="640426" class="block-content">The following table shows the Active Controls that can trigger a
175
callback event and whether the control will raise a PostBack event
176
if Javascript was disabled on the client's browser.</p>
177
<!-- tabular: align=|l|l|l|, width=(0.35 0.25 0.25) -->
178
<table class="tabular">
179
	<tr>
180
		<th>Control Name</th>
181
		<th>Triggers Callback</th>
182
		<th>Falls back to PostBack</th>
183
  </tr>
184
  <tr><td>
185
  		<a href="?page=ActiveControls.ActiveButton">TActiveButton</a>
186
  	</td>
187
  	<td>Yes</td>
188
  	<td>Yes</td>
189
  </tr>
190
 
191
  <tr><td>
192
  	<a href="?page=ActiveControls.ActiveCheckBox">TActiveCheckBox</a>
193
  	</td>
194
  	<td>Yes</td>
195
  	<td>Yes</td>
196
  </tr>
197
 
198
  <tr><td>
199
  	<a href="?page=ActiveControls.ActiveCustomValidator">TActiveCustomValidator</a>
200
  	</td>
201
  	<td>Yes</td>
202
  	<td>Yes</td>
203
  </tr>
204
 
205
  <tr><td>
206
  	<a href="?page=ActiveControls.ActiveHyperLink">TActiveHyperLink</a>
207
  	</td>
208
  	<td>No</td><td>Yes</td>
209
  </tr>
210
 
211
  <tr><td>
212
  	<a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
213
  </td>
214
  <td>No</td><td>Yes</td>
215
  </tr>
216
 
217
  <tr><td>
218
  	<a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
219
	</td>
220
	<td>Yes</td><td>Yes</td>
221
  </tr>
222
 
223
  <tr><td>
224
  <a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
225
	</td>
226
	<td>No</td><td>Yes</td>
227
  </tr>
228
 
229
  <tr><td>
230
  <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
231
	</td>
232
	<td>Yes</td><td>No</td>
233
  </tr>
234
 
235
  <tr><td>
236
  <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
237
  </td>
238
  <td>No</td><td>Yes</td>
239
  </tr>
240
 
241
  <tr><td>
242
  <a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
243
  </td>
244
  <td>Yes</td><td>Yes</td>
245
  </tr>
246
 
247
  <tr><td>
248
  <a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
249
	</td>
250
	<td>Yes</td><td>Yes</td>
251
  </tr>
252
 
253
  <tr><td>
254
  <a href="?page=ActiveControls.CallbackOptions">TCallbackOptions</a>
255
	</td>
256
	<td>No</td><td>N/A</td>
257
  </tr>
258
 
259
 
260
  <tr><td>
261
  <a href="?page=ActiveControls.ActiveCheckBoxList">TActiveCheckBoxList</a>
262
  </td>
263
  <td>Yes</td><td>Yes</td>
264
  </tr>
265
 
266
  <tr><td>
267
  <a href="?page=ActiveControls.ActiveDropDownList">TActiveDropDownList</a>
268
  </td>
269
  <td>Yes</td><td>Yes</td>
270
  </tr>
271
 
272
  <tr><td>
273
  <a href="?page=ActiveControls.ActiveListBox">TActiveListBox</a>
274
  </td>
275
  <td>Yes</td><td>Yes</td>
276
  </tr>
277
 
278
  <tr><td>
279
  <a href="?page=ActiveControls.ActiveRadioButtonList">TActiveRadioButtonList</a>
280
  </td>
281
  <td>Yes</td><td>Yes</td>
282
  </tr>
283
 
284
  <tr><td>
285
	<a href="?page=ActiveControls.AutoComplete">TAutoComplete</a>
286
  </td>
287
  <td>Yes</td>
288
  <td>No</td>
289
  </tr>
290
 
291
  <tr><td>
292
	<a href="?page=ActiveControls.Callback">TCallback</a>
293
  </td>
294
  <td>Yes</td><td>No</td>
295
  </tr>
296
 
297
  <tr><td>
298
	<a href="?page=ActiveControls.EventTriggeredCallback">TEventTriggeredCallback</a>
299
  </td>
300
  <td>Yes</td><td>No</td>
301
  </tr>
302
 
303
 <tr><td>
304
	<a href="?page=ActiveControls.InPlaceTextBox">TInPlaceTextBox</a>
305
  </td>
306
  <td>Yes</td><td>No</td>
307
  </tr>
308
 
309
 <tr><td>
310
	<a href="?page=ActiveControls.TimeTriggeredCallback">TTimeTriggeredCallback</a>
311
	</td>
312
	<td>Yes</td><td>No</td>
313
  </tr>
314
 
315
  <tr><td>
316
	<a href="?page=ActiveControls.ValueTriggeredCallback">TValueTriggeredCallback</a>
317
	</td>
318
	<td>Yes</td><td>No</td>
319
  </tr>
320
 
321
  <tr><td>
322
  	<a href="?page=ActiveControls.DragDrop">TDropContainer</a>
323
  	</td>
324
  	<td>Yes</td><td>No</td>
325
  </tr>
326
 
327
  <tr><td>
328
  	<a href="?page=ActiveControls.DragDrop">TDraggable</a>
329
  	</td>
330
  	<td>No</td><td>No</td>
331
  </tr>
332
 
333
 
334
</table>
335
 
336
<h2 id="128036">Active Control Infrastructure Classes</h2>
337
<p id="640427" class="block-content">The following classes provide the basic infrastructure classes required to
338
realize the active controls.</p>
339
<ul id="u4" class="block-content">
340
	<li>
341
	* <a href="?page=ActiveControls.ActiveControlAdapter">TActiveControlAdapter</a>
342
	tracks the viewstate values of the control and update differences of the client-side HTML
343
	element attributes.
344
	</li>
345
 
346
	<li>
347
	* <a href="?page=ActiveControls.ActiveListControlAdapter">TActiveListControlAdapter</a>
348
	allows the adapted list controls to change the selections on the client-side during
349
	a callback request.
350
	</li>
351
 
352
	<li>
353
	* <a href="?page=ActiveControls.ActivePageAdapter">TActivePageAdapter</a>
354
	process the page life-cycle for callback requests.
355
	</li>
356
 
357
	<li>
358
	* <a href="?page=ActiveControls.BaseActiveControl">TBaseActiveControl</a>
359
	common active control methods and options.
360
	</li>
361
 
362
	<li>
363
	* <a href="?page=ActiveControls.CallbackClientScript">TCallbackClientScript</a>
364
	methods to manipulate the client-side HTML elements, also includes methods
365
	to invoke javascript Effects on HTML elements.
366
	</li>
367
 
368
	<li>
369
	* <a href="?page=ActiveControls.CallbackClientSide">TCallbackClientSide</a>
370
	common client-side callback request options, and client-side event handlers.
371
	</li>
372
 
373
	<li>
374
	* <a href="?page=ActiveControls.CallbackResponseAdapter">TCallbackResponseAdapter</a>
375
	HTTP response for callback requests.
376
	</li>
377
 
378
</ul>
379
 
380
<div class="last-modified">$Id: Home.page 2537 2008-10-20 08:05:02Z Christophe.Boulain $</div></com:TContent>