File: classWt_1_1WTreeNode.html

package info (click to toggle)
witty 3.2.1-2%2Bdeb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 70,436 kB
  • sloc: cpp: 117,095; ansic: 77,999; xml: 7,564; sh: 1,037; perl: 208; makefile: 144; java: 86; sql: 14
file content (1041 lines) | stat: -rw-r--r-- 67,837 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
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WTreeNode Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WTreeNode Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WTreeNode" --><!-- doxytag: inherits="Wt::WCompositeWidget" -->
<p>A single node in a tree.  
 <a href="classWt_1_1WTreeNode.html#details">More...</a></p>

<p><code>#include &lt;Wt/WTreeNode&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WTreeNode:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WTreeNode__inherit__graph.png" border="0" usemap="#Wt_1_1WTreeNode_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WTreeNode_inherit__map" id="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="15,304,159,331"/><area shape="rect" href="classWt_1_1WCompositeWidget.html" title="A widget that hides the implementation of composite widgets." alt="" coords="5,155,168,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="37,80,136,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="39,5,135,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WTreeNode-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a51c02b42c069e61a269fde598b9a1bff">LoadPolicy</a> { <a class="el" href="classWt_1_1WTreeNode.html#a51c02b42c069e61a269fde598b9a1bffa4a962a514c531fb52c5958f61950ff3e">LazyLoading</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#a51c02b42c069e61a269fde598b9a1bffaf771c90906d73ed5eb1e6728366241e1">PreLoading</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#a51c02b42c069e61a269fde598b9a1bffa387323cbdc8efd12ef6bf8553876c011">NextLevelLoading</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">An enumeration for the policy to load children.  <a href="classWt_1_1WTreeNode.html#a51c02b42c069e61a269fde598b9a1bff">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a> { <a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24aa3b31c2b770a9acffa43daedf402df6cd">Disabled</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24aaebbfd35e39c920c5f2dbe74380e3abce">Enabled</a>, 
<a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24aa256625b6187b3107b1eb201c1758a793">Lazy</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">An enumeration for the policy to display the child count.  <a href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24a">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a169f429e0f0e1fe6d0874f9db72d041a">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">&#160;</td><td class="mdescRight">Creates a tree node with the given label.  <a href="#a169f429e0f0e1fe6d0874f9db72d041a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ec9b14cd8388631acbb3e82649d0d67"></a><!-- doxytag: member="Wt::WTreeNode::~WTreeNode" ref="a1ec9b14cd8388631acbb3e82649d0d67" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a1ec9b14cd8388631acbb3e82649d0d67">~WTreeNode</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WTree.html">WTree</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#adefe7d8365d9e64bde8e12cf0a1fe1c3">tree</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the tree.  <a href="#adefe7d8365d9e64bde8e12cf0a1fe1c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a32c24104359b595cbaf914e35accb3b4"></a><!-- doxytag: member="Wt::WTreeNode::label" ref="a32c24104359b595cbaf914e35accb3b4" args="() const " -->
<a class="el" href="classWt_1_1WText.html">WText</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a32c24104359b595cbaf914e35accb3b4">label</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the label. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2095a273249da81688699ff9750ea2a4"></a><!-- doxytag: member="Wt::WTreeNode::labelIcon" ref="a2095a273249da81688699ff9750ea2a4" args="() const " -->
<a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a2095a273249da81688699ff9750ea2a4">labelIcon</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the label icon. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a906d6afe249fbebd9735dc9c9ca11166"></a><!-- doxytag: member="Wt::WTreeNode::setLabelIcon" ref="a906d6afe249fbebd9735dc9c9ca11166" args="(WIconPair *labelIcon)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a906d6afe249fbebd9735dc9c9ca11166">setLabelIcon</a> (<a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *labelIcon)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the label icon. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a460f47f625133c99c622c71309bdc373">insertChildNode</a> (int index, <a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts a child node.  <a href="#a460f47f625133c99c622c71309bdc373"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#adeb2bd7c946ef9c7bb5b72b3f88453a6">addChildNode</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a child node.  <a href="#adeb2bd7c946ef9c7bb5b72b3f88453a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a6513443612d2456a69610e744bc629f4">removeChildNode</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a child node.  <a href="#a6513443612d2456a69610e744bc629f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0f780835958f27b08fed66c1e4461e7"></a><!-- doxytag: member="Wt::WTreeNode::childNodes" ref="aa0f780835958f27b08fed66c1e4461e7" args="() const " -->
const std::vector&lt; <a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> * &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#aa0f780835958f27b08fed66c1e4461e7">childNodes</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the list of children. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a1a2bec02861430af0a8b80dd9e84324e">displayedChildCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of children that should be displayed.  <a href="#a1a2bec02861430af0a8b80dd9e84324e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a5a625b5a94386386dabd36277d5f7c1b">setChildCountPolicy</a> (<a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a> policy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures how and when the child count should be displayed.  <a href="#a5a625b5a94386386dabd36277d5f7c1b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a970b7d1e5df403888e7c44750bf4b149">childCountPolicy</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the child count policy.  <a href="#a970b7d1e5df403888e7c44750bf4b149"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#aff37a6152a8195dd9b2a80e593d94298">setImagePack</a> (const std::string &amp;url)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the image pack for this (sub)tree (<b>deprecated</b>).  <a href="#aff37a6152a8195dd9b2a80e593d94298"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#aaf3d613cc461f4d9d39a71cd45bd155e">setLoadPolicy</a> (<a class="el" href="classWt_1_1WTreeNode.html#a51c02b42c069e61a269fde598b9a1bff">LoadPolicy</a> loadPolicy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the load policy for this tree.  <a href="#aaf3d613cc461f4d9d39a71cd45bd155e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a948dd8443c0228268c1d75b825e66327"></a><!-- doxytag: member="Wt::WTreeNode::isExpanded" ref="a948dd8443c0228268c1d75b825e66327" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a948dd8443c0228268c1d75b825e66327">isExpanded</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this node is expanded. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a60428cfc48b2a39550efc308b38406b2">setSelectable</a> (bool selectable)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Allows this node to be selected.  <a href="#a60428cfc48b2a39550efc308b38406b2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a413239e83c39e46fbb7d9525ac615241">isSelectable</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if this node may be selected.  <a href="#a413239e83c39e46fbb7d9525ac615241"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#abebb8dd92b2470901a3c9fb36e315c62">parentNode</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the parent node.  <a href="#abebb8dd92b2470901a3c9fb36e315c62"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a63d37fa9bb5a3ba8ea178b5f3737626d">setNodeVisible</a> (bool visible)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the visibility of the node itself.  <a href="#a63d37fa9bb5a3ba8ea178b5f3737626d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a5594488be1f49052915b4ecc840f44ce">setChildrenDecorated</a> (bool decorated)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether this node's children are decorated.  <a href="#a5594488be1f49052915b4ecc840f44ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a85e7232623373ad75a5b5bbdbbf734ca">setInteractive</a> (bool interactive)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether this node is interactive.  <a href="#a85e7232623373ad75a5b5bbdbbf734ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a10e99f9db96ec2fc500927a5d50caafe">expand</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Expands this node.  <a href="#a10e99f9db96ec2fc500927a5d50caafe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a43ed4fd057fac436d93bda4a6d1de7dd">collapse</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Collapses this node.  <a href="#a43ed4fd057fac436d93bda4a6d1de7dd"></a><br/></td></tr>
<tr><td class="memItemLeft" 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;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#adecb58d1334ac18d7e78e6e4d8e2e0e4">expanded</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emitted when the node is expanded by the user.  <a href="#adecb58d1334ac18d7e78e6e4d8e2e0e4"></a><br/></td></tr>
<tr><td class="memItemLeft" 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;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a27b27bfa04d5414e058427ecfdc82309">collapsed</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emitted when the node is collapsed by the user.  <a href="#a27b27bfa04d5414e058427ecfdc82309"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; bool &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a23a35eefeeda38afbca4cf59404c4806">selected</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal that is emitted when the node is added or removed from the selection  <a href="#a23a35eefeeda38afbca4cf59404c4806"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a3e414fb2edce78eab5431db82aefed15">WTreeNode</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *parentNode=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a tree node with empty <a class="el" href="classWt_1_1WTreeNode.html#ae87e7590a98a4ccdbec6aeb49fd14025" title="Accesses the container widget that holds the label area.">labelArea()</a>.  <a href="#a3e414fb2edce78eab5431db82aefed15"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WTableCell.html">WTableCell</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#ae87e7590a98a4ccdbec6aeb49fd14025">labelArea</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses the container widget that holds the label area.  <a href="#ae87e7590a98a4ccdbec6aeb49fd14025"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a9ab70c6020dbd9ea3204c625029a7a1b">populate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Populates the node dynamically on loading.  <a href="#a9ab70c6020dbd9ea3204c625029a7a1b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#aee388605958559d124616ce9dbfc7df5">populated</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this node has already been populated.  <a href="#aee388605958559d124616ce9dbfc7df5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a4f19826594b5b080b0a436c474c31f61">expandable</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this node can be expanded.  <a href="#a4f19826594b5b080b0a436c474c31f61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#ae4bb84bf91002f80941d2e890cab12cd">renderSelected</a> (bool selected)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Renders the node to be selected.  <a href="#ae4bb84bf91002f80941d2e890cab12cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#ab79f1baedef8134c2d25b22a988f5c80">imagePack</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The image pack that is used for this tree node (<b>deprecated</b>).  <a href="#ab79f1baedef8134c2d25b22a988f5c80"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#aea7b6b2ba3d170fa57dfb7451f878a5d">descendantRemoved</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reacts to the removal of a descendant node.  <a href="#aea7b6b2ba3d170fa57dfb7451f878a5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#abfa02369517d2cc7cd3ee1d3839740e3">descendantAdded</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reacts to the addition of a descendant node.  <a href="#abfa02369517d2cc7cd3ee1d3839740e3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a7cf5f24e57d19df0b8e01638c75c4bf7">doExpand</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The actual expand.  <a href="#a7cf5f24e57d19df0b8e01638c75c4bf7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a98cc68ceed98e3e98145fe5a8129c066">doCollapse</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The actual collapse.  <a href="#a98cc68ceed98e3e98145fe5a8129c066"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#ac0d0cbdfb0c8c0d493e70a6b40b40fc2">undoDoExpand</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Undo method for <a class="el" href="classWt_1_1WTreeNode.html#a98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation.  <a href="#ac0d0cbdfb0c8c0d493e70a6b40b40fc2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a67cd4a5c8169919e1e1feadc1cab7ae3">undoDoCollapse</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Undo method for <a class="el" href="classWt_1_1WTreeNode.html#a98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation.  <a href="#a67cd4a5c8169919e1e1feadc1cab7ae3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a973cac84f4187d31b2df0f73c7bc4c9c"></a><!-- doxytag: member="Wt::WTreeNode::expandIcon" ref="a973cac84f4187d31b2df0f73c7bc4c9c" args="()" -->
<a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeNode.html#a973cac84f4187d31b2df0f73c7bc4c9c">expandIcon</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses the icon pair that allows expansion of the tree node. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A single node in a tree. </p>
<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#adeb2bd7c946ef9c7bb5b72b3f88453a6" title="Adds a child node.">addChildNode()</a>, to add a child to its parent.</p>
<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#a5a625b5a94386386dabd36277d5f7c1b" title="Configures how and when the child count should be displayed.">setChildCountPolicy()</a>.</p>
<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>
<p>The treenode provides several policies to communicate the current contents of the tree to the client (if possible): </p>
<ul>
<li>
<a class="el" href="classWt_1_1WTreeNode.html#a51c02b42c069e61a269fde598b9a1bffaf771c90906d73ed5eb1e6728366241e1" 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#a51c02b42c069e61a269fde598b9a1bffa4a962a514c531fb52c5958f61950ff3e" 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#a51c02b42c069e61a269fde598b9a1bffa387323cbdc8efd12ef6bf8553876c011" 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#a51c02b42c069e61a269fde598b9a1bffa4a962a514c531fb52c5958f61950ff3e" 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#aaf3d613cc461f4d9d39a71cd45bd155e" 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>
<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#a9ab70c6020dbd9ea3204c625029a7a1b" 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>
<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#ae87e7590a98a4ccdbec6aeb49fd14025" 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#a7cf5f24e57d19df0b8e01638c75c4bf7" title="The actual expand.">doExpand()</a> and <a class="el" href="classWt_1_1WTreeNode.html#a98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a>).</p>
<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
.Wt-tree .Wt-node           : the node's table row
</pre></div><p> * 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"><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>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a0deb92963922074b6262f71e9fccd24a"></a><!-- doxytag: member="Wt::WTreeNode::ChildCountPolicy" ref="a0deb92963922074b6262f71e9fccd24a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24a">Wt::WTreeNode::ChildCountPolicy</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

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

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a169f429e0f0e1fe6d0874f9db72d041a"></a><!-- doxytag: member="Wt::WTreeNode::WTreeNode" ref="a169f429e0f0e1fe6d0874f9db72d041a" 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;&#160;</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> *&#160;</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> *&#160;</td>
          <td class="paramname"><em>parentNode</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a tree node with the given label. </p>
<p>The labelIcon, if specified, will appear just before the label and its state reflect the expand/collapse state of the node.</p>
<p>The node is initialized to be collapsed. </p>

</div>
</div>
<a class="anchor" id="a3e414fb2edce78eab5431db82aefed15"></a><!-- doxytag: member="Wt::WTreeNode::WTreeNode" ref="a3e414fb2edce78eab5431db82aefed15" 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> *&#160;</td>
          <td class="paramname"><em>parentNode</em> = <code>0</code></td><td>)</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#ae87e7590a98a4ccdbec6aeb49fd14025" title="Accesses the container widget that holds the label area.">labelArea()</a>. </p>
<p>This tree node has no label or labelicon, and is therefore ideally suited to provide a custom look. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="adeb2bd7c946ef9c7bb5b72b3f88453a6"></a><!-- doxytag: member="Wt::WTreeNode::addChildNode" ref="adeb2bd7c946ef9c7bb5b72b3f88453a6" args="(WTreeNode *node)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::addChildNode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a child node. </p>
<p>Equivalent to: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WTreeNode.html#a460f47f625133c99c622c71309bdc373" title="Inserts a child node.">insertChildNode</a>(<a class="code" href="classWt_1_1WTreeNode.html#aa0f780835958f27b08fed66c1e4461e7" title="Returns the list of children.">childNodes</a>().size(), node);
</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#a460f47f625133c99c622c71309bdc373" title="Inserts a child node.">insertChildNode()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a970b7d1e5df403888e7c44750bf4b149"></a><!-- doxytag: member="Wt::WTreeNode::childCountPolicy" ref="a970b7d1e5df403888e7c44750bf4b149" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WTreeNode.html#a0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a> Wt::WTreeNode::childCountPolicy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a43ed4fd057fac436d93bda4a6d1de7dd"></a><!-- doxytag: member="Wt::WTreeNode::collapse" ref="a43ed4fd057fac436d93bda4a6d1de7dd" 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>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a27b27bfa04d5414e058427ecfdc82309"></a><!-- doxytag: member="Wt::WTreeNode::collapsed" ref="a27b27bfa04d5414e058427ecfdc82309" 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>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="abfa02369517d2cc7cd3ee1d3839740e3"></a><!-- doxytag: member="Wt::WTreeNode::descendantAdded" ref="abfa02369517d2cc7cd3ee1d3839740e3" 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> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reacts to the addition of a descendant node. </p>
<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. </p>

</div>
</div>
<a class="anchor" id="aea7b6b2ba3d170fa57dfb7451f878a5d"></a><!-- doxytag: member="Wt::WTreeNode::descendantRemoved" ref="aea7b6b2ba3d170fa57dfb7451f878a5d" 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> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reacts to the removal of a descendant node. </p>
<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. </p>

</div>
</div>
<a class="anchor" id="a1a2bec02861430af0a8b80dd9e84324e"></a><!-- doxytag: member="Wt::WTreeNode::displayedChildCount" ref="a1a2bec02861430af0a8b80dd9e84324e" 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>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of children that should be displayed. </p>
<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#aa0f780835958f27b08fed66c1e4461e7" title="Returns the list of children.">childNodes()</a>.size(). </p>

</div>
</div>
<a class="anchor" id="a98cc68ceed98e3e98145fe5a8129c066"></a><!-- doxytag: member="Wt::WTreeNode::doCollapse" ref="a98cc68ceed98e3e98145fe5a8129c066" 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>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a7cf5f24e57d19df0b8e01638c75c4bf7"></a><!-- doxytag: member="Wt::WTreeNode::doExpand" ref="a7cf5f24e57d19df0b8e01638c75c4bf7" 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>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a10e99f9db96ec2fc500927a5d50caafe"></a><!-- doxytag: member="Wt::WTreeNode::expand" ref="a10e99f9db96ec2fc500927a5d50caafe" 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>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Expands this node. </p>
<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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#a43ed4fd057fac436d93bda4a6d1de7dd" title="Collapses this node.">collapse()</a> </dd>
<dd>
<a class="el" href="classWt_1_1WTreeNode.html#a7cf5f24e57d19df0b8e01638c75c4bf7" title="The actual expand.">doExpand()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4f19826594b5b080b0a436c474c31f61"></a><!-- doxytag: member="Wt::WTreeNode::expandable" ref="a4f19826594b5b080b0a436c474c31f61" 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>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether this node can be expanded. </p>
<p>The default implementation populates the node if necessary, and then checks if there are any child nodes.</p>
<p>You may wish to reimplement this method if you reimplement <a class="el" href="classWt_1_1WTreeNode.html#a9ab70c6020dbd9ea3204c625029a7a1b" 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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#a9ab70c6020dbd9ea3204c625029a7a1b" title="Populates the node dynamically on loading.">populate()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="adecb58d1334ac18d7e78e6e4d8e2e0e4"></a><!-- doxytag: member="Wt::WTreeNode::expanded" ref="adecb58d1334ac18d7e78e6e4d8e2e0e4" 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>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="ab79f1baedef8134c2d25b22a988f5c80"></a><!-- doxytag: member="Wt::WTreeNode::imagePack" ref="ab79f1baedef8134c2d25b22a988f5c80" 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>)</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 class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000054">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>
<a class="anchor" id="a460f47f625133c99c622c71309bdc373"></a><!-- doxytag: member="Wt::WTreeNode::insertChildNode" ref="a460f47f625133c99c622c71309bdc373" args="(int index, WTreeNode *node)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::insertChildNode </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&#160;</td>
          <td class="paramname"><em>node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts a child node. </p>
<p>Inserts the node <code>node</code> at index <code>index</code>. </p>

<p>Reimplemented in <a class="el" href="classWt_1_1WTreeTableNode.html#a7766f176f956e4fede258d86e208c6cd">Wt::WTreeTableNode</a>.</p>

</div>
</div>
<a class="anchor" id="a413239e83c39e46fbb7d9525ac615241"></a><!-- doxytag: member="Wt::WTreeNode::isSelectable" ref="a413239e83c39e46fbb7d9525ac615241" 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>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="ae87e7590a98a4ccdbec6aeb49fd14025"></a><!-- doxytag: member="Wt::WTreeNode::labelArea" ref="ae87e7590a98a4ccdbec6aeb49fd14025" 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>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Accesses the container widget that holds the label area. </p>
<p>Use this to customize how the label should look like. </p>

</div>
</div>
<a class="anchor" id="abebb8dd92b2470901a3c9fb36e315c62"></a><!-- doxytag: member="Wt::WTreeNode::parentNode" ref="abebb8dd92b2470901a3c9fb36e315c62" 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>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a9ab70c6020dbd9ea3204c625029a7a1b"></a><!-- doxytag: member="Wt::WTreeNode::populate" ref="a9ab70c6020dbd9ea3204c625029a7a1b" 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>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Populates the node dynamically on loading. </p>
<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. </p>

</div>
</div>
<a class="anchor" id="aee388605958559d124616ce9dbfc7df5"></a><!-- doxytag: member="Wt::WTreeNode::populated" ref="aee388605958559d124616ce9dbfc7df5" 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>)</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a6513443612d2456a69610e744bc629f4"></a><!-- doxytag: member="Wt::WTreeNode::removeChildNode" ref="a6513443612d2456a69610e744bc629f4" args="(WTreeNode *node)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::removeChildNode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a child node. </p>
<p>The child node itself is not deleted </p>

</div>
</div>
<a class="anchor" id="ae4bb84bf91002f80941d2e890cab12cd"></a><!-- doxytag: member="Wt::WTreeNode::renderSelected" ref="ae4bb84bf91002f80941d2e890cab12cd" 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&#160;</td>
          <td class="paramname"><em>selected</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Renders the node to be selected. </p>
<p>The default implementation changes the style class of the <a class="el" href="classWt_1_1WTreeNode.html#ae87e7590a98a4ccdbec6aeb49fd14025" title="Accesses the container widget that holds the label area.">labelArea()</a> to "selected". </p>

</div>
</div>
<a class="anchor" id="a23a35eefeeda38afbca4cf59404c4806"></a><!-- doxytag: member="Wt::WTreeNode::selected" ref="a23a35eefeeda38afbca4cf59404c4806" 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>)</td>
          <td></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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTree.html#a103603f639e07f83d1a75e293b70966d" title="Signal that is emitted when the selection changes.">WTree::itemSelectionChanged</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5a625b5a94386386dabd36277d5f7c1b"></a><!-- doxytag: member="Wt::WTreeNode::setChildCountPolicy" ref="a5a625b5a94386386dabd36277d5f7c1b" 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#a0deb92963922074b6262f71e9fccd24a">ChildCountPolicy</a>&#160;</td>
          <td class="paramname"><em>policy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configures how and when the child count should be displayed. </p>
<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>
<p>The child count policy is inherited by all children in the tree. </p>

</div>
</div>
<a class="anchor" id="a5594488be1f49052915b4ecc840f44ce"></a><!-- doxytag: member="Wt::WTreeNode::setChildrenDecorated" ref="a5594488be1f49052915b4ecc840f44ce" args="(bool decorated)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::setChildrenDecorated </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>decorated</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether this node's children are decorated. </p>
<p>By default, node's children have expand/collapse and other lines to display their linkage and offspring.</p>
<p>By setting <code>decorated</code> to <code>false</code>, you can hide the decorations for the node's children. </p>

</div>
</div>
<a class="anchor" id="aff37a6152a8195dd9b2a80e593d94298"></a><!-- doxytag: member="Wt::WTreeNode::setImagePack" ref="aff37a6152a8195dd9b2a80e593d94298" 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;&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the image pack for this (sub)tree (<b>deprecated</b>). </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000053">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>
<a class="anchor" id="a85e7232623373ad75a5b5bbdbbf734ca"></a><!-- doxytag: member="Wt::WTreeNode::setInteractive" ref="a85e7232623373ad75a5b5bbdbbf734ca" args="(bool interactive)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeNode::setInteractive </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>interactive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether this node is interactive. </p>
<p>Interactive nodes can be clicked upon and will populate a list of children when clicked. By disabling the interactivity, a node will not react to a click event. </p>

</div>
</div>
<a class="anchor" id="aaf3d613cc461f4d9d39a71cd45bd155e"></a><!-- doxytag: member="Wt::WTreeNode::setLoadPolicy" ref="aaf3d613cc461f4d9d39a71cd45bd155e" 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#a51c02b42c069e61a269fde598b9a1bff">LoadPolicy</a>&#160;</td>
          <td class="paramname"><em>loadPolicy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the load policy for this tree. </p>
<p>This may only be set on the root of a tree, and before adding any children. </p>

</div>
</div>
<a class="anchor" id="a63d37fa9bb5a3ba8ea178b5f3737626d"></a><!-- doxytag: member="Wt::WTreeNode::setNodeVisible" ref="a63d37fa9bb5a3ba8ea178b5f3737626d" 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&#160;</td>
          <td class="paramname"><em>visible</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the visibility of the node itself. </p>
<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. </p>

</div>
</div>
<a class="anchor" id="a60428cfc48b2a39550efc308b38406b2"></a><!-- doxytag: member="Wt::WTreeNode::setSelectable" ref="a60428cfc48b2a39550efc308b38406b2" 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&#160;</td>
          <td class="paramname"><em>selectable</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Allows this node to be selected. </p>
<p>By default, all nodes may be selected.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#a413239e83c39e46fbb7d9525ac615241" title="Returns if this node may be selected.">isSelectable()</a>, <a class="el" href="classWt_1_1WTree.html#a52c770a65ac3f4c2493f714271a5133a" 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#a1cf4a59e433df7c28e7917a5e03fdac1">Wt::WCompositeWidget</a>.</p>

</div>
</div>
<a class="anchor" id="adefe7d8365d9e64bde8e12cf0a1fe1c3"></a><!-- doxytag: member="Wt::WTreeNode::tree" ref="adefe7d8365d9e64bde8e12cf0a1fe1c3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WTree.html">WTree</a> * Wt::WTreeNode::tree </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the tree. </p>
<p>By default if this node has no parent the result will be 0. </p>

</div>
</div>
<a class="anchor" id="a67cd4a5c8169919e1e1feadc1cab7ae3"></a><!-- doxytag: member="Wt::WTreeNode::undoDoCollapse" ref="a67cd4a5c8169919e1e1feadc1cab7ae3" 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>)</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#a98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#a7cf5f24e57d19df0b8e01638c75c4bf7" title="The actual expand.">doExpand()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac0d0cbdfb0c8c0d493e70a6b40b40fc2"></a><!-- doxytag: member="Wt::WTreeNode::undoDoExpand" ref="ac0d0cbdfb0c8c0d493e70a6b40b40fc2" 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>)</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#a98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> stateless implementation. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#a98cc68ceed98e3e98145fe5a8129c066" title="The actual collapse.">doCollapse()</a> </dd></dl>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Fri Mar 30 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>