File: classWt_1_1Ext_1_1ComboBox.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (517 lines) | stat: -rw-r--r-- 31,625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::Ext::ComboBox Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="namespaceWt_1_1Ext.html">Ext</a>::<a class="el" href="classWt_1_1Ext_1_1ComboBox.html">ComboBox</a>
  </div>
</div>
<div class="contents">
<h1>Wt::Ext::ComboBox Class Reference<br>
<small>
[<a class="el" href="group__ext.html">Ext widgets</a>,&nbsp;<a class="el" href="group__modelview.html">Model/view system</a>]</small>
</h1><!-- doxytag: class="Wt::Ext::ComboBox" --><!-- doxytag: inherits="Wt::Ext::LineEdit" -->A widget that provides a drop-down combo-box control.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/Ext/ComboBox&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::Ext::ComboBox:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1Ext_1_1ComboBox__inherit__graph.png" border="0" usemap="#Wt_1_1Ext_1_1ComboBox__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1Ext_1_1ComboBox__inherit__map">
<area shape="rect" href="classWt_1_1Ext_1_1LineEdit.html" title="A line edit." alt="" coords="15,453,135,480"><area shape="rect" href="classWt_1_1Ext_1_1FormField.html" title="An abstract base class for form fields." alt="" coords="9,379,140,405"><area shape="rect" href="classWt_1_1Ext_1_1Component.html" title="An abstract base class for widgets that can be visually disabled." alt="" coords="5,304,144,331"><area shape="rect" href="classWt_1_1Ext_1_1Widget.html" title="An abstract base class for all Ext widgets." alt="" coords="19,229,131,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="13,155,136,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="27,80,123,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="27,5,123,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1Ext_1_1ComboBox-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8183ecd2ee82149a57121dc6cce94538"></a><!-- doxytag: member="Wt::Ext::ComboBox::ComboBox" ref="8183ecd2ee82149a57121dc6cce94538" args="(WContainerWidget *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#8183ecd2ee82149a57121dc6cce94538">ComboBox</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an empty combo-box with optional <em>parent</em>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#282ddb37ddc6d8606e2385a742a60452">addItem</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add an option item.  <a href="#282ddb37ddc6d8606e2385a742a60452"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="388ebac95d30babbd8cc494837932587"></a><!-- doxytag: member="Wt::Ext::ComboBox::count" ref="388ebac95d30babbd8cc494837932587" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#388ebac95d30babbd8cc494837932587">count</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of items. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#abc76822524dbe503909472ea2aac8db">currentIndex</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the currently selected item.  <a href="#abc76822524dbe503909472ea2aac8db"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#6e9f541c754551c1ecbcdeb9337ecfb3">insertItem</a> (int index, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Insert an option item at the specified position.  <a href="#6e9f541c754551c1ecbcdeb9337ecfb3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#b17f27bcbd7d93db4f0147699bbdb5a0">removeItem</a> (int index)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove the option item at the specified position.  <a href="#b17f27bcbd7d93db4f0147699bbdb5a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#1c9f4f4be0dd147954e8b21931511cdd">setCurrentIndex</a> (int index)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the current selection.  <a href="#1c9f4f4be0dd147954e8b21931511cdd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#808bf7caa59a88c172124fe73090a964">setItemText</a> (int index, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the text for a specified option.  <a href="#808bf7caa59a88c172124fe73090a964"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#a0a811e97424b7980f4da77c3711c72a">currentText</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the text of the currently selected item.  <a href="#a0a811e97424b7980f4da77c3711c72a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#59faa0b8b2cb3a2b25a4b47eb82ecb8b">itemText</a> (int index) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the text of a particular item.  <a href="#59faa0b8b2cb3a2b25a4b47eb82ecb8b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#54d18b5dde4bd46b830c2b2ecd6d0765">setModel</a> (<a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *model)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the model to be used for the items.  <a href="#54d18b5dde4bd46b830c2b2ecd6d0765"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#46e2c9ac50d405d5e4ad8215ce5bb885">setModelColumn</a> (int index)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the column in the model to be used for the items.  <a href="#46e2c9ac50d405d5e4ad8215ce5bb885"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#0c150137b5ad059ba66ee8f0b85b3585">setEditable</a> (bool how)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set if the combo-box is editable.  <a href="#0c150137b5ad059ba66ee8f0b85b3585"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#8310599aaa5efc0ae08cf9323f321a7f">setQueryDelay</a> (int milliSeconds)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configure the delay to filter the list matching the current input.  <a href="#8310599aaa5efc0ae08cf9323f321a7f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#181b1185f0ae607c61c62e900cbe479c">setMinQueryLength</a> (int numChars)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configure the minimum number of characters to be entered before filtering the drop-down list.  <a href="#181b1185f0ae607c61c62e900cbe479c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#7e723bcbf36890f51805d8c373198ded">setPageSize</a> (int pageSize)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configure a page size to show matching values one page at a time.  <a href="#7e723bcbf36890f51805d8c373198ded"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#8cbea60f93ad91387200a3e49e33eaf0">setDataLocation</a> (<a class="el" href="group__ext.html#g5bc908c6e6aa90646cca1276d68cb2b2">DataLocation</a> dataLocation)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configure the location of the data for the combo-box.  <a href="#8cbea60f93ad91387200a3e49e33eaf0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#48b20b2d00b523a28e2c1bd0a1a9bfcd">refresh</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Refresh the widget.  <a href="#48b20b2d00b523a28e2c1bd0a1a9bfcd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f91ec32bf3c21c1ccb34d0cd4ad5f8bf"></a><!-- doxytag: member="Wt::Ext::ComboBox::clear" ref="f91ec32bf3c21c1ccb34d0cd4ad5f8bf" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#f91ec32bf3c21c1ccb34d0cd4ad5f8bf">clear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clear all items. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9cde6eed9970ddf8523ecb35c717c1b5"></a><!-- doxytag: member="Wt::Ext::ComboBox::activated" ref="9cde6eed9970ddf8523ecb35c717c1b5" args="()" -->
<a class="el" href="classWt_1_1JSignal.html">JSignal</a>&lt; int &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#9cde6eed9970ddf8523ecb35c717c1b5">activated</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the selection changed. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A widget that provides a drop-down combo-box control. 
<p>
A combo-box provides the user with a choice of options to chose from. Use <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#282ddb37ddc6d8606e2385a742a60452" title="Add an option item.">addItem(const WString&amp;)</a> or <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#6e9f541c754551c1ecbcdeb9337ecfb3" title="Insert an option item at the specified position.">insertItem(int, const WString&amp;)</a> to populate the combo-box. All the content can be cleared through <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#f91ec32bf3c21c1ccb34d0cd4ad5f8bf" title="Clear all items.">clear()</a>.<p>
To act on a new selection, either connect a slot to the <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#9cde6eed9970ddf8523ecb35c717c1b5" title="Signal emitted when the selection changed.">activated()</a> signal.<p>
At all times, the current selection index is available through <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#abc76822524dbe503909472ea2aac8db" title="Get the currently selected item.">currentIndex()</a> or the text using <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#a0a811e97424b7980f4da77c3711c72a" title="Get the text of the currently selected item.">currentText()</a>.<p>
By default the ComboBox uses a <a class="el" href="classWt_1_1WStringListModel.html" title="An model that manages a list of strings.">WStringListModel</a> to store the items. This may be changed by specifying a custom model with <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#54d18b5dde4bd46b830c2b2ecd6d0765" title="Set the model to be used for the items.">setModel()</a>.<p>
When the combobox is configured to be <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#0c150137b5ad059ba66ee8f0b85b3585">editable</a>, the user may enter a value which is not available in the list of values. In that case, <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#a0a811e97424b7980f4da77c3711c72a" title="Get the text of the currently selected item.">currentText()</a> will hold this value, while <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#abc76822524dbe503909472ea2aac8db" title="Get the currently selected item.">currentIndex()</a> == -1 indicates that the value was not in the list.<p>
By default, all the data is downloaded to the client. This may be changed using <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#8cbea60f93ad91387200a3e49e33eaf0" title="Configure the location of the data for the combo-box.">setDataLocation(DataLocation)</a> to keep the data at hte server, and download data on-demand. This is useful if you have a very large list of options.<p>
The API is a superset of the <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a> API.<p>
<div align="center">
<img src="ExtComboBox-1.png" alt="ExtComboBox-1.png">
<p><strong>ComboBox with expanded drop-down list.</strong></p></div>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="282ddb37ddc6d8606e2385a742a60452"></a><!-- doxytag: member="Wt::Ext::ComboBox::addItem" ref="282ddb37ddc6d8606e2385a742a60452" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::addItem           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add an option item. 
<p>
Equivalent to <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#6e9f541c754551c1ecbcdeb9337ecfb3">insertItem </a> (<a class="el" href="classWt_1_1Ext_1_1ComboBox.html#388ebac95d30babbd8cc494837932587" title="Get the number of items.">count()</a>, <em>text</em>). 
</div>
</div><p>
<a class="anchor" name="abc76822524dbe503909472ea2aac8db"></a><!-- doxytag: member="Wt::Ext::ComboBox::currentIndex" ref="abc76822524dbe503909472ea2aac8db" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Ext::ComboBox::currentIndex           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the currently selected item. 
<p>
If no item is currently selected, the method returns -1. <br>
 If the combo-box is <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#0c150137b5ad059ba66ee8f0b85b3585">editable</a> and the entered text does not match an existing item, then this method also returns -1. Otherwise the index is returned of the first item that matches the value of <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#a0a811e97424b7980f4da77c3711c72a" title="Get the text of the currently selected item.">currentText()</a>. 
</div>
</div><p>
<a class="anchor" name="6e9f541c754551c1ecbcdeb9337ecfb3"></a><!-- doxytag: member="Wt::Ext::ComboBox::insertItem" ref="6e9f541c754551c1ecbcdeb9337ecfb3" args="(int index, const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::insertItem           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Insert an option item at the specified position. 
<p>
The option item is inserted at position <em>index</em>. 
</div>
</div><p>
<a class="anchor" name="b17f27bcbd7d93db4f0147699bbdb5a0"></a><!-- doxytag: member="Wt::Ext::ComboBox::removeItem" ref="b17f27bcbd7d93db4f0147699bbdb5a0" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::removeItem           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Remove the option item at the specified position. 
<p>
The option item at position <em>index</em> will be removed. 
</div>
</div><p>
<a class="anchor" name="1c9f4f4be0dd147954e8b21931511cdd"></a><!-- doxytag: member="Wt::Ext::ComboBox::setCurrentIndex" ref="1c9f4f4be0dd147954e8b21931511cdd" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setCurrentIndex           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Change the current selection. 
<p>
Specify a value of -1 for <em>index</em> to clear the selection. 
</div>
</div><p>
<a class="anchor" name="808bf7caa59a88c172124fe73090a964"></a><!-- doxytag: member="Wt::Ext::ComboBox::setItemText" ref="808bf7caa59a88c172124fe73090a964" args="(int index, const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setItemText           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Change the text for a specified option. 
<p>
Use this method to change the text for the item at position <em>index</em>. 
</div>
</div><p>
<a class="anchor" name="a0a811e97424b7980f4da77c3711c72a"></a><!-- doxytag: member="Wt::Ext::ComboBox::currentText" ref="a0a811e97424b7980f4da77c3711c72a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a> Wt::Ext::ComboBox::currentText           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the text of the currently selected item. 
<p>
This retrieves the current text entered by the user. When the combo-box is <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#0c150137b5ad059ba66ee8f0b85b3585">editable</a>, this may be text that does not correspond to any of the items. 
</div>
</div><p>
<a class="anchor" name="59faa0b8b2cb3a2b25a4b47eb82ecb8b"></a><!-- doxytag: member="Wt::Ext::ComboBox::itemText" ref="59faa0b8b2cb3a2b25a4b47eb82ecb8b" args="(int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a> Wt::Ext::ComboBox::itemText           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the text of a particular item. 
<p>
Use this method to get the text for the item at position <em>index</em>. 
</div>
</div><p>
<a class="anchor" name="54d18b5dde4bd46b830c2b2ecd6d0765"></a><!-- doxytag: member="Wt::Ext::ComboBox::setModel" ref="54d18b5dde4bd46b830c2b2ecd6d0765" args="(WAbstractItemModel *model)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setModel           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *&nbsp;</td>
          <td class="paramname"> <em>model</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the model to be used for the items. 
<p>
The <em>model</em> may not be 0, and ownership of the model is not transferred.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#46e2c9ac50d405d5e4ad8215ce5bb885" title="Set the column in the model to be used for the items.">setModelColumn(int)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="46e2c9ac50d405d5e4ad8215ce5bb885"></a><!-- doxytag: member="Wt::Ext::ComboBox::setModelColumn" ref="46e2c9ac50d405d5e4ad8215ce5bb885" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setModelColumn           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the column in the model to be used for the items. 
<p>
The column <em>index</em> in the model will be used to retrieve data.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#54d18b5dde4bd46b830c2b2ecd6d0765" title="Set the model to be used for the items.">setModel()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0c150137b5ad059ba66ee8f0b85b3585"></a><!-- doxytag: member="Wt::Ext::ComboBox::setEditable" ref="0c150137b5ad059ba66ee8f0b85b3585" args="(bool how)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setEditable           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>how</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set if the combo-box is editable. 
<p>
An editable combo-box allows the user to specify a value that is not part of the list of values.<p>
The default is false.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#a0a811e97424b7980f4da77c3711c72a" title="Get the text of the currently selected item.">currentText()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="8310599aaa5efc0ae08cf9323f321a7f"></a><!-- doxytag: member="Wt::Ext::ComboBox::setQueryDelay" ref="8310599aaa5efc0ae08cf9323f321a7f" args="(int milliSeconds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setQueryDelay           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>milliSeconds</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Configure the delay to filter the list matching the current input. 
<p>
After the a delay of <em>milliSeconds</em> milli seconds, the list items are filtered to match the currently entered text and the drop-down list is updated. It is recommended to specify a non-zero delay when using a Remote <a class="el" href="classWt_1_1Ext_1_1ComboBox.html#8cbea60f93ad91387200a3e49e33eaf0">data location</a>.<p>
The default is 0.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#181b1185f0ae607c61c62e900cbe479c" title="Configure the minimum number of characters to be entered before filtering the drop-down...">setMinQueryLength(int)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="181b1185f0ae607c61c62e900cbe479c"></a><!-- doxytag: member="Wt::Ext::ComboBox::setMinQueryLength" ref="181b1185f0ae607c61c62e900cbe479c" args="(int numChars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setMinQueryLength           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>numChars</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Configure the minimum number of characters to be entered before filtering the drop-down list. 
<p>
Values in the drop-down list will only be filtered when the entered text contains more that <em>numChars</em> characters.<p>
The default value is 4.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1ComboBox.html#8310599aaa5efc0ae08cf9323f321a7f" title="Configure the delay to filter the list matching the current input.">setQueryDelay(int)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="7e723bcbf36890f51805d8c373198ded"></a><!-- doxytag: member="Wt::Ext::ComboBox::setPageSize" ref="7e723bcbf36890f51805d8c373198ded" args="(int pageSize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setPageSize           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pageSize</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Configure a page size to show matching values one page at a time. 
<p>
At most <em>pageSize</em> matches will be shown at the same time in the combo-box.<p>
The default value is 0 (no paging). 
</div>
</div><p>
<a class="anchor" name="8cbea60f93ad91387200a3e49e33eaf0"></a><!-- doxytag: member="Wt::Ext::ComboBox::setDataLocation" ref="8cbea60f93ad91387200a3e49e33eaf0" args="(DataLocation dataLocation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::setDataLocation           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ext.html#g5bc908c6e6aa90646cca1276d68cb2b2">DataLocation</a>&nbsp;</td>
          <td class="paramname"> <em>dataLocation</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Configure the location of the data for the combo-box. 
<p>
When a ClientSide data location is specified, all data for the combo-box is downloaded when the combo-box is created. Using a ServerSide data location, data is downloaded to the client only when needed.<p>
The defualt value is ClientSide. 
</div>
</div><p>
<a class="anchor" name="48b20b2d00b523a28e2c1bd0a1a9bfcd"></a><!-- doxytag: member="Wt::Ext::ComboBox::refresh" ref="48b20b2d00b523a28e2c1bd0a1a9bfcd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::ComboBox::refresh           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Refresh the widget. 
<p>
The refresh method is invoked when the locale is changed using <a class="el" href="classWt_1_1WApplication.html#5c9cc1350019d69f154a2b44cdaf2596" title="Changes the locale.">WApplication::setLocale()</a> or when the user hit the refresh button.<p>
The widget must actualize its contents in response. 
<p>Reimplemented from <a class="el" href="classWt_1_1Ext_1_1FormField.html#0ac56f725de8a68fd7931b9319286485">Wt::Ext::FormField</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>