File: classWt_1_1WTreeNode.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 (916 lines) | stat: -rw-r--r-- 57,700 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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
<!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::WTreeNode 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="classWt_1_1WTreeNode.html">WTreeNode</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WTreeNode Class Reference</h1><!-- doxytag: class="Wt::WTreeNode" --><!-- doxytag: inherits="Wt::WCompositeWidget" -->A single node in a tree.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WTreeNode&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTreeNode:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTreeNode__inherit__graph.png" border="0" usemap="#Wt_1_1WTreeNode__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WTreeNode__inherit__map">
<area shape="rect" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node..." alt="" coords="13,304,157,331"><area shape="rect" href="classWt_1_1WCompositeWidget.html" title="A widget that hides the implementation of composite widgets." alt="" coords="5,155,165,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="37,80,133,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="37,5,133,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WTreeNode-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff">LoadPolicy</a> { <a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff4a962a514c531fb52c5958f61950ff3e">LazyLoading</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bfff771c90906d73ed5eb1e6728366241e1">PreLoading</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff387323cbdc8efd12ef6bf8553876c011">NextLevelLoading</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An enumeration for the policy to load children.  <a href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a> { <a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a3b31c2b770a9acffa43daedf402df6cd">Disabled</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24aebbfd35e39c920c5f2dbe74380e3abce">Enabled</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a256625b6187b3107b1eb201c1758a793">Lazy</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An enumeration for the policy to display the child count.  <a href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#169f429e0f0e1fe6d0874f9db72d041a">WTreeNode</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;labelText, <a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *labelIcon=0, <a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *parentNode=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a tree node with the given label.  <a href="#169f429e0f0e1fe6d0874f9db72d041a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1ec9b14cd8388631acbb3e82649d0d67"></a><!-- doxytag: member="Wt::WTreeNode::~WTreeNode" ref="1ec9b14cd8388631acbb3e82649d0d67" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#1ec9b14cd8388631acbb3e82649d0d67">~WTreeNode</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="32c24104359b595cbaf914e35accb3b4"></a><!-- doxytag: member="Wt::WTreeNode::label" ref="32c24104359b595cbaf914e35accb3b4" args="() const " -->
<a class="el" href="classWt_1_1WText.html">WText</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#32c24104359b595cbaf914e35accb3b4">label</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the label. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2095a273249da81688699ff9750ea2a4"></a><!-- doxytag: member="Wt::WTreeNode::labelIcon" ref="2095a273249da81688699ff9750ea2a4" args="() const " -->
<a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#2095a273249da81688699ff9750ea2a4">labelIcon</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the label icon. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="906d6afe249fbebd9735dc9c9ca11166"></a><!-- doxytag: member="Wt::WTreeNode::setLabelIcon" ref="906d6afe249fbebd9735dc9c9ca11166" args="(WIconPair *labelIcon)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#906d6afe249fbebd9735dc9c9ca11166">setLabelIcon</a> (<a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *labelIcon)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the label icon. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="deb2bd7c946ef9c7bb5b72b3f88453a6"></a><!-- doxytag: member="Wt::WTreeNode::addChildNode" ref="deb2bd7c946ef9c7bb5b72b3f88453a6" args="(WTreeNode *node)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#deb2bd7c946ef9c7bb5b72b3f88453a6">addChildNode</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a child node. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6513443612d2456a69610e744bc629f4"></a><!-- doxytag: member="Wt::WTreeNode::removeChildNode" ref="6513443612d2456a69610e744bc629f4" args="(WTreeNode *node)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#6513443612d2456a69610e744bc629f4">removeChildNode</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes a child node. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0f780835958f27b08fed66c1e4461e7"></a><!-- doxytag: member="Wt::WTreeNode::childNodes" ref="a0f780835958f27b08fed66c1e4461e7" args="() const " -->
const std::vector&lt; <a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> * &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a0f780835958f27b08fed66c1e4461e7">childNodes</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the list of children. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#1a2bec02861430af0a8b80dd9e84324e">displayedChildCount</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of children that should be displayed.  <a href="#1a2bec02861430af0a8b80dd9e84324e"></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_1WTreeNode.html#5a625b5a94386386dabd36277d5f7c1b">setChildCountPolicy</a> (<a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a> policy)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configures how and when the child count should be displayed.  <a href="#5a625b5a94386386dabd36277d5f7c1b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#970b7d1e5df403888e7c44750bf4b149">childCountPolicy</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the child count policy.  <a href="#970b7d1e5df403888e7c44750bf4b149"></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_1WTreeNode.html#ff37a6152a8195dd9b2a80e593d94298">setImagePack</a> (const std::string &amp;url)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the image pack for this (sub)tree (<b>deprecated</b>).  <a href="#ff37a6152a8195dd9b2a80e593d94298"></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_1WTreeNode.html#af3d613cc461f4d9d39a71cd45bd155e">setLoadPolicy</a> (<a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff">LoadPolicy</a> loadPolicy)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the load policy for this tree.  <a href="#af3d613cc461f4d9d39a71cd45bd155e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="948dd8443c0228268c1d75b825e66327"></a><!-- doxytag: member="Wt::WTreeNode::isExpanded" ref="948dd8443c0228268c1d75b825e66327" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#948dd8443c0228268c1d75b825e66327">isExpanded</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether this node is expanded. <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_1WTreeNode.html#60428cfc48b2a39550efc308b38406b2">setSelectable</a> (bool selectable)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allows this node to be selected.  <a href="#60428cfc48b2a39550efc308b38406b2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#413239e83c39e46fbb7d9525ac615241">isSelectable</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns if this node may be selected.  <a href="#413239e83c39e46fbb7d9525ac615241"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#2d318888f997a3602743b9ec7a337a84">parentNode</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the parent node.  <a href="#2d318888f997a3602743b9ec7a337a84"></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_1WTreeNode.html#63d37fa9bb5a3ba8ea178b5f3737626d">setNodeVisible</a> (bool visible)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the visibility of the node itself.  <a href="#63d37fa9bb5a3ba8ea178b5f3737626d"></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_1WTreeNode.html#10e99f9db96ec2fc500927a5d50caafe">expand</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Expands this node.  <a href="#10e99f9db96ec2fc500927a5d50caafe"></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_1WTreeNode.html#43ed4fd057fac436d93bda4a6d1de7dd">collapse</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Collapses this node.  <a href="#43ed4fd057fac436d93bda4a6d1de7dd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>&lt; <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#decb58d1334ac18d7e78e6e4d8e2e0e4">expanded</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the node is expanded by the user.  <a href="#decb58d1334ac18d7e78e6e4d8e2e0e4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>&lt; <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#27b27bfa04d5414e058427ecfdc82309">collapsed</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the node is collapsed by the user.  <a href="#27b27bfa04d5414e058427ecfdc82309"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; bool &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#23a35eefeeda38afbca4cf59404c4806">selected</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal that is emitted when the node is added or removed from the selection  <a href="#23a35eefeeda38afbca4cf59404c4806"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#3e414fb2edce78eab5431db82aefed15">WTreeNode</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *parentNode=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a tree node with empty <a class="el" href="classWt_1_1WTreeNode.html#e87e7590a98a4ccdbec6aeb49fd14025" title="Accesses the container widget that holds the label area.">labelArea()</a>.  <a href="#3e414fb2edce78eab5431db82aefed15"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WTableCell.html">WTableCell</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#e87e7590a98a4ccdbec6aeb49fd14025">labelArea</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accesses the container widget that holds the label area.  <a href="#e87e7590a98a4ccdbec6aeb49fd14025"></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_1WTreeNode.html#9ab70c6020dbd9ea3204c625029a7a1b">populate</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Populates the node dynamically on loading.  <a href="#9ab70c6020dbd9ea3204c625029a7a1b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#ee388605958559d124616ce9dbfc7df5">populated</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether this node has already been populated.  <a href="#ee388605958559d124616ce9dbfc7df5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#4f19826594b5b080b0a436c474c31f61">expandable</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether this node can be expanded.  <a href="#4f19826594b5b080b0a436c474c31f61"></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_1WTreeNode.html#e4bb84bf91002f80941d2e890cab12cd">renderSelected</a> (bool selected)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Renders the node to be selected.  <a href="#e4bb84bf91002f80941d2e890cab12cd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#b79f1baedef8134c2d25b22a988f5c80">imagePack</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The image pack that is used for this tree node (<b>deprecated</b>).  <a href="#b79f1baedef8134c2d25b22a988f5c80"></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_1WTreeNode.html#ea7b6b2ba3d170fa57dfb7451f878a5d">descendantRemoved</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reacts to the removal of a descendant node.  <a href="#ea7b6b2ba3d170fa57dfb7451f878a5d"></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_1WTreeNode.html#bfa02369517d2cc7cd3ee1d3839740e3">descendantAdded</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reacts to the addition of a descendant node.  <a href="#bfa02369517d2cc7cd3ee1d3839740e3"></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_1WTreeNode.html#7cf5f24e57d19df0b8e01638c75c4bf7">doExpand</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The actual expand.  <a href="#7cf5f24e57d19df0b8e01638c75c4bf7"></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_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066">doCollapse</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The actual collapse.  <a href="#98cc68ceed98e3e98145fe5a8129c066"></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_1WTreeNode.html#c0d0cbdfb0c8c0d493e70a6b40b40fc2">undoDoExpand</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Undo method for <a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation.  <a href="#c0d0cbdfb0c8c0d493e70a6b40b40fc2"></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_1WTreeNode.html#67cd4a5c8169919e1e1feadc1cab7ae3">undoDoCollapse</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Undo method for <a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation.  <a href="#67cd4a5c8169919e1e1feadc1cab7ae3"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A single node in a tree. 
<p>
A tree list is constructed by combining several tree node objects in a tree hierarchy, by passing the parent tree node as the last argument in the child node constructor, or by using <a class="el" href="classWt_1_1WTreeNode.html#deb2bd7c946ef9c7bb5b72b3f88453a6" title="Adds a child node.">addChildNode()</a>, to add a child to its parent.<p>
Each tree node has a label, and optionally a label icon pair. The icon pair offers the capability to show a different icon depending on the state of the node (expanded or collapsed). When the node has any children, a child count may be displayed next to the label using <a class="el" href="classWt_1_1WTreeNode.html#5a625b5a94386386dabd36277d5f7c1b" title="Configures how and when the child count should be displayed.">setChildCountPolicy()</a>.<p>
Expanding a tree node it will collapse all its children, so that a user may collapse/expand a node as a short-cut to collapsing all children.<p>
The treenode provides several policies to communicate the current contents of the tree to the client (if possible): <ul>
<li>
<a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bfff771c90906d73ed5eb1e6728366241e1" title="Pre-load all child nodes.">WTreeNode::PreLoading</a>: the entire tree is transmitted to the client, and all tree navigation requires no further communication. </li>
<li>
<a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff4a962a514c531fb52c5958f61950ff3e" title="Load-on-demand of child nodes.">WTreeNode::LazyLoading</a>: only the minimum is transmitted to the client. When expanding a node for the first time, only then it is transmitted to the client, and this may thus have some latency. </li>
<li>
<a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff387323cbdc8efd12ef6bf8553876c011" title="Pre-load one level of child nodes.">WTreeNode::NextLevelLoading</a>: all leafs of visible children are transmitted, but not their children. This provides a good trade-off between bandwith use and interactivity, since expanding any tree node will happen instantly, and at the same time trigger some communication in the back-ground to load the next level of invisible nodes. </li>
</ul>
<p>
The default policy is <a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff4a962a514c531fb52c5958f61950ff3e" title="Load-on-demand of child nodes.">WTreeNode::LazyLoading</a>. Another load policy may be specified using <a class="el" href="classWt_1_1WTreeNode.html#af3d613cc461f4d9d39a71cd45bd155e" title="Sets the load policy for this tree.">setLoadPolicy()</a> on the root node and before adding any children. The load policy is inherited by all children in the tree.<p>
There are a few scenarios where it makes sense to specialize the WTreeNode class. One scenario is create a tree that is populated dynamically while browsing. For this purpose you should reimplement the <a class="el" href="classWt_1_1WTreeNode.html#9ab70c6020dbd9ea3204c625029a7a1b" title="Populates the node dynamically on loading.">populate()</a> method, whose default implementation does nothing. This method is called when 'loading' the node. The exact moment for loading a treenode depends on the LoadPolicy.<p>
A second scenario that is if you want to customize the look of the tree label (see <a class="el" href="classWt_1_1WTreeNode.html#e87e7590a98a4ccdbec6aeb49fd14025" title="Accesses the container widget that holds the label area.">labelArea()</a>) or if you want to modify or augment the event collapse/expand event handling (see <a class="el" href="classWt_1_1WTreeNode.html#7cf5f24e57d19df0b8e01638c75c4bf7" title="The actual expand.">doExpand()</a> and <a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a>).<p>
See <a class="el" href="classWt_1_1WTree.html" title="A widget that represents a navigatable tree.">WTree</a> for a usage example.<p>
<h3>CSS</h3>
<p>
The tree is styled by the current CSS theme. The look can be overridden using the <code>Wt-tree</code> CSS class and the following selectors:<p>
<div class="fragment"><pre class="fragment">
.Wt-tree .Wt-trunk          : vertical line, trunk
.Wt-tree .Wt-end            : vertical line, last item
.Wt-tree .Wt-collapse       : collapse icon (img *)
.Wt-tree .Wt-expand         : expand icon (img *)
.Wt-tree .Wt-noexpand       : leaf icon

.Wt-tree .Wt-label          : the node label
.Wt-tree .Wt-childcount     : the node child count
</pre></div> * The collapse and expand icons are fetched themselves as images, <code>nav-plus.gif</code> and <code>nav-minus.gif</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTree.html" title="A widget that represents a navigatable tree.">WTree</a>, <a class="el" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node...">WTreeTableNode</a> </dd></dl>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="51c02b42c069e61a269fde598b9a1bff"></a><!-- doxytag: member="Wt::WTreeNode::LoadPolicy" ref="51c02b42c069e61a269fde598b9a1bff" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff">Wt::WTreeNode::LoadPolicy</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
An enumeration for the policy to load children. 
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="51c02b42c069e61a269fde598b9a1bff4a962a514c531fb52c5958f61950ff3e"></a><!-- doxytag: member="LazyLoading" ref="51c02b42c069e61a269fde598b9a1bff4a962a514c531fb52c5958f61950ff3e" args="" -->LazyLoading</em>&nbsp;</td><td>
Load-on-demand of child nodes. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="51c02b42c069e61a269fde598b9a1bfff771c90906d73ed5eb1e6728366241e1"></a><!-- doxytag: member="PreLoading" ref="51c02b42c069e61a269fde598b9a1bfff771c90906d73ed5eb1e6728366241e1" args="" -->PreLoading</em>&nbsp;</td><td>
Pre-load all child nodes. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="51c02b42c069e61a269fde598b9a1bff387323cbdc8efd12ef6bf8553876c011"></a><!-- doxytag: member="NextLevelLoading" ref="51c02b42c069e61a269fde598b9a1bff387323cbdc8efd12ef6bf8553876c011" args="" -->NextLevelLoading</em>&nbsp;</td><td>
Pre-load one level of child nodes. </td></tr>
</table>
</dl>

</div>
</div><p>
<a class="anchor" name="0deb92963922074b6262f71e9fccd24a"></a><!-- doxytag: member="Wt::WTreeNode::ChildCountPolicy" ref="0deb92963922074b6262f71e9fccd24a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a">Wt::WTreeNode::ChildCountPolicy</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
An enumeration for the policy to display the child count. 
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="0deb92963922074b6262f71e9fccd24a3b31c2b770a9acffa43daedf402df6cd"></a><!-- doxytag: member="Disabled" ref="0deb92963922074b6262f71e9fccd24a3b31c2b770a9acffa43daedf402df6cd" args="" -->Disabled</em>&nbsp;</td><td>
Do not display a child count. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="0deb92963922074b6262f71e9fccd24aebbfd35e39c920c5f2dbe74380e3abce"></a><!-- doxytag: member="Enabled" ref="0deb92963922074b6262f71e9fccd24aebbfd35e39c920c5f2dbe74380e3abce" args="" -->Enabled</em>&nbsp;</td><td>
Always display a child count. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="0deb92963922074b6262f71e9fccd24a256625b6187b3107b1eb201c1758a793"></a><!-- doxytag: member="Lazy" ref="0deb92963922074b6262f71e9fccd24a256625b6187b3107b1eb201c1758a793" args="" -->Lazy</em>&nbsp;</td><td>
Only display a child count when the node is populated. </td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="169f429e0f0e1fe6d0874f9db72d041a"></a><!-- doxytag: member="Wt::WTreeNode::WTreeNode" ref="169f429e0f0e1fe6d0874f9db72d041a" args="(const WString &amp;labelText, WIconPair *labelIcon=0, WTreeNode *parentNode=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WTreeNode::WTreeNode           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>labelText</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *&nbsp;</td>
          <td class="paramname"> <em>labelIcon</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&nbsp;</td>
          <td class="paramname"> <em>parentNode</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a tree node with the given label. 
<p>
The labelIcon, if specified, will appear just before the label and its state reflect the expand/collapse state of the node.<p>
The node is initialized to be collapsed. 
</div>
</div><p>
<a class="anchor" name="3e414fb2edce78eab5431db82aefed15"></a><!-- doxytag: member="Wt::WTreeNode::WTreeNode" ref="3e414fb2edce78eab5431db82aefed15" args="(WTreeNode *parentNode=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WTreeNode::WTreeNode           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&nbsp;</td>
          <td class="paramname"> <em>parentNode</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a tree node with empty <a class="el" href="classWt_1_1WTreeNode.html#e87e7590a98a4ccdbec6aeb49fd14025" title="Accesses the container widget that holds the label area.">labelArea()</a>. 
<p>
This tree node has no label or labelicon, and is therefore ideally suited to provide a custom look. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="1a2bec02861430af0a8b80dd9e84324e"></a><!-- doxytag: member="Wt::WTreeNode::displayedChildCount" ref="1a2bec02861430af0a8b80dd9e84324e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTreeNode::displayedChildCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the number of children that should be displayed. 
<p>
This is used to display the count in the count label. The default implementation simply returns <a class="el" href="classWt_1_1WTreeNode.html#a0f780835958f27b08fed66c1e4461e7" title="Returns the list of children.">childNodes()</a>.size(). 
</div>
</div><p>
<a class="anchor" name="5a625b5a94386386dabd36277d5f7c1b"></a><!-- doxytag: member="Wt::WTreeNode::setChildCountPolicy" ref="5a625b5a94386386dabd36277d5f7c1b" args="(ChildCountPolicy policy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::setChildCountPolicy           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a>&nbsp;</td>
          <td class="paramname"> <em>policy</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Configures how and when the child count should be displayed. 
<p>
By default, no child count indication is disabled (this is the behaviour since 2.1.1). Use this method to enable child count indications.<p>
The child count policy is inherited by all children in the tree. 
</div>
</div><p>
<a class="anchor" name="970b7d1e5df403888e7c44750bf4b149"></a><!-- doxytag: member="Wt::WTreeNode::childCountPolicy" ref="970b7d1e5df403888e7c44750bf4b149" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WTreeNode.html#0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a> Wt::WTreeNode::childCountPolicy           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the child count policy. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#5a625b5a94386386dabd36277d5f7c1b" title="Configures how and when the child count should be displayed.">setChildCountPolicy(ChildCountPolicy policy)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="ff37a6152a8195dd9b2a80e593d94298"></a><!-- doxytag: member="Wt::WTreeNode::setImagePack" ref="ff37a6152a8195dd9b2a80e593d94298" args="(const std::string &amp;url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::setImagePack           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>url</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the image pack for this (sub)tree (<b>deprecated</b>). 
<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000021">Deprecated:</a></b></dt><dd>This method does not do anything since Wt 3.1.1, as the tree is now styled based on the current CSS theme. </dd></dl>

</div>
</div><p>
<a class="anchor" name="af3d613cc461f4d9d39a71cd45bd155e"></a><!-- doxytag: member="Wt::WTreeNode::setLoadPolicy" ref="af3d613cc461f4d9d39a71cd45bd155e" args="(LoadPolicy loadPolicy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::setLoadPolicy           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html#51c02b42c069e61a269fde598b9a1bff">LoadPolicy</a>&nbsp;</td>
          <td class="paramname"> <em>loadPolicy</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the load policy for this tree. 
<p>
This may only be set on the root of a tree, and before adding any children. 
</div>
</div><p>
<a class="anchor" name="60428cfc48b2a39550efc308b38406b2"></a><!-- doxytag: member="Wt::WTreeNode::setSelectable" ref="60428cfc48b2a39550efc308b38406b2" args="(bool selectable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::setSelectable           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>selectable</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Allows this node to be selected. 
<p>
By default, all nodes may be selected.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#413239e83c39e46fbb7d9525ac615241" title="Returns if this node may be selected.">isSelectable()</a>, <a class="el" href="classWt_1_1WTree.html#52c770a65ac3f4c2493f714271a5133a" title="Selects or unselect the given node.">WTree::select(WTreeNode *, bool)</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WCompositeWidget.html#1cf4a59e433df7c28e7917a5e03fdac1">Wt::WCompositeWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="413239e83c39e46fbb7d9525ac615241"></a><!-- doxytag: member="Wt::WTreeNode::isSelectable" ref="413239e83c39e46fbb7d9525ac615241" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Wt::WTreeNode::isSelectable           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns if this node may be selected. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#60428cfc48b2a39550efc308b38406b2" title="Allows this node to be selected.">setSelectable(bool)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2d318888f997a3602743b9ec7a337a84"></a><!-- doxytag: member="Wt::WTreeNode::parentNode" ref="2d318888f997a3602743b9ec7a337a84" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> * Wt::WTreeNode::parentNode           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the parent node. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#a0f780835958f27b08fed66c1e4461e7" title="Returns the list of children.">childNodes()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="63d37fa9bb5a3ba8ea178b5f3737626d"></a><!-- doxytag: member="Wt::WTreeNode::setNodeVisible" ref="63d37fa9bb5a3ba8ea178b5f3737626d" args="(bool visible)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::setNodeVisible           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>visible</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the visibility of the node itself. 
<p>
If <code>false</code>, then the node itself is not displayed, but only its children. This is typically used to hide the root node of a tree. 
</div>
</div><p>
<a class="anchor" name="10e99f9db96ec2fc500927a5d50caafe"></a><!-- doxytag: member="Wt::WTreeNode::expand" ref="10e99f9db96ec2fc500927a5d50caafe" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::expand           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Expands this node. 
<p>
Besides the actual expansion of the node, this may also trigger the loading and population of the node children, or of the children's children.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#43ed4fd057fac436d93bda4a6d1de7dd" title="Collapses this node.">collapse()</a> <p>
<a class="el" href="classWt_1_1WTreeNode.html#7cf5f24e57d19df0b8e01638c75c4bf7" title="The actual expand.">doExpand()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="43ed4fd057fac436d93bda4a6d1de7dd"></a><!-- doxytag: member="Wt::WTreeNode::collapse" ref="43ed4fd057fac436d93bda4a6d1de7dd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::collapse           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Collapses this node. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#10e99f9db96ec2fc500927a5d50caafe" title="Expands this node.">expand()</a> <p>
<a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="decb58d1334ac18d7e78e6e4d8e2e0e4"></a><!-- doxytag: member="Wt::WTreeNode::expanded" ref="decb58d1334ac18d7e78e6e4d8e2e0e4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>&lt; <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> &gt; &amp; Wt::WTreeNode::expanded           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Signal emitted when the node is expanded by the user. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#27b27bfa04d5414e058427ecfdc82309" title="Signal emitted when the node is collapsed by the user.">collapsed()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="27b27bfa04d5414e058427ecfdc82309"></a><!-- doxytag: member="Wt::WTreeNode::collapsed" ref="27b27bfa04d5414e058427ecfdc82309" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>&lt; <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> &gt; &amp; Wt::WTreeNode::collapsed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Signal emitted when the node is collapsed by the user. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#decb58d1334ac18d7e78e6e4d8e2e0e4" title="Signal emitted when the node is expanded by the user.">expanded()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="23a35eefeeda38afbca4cf59404c4806"></a><!-- doxytag: member="Wt::WTreeNode::selected" ref="23a35eefeeda38afbca4cf59404c4806" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt;bool&gt;&amp; Wt::WTreeNode::selected           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Signal that is emitted when the node is added or removed from the selection 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTree.html#103603f639e07f83d1a75e293b70966d" title="Signal that is emitted when the selection changes.">WTree::itemSelectionChanged</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="e87e7590a98a4ccdbec6aeb49fd14025"></a><!-- doxytag: member="Wt::WTreeNode::labelArea" ref="e87e7590a98a4ccdbec6aeb49fd14025" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WTableCell.html">WTableCell</a> * Wt::WTreeNode::labelArea           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Accesses the container widget that holds the label area. 
<p>
Use this to customize how the label should look like. 
</div>
</div><p>
<a class="anchor" name="9ab70c6020dbd9ea3204c625029a7a1b"></a><!-- doxytag: member="Wt::WTreeNode::populate" ref="9ab70c6020dbd9ea3204c625029a7a1b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::populate           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Populates the node dynamically on loading. 
<p>
Reimplement this method if you want to populate the widget dynamically, as the tree is being browsed and therefore loaded. This is only usefull with LazyLoading or NextLevelLoading strategies. 
</div>
</div><p>
<a class="anchor" name="ee388605958559d124616ce9dbfc7df5"></a><!-- doxytag: member="Wt::WTreeNode::populated" ref="ee388605958559d124616ce9dbfc7df5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WTreeNode::populated           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether this node has already been populated. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#9ab70c6020dbd9ea3204c625029a7a1b" title="Populates the node dynamically on loading.">populate()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="4f19826594b5b080b0a436c474c31f61"></a><!-- doxytag: member="Wt::WTreeNode::expandable" ref="4f19826594b5b080b0a436c474c31f61" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WTreeNode::expandable           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether this node can be expanded. 
<p>
The default implementation populates the node if necessary, and then checks if there are any child nodes.<p>
You may wish to reimplement this method if you reimplement <a class="el" href="classWt_1_1WTreeNode.html#9ab70c6020dbd9ea3204c625029a7a1b" title="Populates the node dynamically on loading.">populate()</a>, and you have a quick default for determining whether a node may be expanded (which does not require populating the node).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#9ab70c6020dbd9ea3204c625029a7a1b" title="Populates the node dynamically on loading.">populate()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="e4bb84bf91002f80941d2e890cab12cd"></a><!-- doxytag: member="Wt::WTreeNode::renderSelected" ref="e4bb84bf91002f80941d2e890cab12cd" args="(bool selected)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::renderSelected           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>selected</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Renders the node to be selected. 
<p>
The default implementation changes the style class of the <a class="el" href="classWt_1_1WTreeNode.html#e87e7590a98a4ccdbec6aeb49fd14025" title="Accesses the container widget that holds the label area.">labelArea()</a> to "selected". 
</div>
</div><p>
<a class="anchor" name="b79f1baedef8134c2d25b22a988f5c80"></a><!-- doxytag: member="Wt::WTreeNode::imagePack" ref="b79f1baedef8134c2d25b22a988f5c80" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Wt::WTreeNode::imagePack           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The image pack that is used for this tree node (<b>deprecated</b>). 
<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000022">Deprecated:</a></b></dt><dd>This method returns "" since Wt 3.1.1, as the image pack is no longer used in favour of the CSS themes. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ea7b6b2ba3d170fa57dfb7451f878a5d"></a><!-- doxytag: member="Wt::WTreeNode::descendantRemoved" ref="ea7b6b2ba3d170fa57dfb7451f878a5d" args="(WTreeNode *node)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::descendantRemoved           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&nbsp;</td>
          <td class="paramname"> <em>node</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reacts to the removal of a descendant node. 
<p>
Reimplement this method if you wish to react on the removal of a descendant node. The default implementation simply propagates the event to the parent. 
</div>
</div><p>
<a class="anchor" name="bfa02369517d2cc7cd3ee1d3839740e3"></a><!-- doxytag: member="Wt::WTreeNode::descendantAdded" ref="bfa02369517d2cc7cd3ee1d3839740e3" args="(WTreeNode *node)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::descendantAdded           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&nbsp;</td>
          <td class="paramname"> <em>node</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reacts to the addition of a descendant node. 
<p>
Reimplement this method if you wish to react on the addition of a descendant node. The default implementation simply propagates the event to the parent. 
</div>
</div><p>
<a class="anchor" name="7cf5f24e57d19df0b8e01638c75c4bf7"></a><!-- doxytag: member="Wt::WTreeNode::doExpand" ref="7cf5f24e57d19df0b8e01638c75c4bf7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::doExpand           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The actual expand. 
<p>
This method, which is implemented as a stateless slot, performs the actual expansion of the node.<p>
You may want to reimplement this function (and <a class="el" href="classWt_1_1WTreeNode.html#c0d0cbdfb0c8c0d493e70a6b40b40fc2" title="Undo method for doCollapse() stateless implementation.">undoDoExpand()</a>) if you wish to do additional things on node expansion.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> <p>
<a class="el" href="classWt_1_1WTreeNode.html#10e99f9db96ec2fc500927a5d50caafe" title="Expands this node.">expand()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="98cc68ceed98e3e98145fe5a8129c066"></a><!-- doxytag: member="Wt::WTreeNode::doCollapse" ref="98cc68ceed98e3e98145fe5a8129c066" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::doCollapse           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The actual collapse. 
<p>
This method, which is implemented as a stateless slot, performs the actual collapse of the node.<p>
You may want to reimplement this function (and <a class="el" href="classWt_1_1WTreeNode.html#67cd4a5c8169919e1e1feadc1cab7ae3" title="Undo method for doCollapse() stateless implementation.">undoDoCollapse()</a>) if you wish to do additional things on node expansion.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#7cf5f24e57d19df0b8e01638c75c4bf7" title="The actual expand.">doExpand()</a> <p>
<a class="el" href="classWt_1_1WTreeNode.html#43ed4fd057fac436d93bda4a6d1de7dd" title="Collapses this node.">collapse()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="c0d0cbdfb0c8c0d493e70a6b40b40fc2"></a><!-- doxytag: member="Wt::WTreeNode::undoDoExpand" ref="c0d0cbdfb0c8c0d493e70a6b40b40fc2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::undoDoExpand           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Undo method for <a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="67cd4a5c8169919e1e1feadc1cab7ae3"></a><!-- doxytag: member="Wt::WTreeNode::undoDoCollapse" ref="67cd4a5c8169919e1e1feadc1cab7ae3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::undoDoCollapse           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Undo method for <a class="el" href="classWt_1_1WTreeNode.html#98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#7cf5f24e57d19df0b8e01638c75c4bf7" title="The actual expand.">doExpand()</a> </dd></dl>

</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 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>