This file is indexed.

/usr/share/doc/libjuce/apiref/classTreeViewItem.html is in libjuce-doc 4.3.0~repack-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: TreeViewItem Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JUCE
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</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>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classTreeViewItem-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">TreeViewItem Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>An item in a treeview.  
 <a href="classTreeViewItem.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem_1_1OpennessRestorer.html">OpennessRestorer</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This handy class takes a copy of a <a class="el" href="classTreeViewItem.html" title="An item in a treeview. ">TreeViewItem</a>'s openness when you create it, and restores that openness state when its destructor is called.  <a href="classTreeViewItem_1_1OpennessRestorer.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aeb42402ed8e34ef5af931a762fd55bbd"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbd">Openness</a> { <a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbdaefa0abae48909ab7a14a0a6484be7d25">opennessDefault</a> = 0, 
<a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbdab61b2e3b4e60fb2ba1f6902987596420">opennessClosed</a> = 1, 
<a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbda8438197504704ddb2cf2bdb69d53fe57">opennessOpen</a> = 2
 }<tr class="memdesc:aeb42402ed8e34ef5af931a762fd55bbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">An enum of states to describe the explicit or implicit openness of an item.  <a href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbd">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:aeb42402ed8e34ef5af931a762fd55bbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a442058a1c6d9eef0aa6f8b918fcbf8d6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a442058a1c6d9eef0aa6f8b918fcbf8d6">TreeViewItem</a> ()</td></tr>
<tr class="memdesc:a442058a1c6d9eef0aa6f8b918fcbf8d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a442058a1c6d9eef0aa6f8b918fcbf8d6">More...</a><br /></td></tr>
<tr class="separator:a442058a1c6d9eef0aa6f8b918fcbf8d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a096327dbe3300e99a80eff28f0e20a14"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a096327dbe3300e99a80eff28f0e20a14">~TreeViewItem</a> ()</td></tr>
<tr class="memdesc:a096327dbe3300e99a80eff28f0e20a14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a096327dbe3300e99a80eff28f0e20a14">More...</a><br /></td></tr>
<tr class="separator:a096327dbe3300e99a80eff28f0e20a14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2357524e0d096bcde729ae99b03a38c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ae2357524e0d096bcde729ae99b03a38c">getNumSubItems</a> () const noexcept</td></tr>
<tr class="memdesc:ae2357524e0d096bcde729ae99b03a38c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of sub-items that have been added to this item.  <a href="#ae2357524e0d096bcde729ae99b03a38c">More...</a><br /></td></tr>
<tr class="separator:ae2357524e0d096bcde729ae99b03a38c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad12c774c2434074f795ba37a5c2d1755"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTreeViewItem.html">TreeViewItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ad12c774c2434074f795ba37a5c2d1755">getSubItem</a> (int index) const noexcept</td></tr>
<tr class="memdesc:ad12c774c2434074f795ba37a5c2d1755"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns one of the item's sub-items.  <a href="#ad12c774c2434074f795ba37a5c2d1755">More...</a><br /></td></tr>
<tr class="separator:ad12c774c2434074f795ba37a5c2d1755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e5f73cd812c6626047d38307560aaeb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a3e5f73cd812c6626047d38307560aaeb">clearSubItems</a> ()</td></tr>
<tr class="memdesc:a3e5f73cd812c6626047d38307560aaeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes any sub-items.  <a href="#a3e5f73cd812c6626047d38307560aaeb">More...</a><br /></td></tr>
<tr class="separator:a3e5f73cd812c6626047d38307560aaeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a536e1e4edaf0b0a472c485050d54eb5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a536e1e4edaf0b0a472c485050d54eb5a">addSubItem</a> (<a class="el" href="classTreeViewItem.html">TreeViewItem</a> *newItem, int insertPosition=-1)</td></tr>
<tr class="memdesc:a536e1e4edaf0b0a472c485050d54eb5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a sub-item.  <a href="#a536e1e4edaf0b0a472c485050d54eb5a">More...</a><br /></td></tr>
<tr class="separator:a536e1e4edaf0b0a472c485050d54eb5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb5e41812e3efba115ded6bf59fd4f72"><td class="memTemplParams" colspan="2">template&lt;class ElementComparator &gt; </td></tr>
<tr class="memitem:adb5e41812e3efba115ded6bf59fd4f72"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#adb5e41812e3efba115ded6bf59fd4f72">addSubItemSorted</a> (ElementComparator &amp;comparator, <a class="el" href="classTreeViewItem.html">TreeViewItem</a> *newItem)</td></tr>
<tr class="memdesc:adb5e41812e3efba115ded6bf59fd4f72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a sub-item with a sort-comparator, assuming that the existing items are already sorted.  <a href="#adb5e41812e3efba115ded6bf59fd4f72">More...</a><br /></td></tr>
<tr class="separator:adb5e41812e3efba115ded6bf59fd4f72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80b8910184619d952841a1b93d4b75c4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a80b8910184619d952841a1b93d4b75c4">removeSubItem</a> (int index, bool deleteItem=true)</td></tr>
<tr class="memdesc:a80b8910184619d952841a1b93d4b75c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes one of the sub-items.  <a href="#a80b8910184619d952841a1b93d4b75c4">More...</a><br /></td></tr>
<tr class="separator:a80b8910184619d952841a1b93d4b75c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a002342e5b39ddf192d445b2bdd16d086"><td class="memTemplParams" colspan="2">template&lt;class ElementComparator &gt; </td></tr>
<tr class="memitem:a002342e5b39ddf192d445b2bdd16d086"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a002342e5b39ddf192d445b2bdd16d086">sortSubItems</a> (ElementComparator &amp;comparator)</td></tr>
<tr class="memdesc:a002342e5b39ddf192d445b2bdd16d086"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sorts the list of sub-items using a standard array comparator.  <a href="#a002342e5b39ddf192d445b2bdd16d086">More...</a><br /></td></tr>
<tr class="separator:a002342e5b39ddf192d445b2bdd16d086"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5f9ce78c2bc579d308a7048c59a0a3c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTreeView.html">TreeView</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#af5f9ce78c2bc579d308a7048c59a0a3c">getOwnerView</a> () const noexcept</td></tr>
<tr class="memdesc:af5f9ce78c2bc579d308a7048c59a0a3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classTreeView.html" title="A tree-view component. ">TreeView</a> to which this item belongs.  <a href="#af5f9ce78c2bc579d308a7048c59a0a3c">More...</a><br /></td></tr>
<tr class="separator:af5f9ce78c2bc579d308a7048c59a0a3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ab42bc65bc8ad845d6deea5ff4572ae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTreeViewItem.html">TreeViewItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a2ab42bc65bc8ad845d6deea5ff4572ae">getParentItem</a> () const noexcept</td></tr>
<tr class="memdesc:a2ab42bc65bc8ad845d6deea5ff4572ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the item within which this item is contained.  <a href="#a2ab42bc65bc8ad845d6deea5ff4572ae">More...</a><br /></td></tr>
<tr class="separator:a2ab42bc65bc8ad845d6deea5ff4572ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac59d4198c7dc470ef45f705b23621e9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#aac59d4198c7dc470ef45f705b23621e9">isOpen</a> () const noexcept</td></tr>
<tr class="memdesc:aac59d4198c7dc470ef45f705b23621e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if this item is currently open in the treeview.  <a href="#aac59d4198c7dc470ef45f705b23621e9">More...</a><br /></td></tr>
<tr class="separator:aac59d4198c7dc470ef45f705b23621e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1d86e63026471f8edea97f7dc5fd05f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ae1d86e63026471f8edea97f7dc5fd05f">setOpen</a> (bool shouldBeOpen)</td></tr>
<tr class="memdesc:ae1d86e63026471f8edea97f7dc5fd05f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens or closes the item.  <a href="#ae1d86e63026471f8edea97f7dc5fd05f">More...</a><br /></td></tr>
<tr class="separator:ae1d86e63026471f8edea97f7dc5fd05f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af91df7aae2d59b7f4e40297e8a8175de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbd">Openness</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#af91df7aae2d59b7f4e40297e8a8175de">getOpenness</a> () const noexcept</td></tr>
<tr class="memdesc:af91df7aae2d59b7f4e40297e8a8175de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the openness state of this item.  <a href="#af91df7aae2d59b7f4e40297e8a8175de">More...</a><br /></td></tr>
<tr class="separator:af91df7aae2d59b7f4e40297e8a8175de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb9512d6c59c0cc89d8e4336a01b9897"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#adb9512d6c59c0cc89d8e4336a01b9897">setOpenness</a> (<a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbd">Openness</a> newOpenness)</td></tr>
<tr class="memdesc:adb9512d6c59c0cc89d8e4336a01b9897"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens or closes the item.  <a href="#adb9512d6c59c0cc89d8e4336a01b9897">More...</a><br /></td></tr>
<tr class="separator:adb9512d6c59c0cc89d8e4336a01b9897"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96351e2c95b73bf170b8818774a63cf6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a96351e2c95b73bf170b8818774a63cf6">isSelected</a> () const noexcept</td></tr>
<tr class="memdesc:a96351e2c95b73bf170b8818774a63cf6"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if this item is currently selected.  <a href="#a96351e2c95b73bf170b8818774a63cf6">More...</a><br /></td></tr>
<tr class="separator:a96351e2c95b73bf170b8818774a63cf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8db67708fff7b1da9fbcaa25a6494aa1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a8db67708fff7b1da9fbcaa25a6494aa1">setSelected</a> (bool shouldBeSelected, bool deselectOtherItemsFirst, <a class="el" href="juce__NotificationType_8h.html#a25a31a4bdc02a0d0adb743e26dd14ba9">NotificationType</a> shouldNotify=<a class="el" href="juce__NotificationType_8h.html#a25a31a4bdc02a0d0adb743e26dd14ba9ad9a3eff1d1ddebf33141da7cf581be4c">sendNotification</a>)</td></tr>
<tr class="memdesc:a8db67708fff7b1da9fbcaa25a6494aa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects or deselects the item.  <a href="#a8db67708fff7b1da9fbcaa25a6494aa1">More...</a><br /></td></tr>
<tr class="separator:a8db67708fff7b1da9fbcaa25a6494aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9263a18573cce52347899cb209d4feff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a9263a18573cce52347899cb209d4feff">getItemPosition</a> (bool relativeToTreeViewTopLeft) const noexcept</td></tr>
<tr class="memdesc:a9263a18573cce52347899cb209d4feff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the rectangle that this item occupies.  <a href="#a9263a18573cce52347899cb209d4feff">More...</a><br /></td></tr>
<tr class="separator:a9263a18573cce52347899cb209d4feff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab2752eec271a51384fd10121a911ee1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#aab2752eec271a51384fd10121a911ee1">treeHasChanged</a> () const noexcept</td></tr>
<tr class="memdesc:aab2752eec271a51384fd10121a911ee1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a signal to the treeview to make it refresh itself.  <a href="#aab2752eec271a51384fd10121a911ee1">More...</a><br /></td></tr>
<tr class="separator:aab2752eec271a51384fd10121a911ee1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa728a2bcde2b3cd8fca4360dbfe9f99d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#aa728a2bcde2b3cd8fca4360dbfe9f99d">repaintItem</a> () const</td></tr>
<tr class="memdesc:aa728a2bcde2b3cd8fca4360dbfe9f99d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a repaint message to redraw just this item.  <a href="#aa728a2bcde2b3cd8fca4360dbfe9f99d">More...</a><br /></td></tr>
<tr class="separator:aa728a2bcde2b3cd8fca4360dbfe9f99d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3809bbfa55ccd973205f5580fa0776c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ae3809bbfa55ccd973205f5580fa0776c">getRowNumberInTree</a> () const noexcept</td></tr>
<tr class="memdesc:ae3809bbfa55ccd973205f5580fa0776c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the row number of this item in the tree.  <a href="#ae3809bbfa55ccd973205f5580fa0776c">More...</a><br /></td></tr>
<tr class="separator:ae3809bbfa55ccd973205f5580fa0776c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c5a3bd296fe6eb6f3edc6310e723a0c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a9c5a3bd296fe6eb6f3edc6310e723a0c">areAllParentsOpen</a> () const noexcept</td></tr>
<tr class="memdesc:a9c5a3bd296fe6eb6f3edc6310e723a0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if all the item's parent nodes are open.  <a href="#a9c5a3bd296fe6eb6f3edc6310e723a0c">More...</a><br /></td></tr>
<tr class="separator:a9c5a3bd296fe6eb6f3edc6310e723a0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d398fd97dcd6566043fd1c1da202233"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a7d398fd97dcd6566043fd1c1da202233">setLinesDrawnForSubItems</a> (bool shouldDrawLines) noexcept</td></tr>
<tr class="memdesc:a7d398fd97dcd6566043fd1c1da202233"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes whether lines are drawn to connect any sub-items to this item.  <a href="#a7d398fd97dcd6566043fd1c1da202233">More...</a><br /></td></tr>
<tr class="separator:a7d398fd97dcd6566043fd1c1da202233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d4dc3f8e9971147e2649a128bd0344d"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a1d4dc3f8e9971147e2649a128bd0344d">mightContainSubItems</a> ()=0</td></tr>
<tr class="memdesc:a1d4dc3f8e9971147e2649a128bd0344d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells the tree whether this item can potentially be opened.  <a href="#a1d4dc3f8e9971147e2649a128bd0344d">More...</a><br /></td></tr>
<tr class="separator:a1d4dc3f8e9971147e2649a128bd0344d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaabafd453aa403ab00163c856280c388"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classString.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#aaabafd453aa403ab00163c856280c388">getUniqueName</a> () const</td></tr>
<tr class="memdesc:aaabafd453aa403ab00163c856280c388"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string to uniquely identify this item.  <a href="#aaabafd453aa403ab00163c856280c388">More...</a><br /></td></tr>
<tr class="separator:aaabafd453aa403ab00163c856280c388"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae675d65af3c2ab3455b98aa6d025d070"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ae675d65af3c2ab3455b98aa6d025d070">itemOpennessChanged</a> (bool isNowOpen)</td></tr>
<tr class="memdesc:ae675d65af3c2ab3455b98aa6d025d070"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when an item is opened or closed.  <a href="#ae675d65af3c2ab3455b98aa6d025d070">More...</a><br /></td></tr>
<tr class="separator:ae675d65af3c2ab3455b98aa6d025d070"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af087cb931e9d425fdd46edd2121e9a2b"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#af087cb931e9d425fdd46edd2121e9a2b">getItemWidth</a> () const</td></tr>
<tr class="memdesc:af087cb931e9d425fdd46edd2121e9a2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Must return the width required by this item.  <a href="#af087cb931e9d425fdd46edd2121e9a2b">More...</a><br /></td></tr>
<tr class="separator:af087cb931e9d425fdd46edd2121e9a2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20fcee0edadfed43cfb2277382887cd5"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a20fcee0edadfed43cfb2277382887cd5">getItemHeight</a> () const</td></tr>
<tr class="memdesc:a20fcee0edadfed43cfb2277382887cd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Must return the height required by this item.  <a href="#a20fcee0edadfed43cfb2277382887cd5">More...</a><br /></td></tr>
<tr class="separator:a20fcee0edadfed43cfb2277382887cd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89e1ecf284bf2bce94cf60b457f7964c"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a89e1ecf284bf2bce94cf60b457f7964c">canBeSelected</a> () const</td></tr>
<tr class="memdesc:a89e1ecf284bf2bce94cf60b457f7964c"><td class="mdescLeft">&#160;</td><td class="mdescRight">You can override this method to return false if you don't want to allow the user to select this item.  <a href="#a89e1ecf284bf2bce94cf60b457f7964c">More...</a><br /></td></tr>
<tr class="separator:a89e1ecf284bf2bce94cf60b457f7964c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af821a303a31a9256e00b94ff8fe2595d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classComponent.html">Component</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#af821a303a31a9256e00b94ff8fe2595d">createItemComponent</a> ()</td></tr>
<tr class="memdesc:af821a303a31a9256e00b94ff8fe2595d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a component that will be used to represent this item.  <a href="#af821a303a31a9256e00b94ff8fe2595d">More...</a><br /></td></tr>
<tr class="separator:af821a303a31a9256e00b94ff8fe2595d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc3e3a7c09443e28b1f48fe10b9569b2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#adc3e3a7c09443e28b1f48fe10b9569b2">paintItem</a> (<a class="el" href="classGraphics.html">Graphics</a> &amp;g, int width, int height)</td></tr>
<tr class="memdesc:adc3e3a7c09443e28b1f48fe10b9569b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the item's contents.  <a href="#adc3e3a7c09443e28b1f48fe10b9569b2">More...</a><br /></td></tr>
<tr class="separator:adc3e3a7c09443e28b1f48fe10b9569b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23749ce8fd2226cfe5ffda3af36a843d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a23749ce8fd2226cfe5ffda3af36a843d">paintOpenCloseButton</a> (<a class="el" href="classGraphics.html">Graphics</a> &amp;, const <a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; &amp;area, <a class="el" href="classColour.html">Colour</a> backgroundColour, bool isMouseOver)</td></tr>
<tr class="memdesc:a23749ce8fd2226cfe5ffda3af36a843d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the item's open/close button.  <a href="#a23749ce8fd2226cfe5ffda3af36a843d">More...</a><br /></td></tr>
<tr class="separator:a23749ce8fd2226cfe5ffda3af36a843d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1d9a9fb29727496e4149d9f5593f16e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ac1d9a9fb29727496e4149d9f5593f16e">paintHorizontalConnectingLine</a> (<a class="el" href="classGraphics.html">Graphics</a> &amp;, const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;line)</td></tr>
<tr class="memdesc:ac1d9a9fb29727496e4149d9f5593f16e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the line that connects this item to the vertical line extending below its parent.  <a href="#ac1d9a9fb29727496e4149d9f5593f16e">More...</a><br /></td></tr>
<tr class="separator:ac1d9a9fb29727496e4149d9f5593f16e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef65553f9c368989185c07be261c3dbd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#aef65553f9c368989185c07be261c3dbd">paintVerticalConnectingLine</a> (<a class="el" href="classGraphics.html">Graphics</a> &amp;, const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;line)</td></tr>
<tr class="memdesc:aef65553f9c368989185c07be261c3dbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the line that extends vertically up towards one of its parents, or down to one of its children.  <a href="#aef65553f9c368989185c07be261c3dbd">More...</a><br /></td></tr>
<tr class="separator:aef65553f9c368989185c07be261c3dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d16cbc797adba8e7dda4db01f868f72"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a1d16cbc797adba8e7dda4db01f868f72">itemClicked</a> (const <a class="el" href="classMouseEvent.html">MouseEvent</a> &amp;e)</td></tr>
<tr class="memdesc:a1d16cbc797adba8e7dda4db01f868f72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the user clicks on this item.  <a href="#a1d16cbc797adba8e7dda4db01f868f72">More...</a><br /></td></tr>
<tr class="separator:a1d16cbc797adba8e7dda4db01f868f72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44f6bac320a0ed884006e25558c6b513"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a44f6bac320a0ed884006e25558c6b513">itemDoubleClicked</a> (const <a class="el" href="classMouseEvent.html">MouseEvent</a> &amp;e)</td></tr>
<tr class="memdesc:a44f6bac320a0ed884006e25558c6b513"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the user double-clicks on this item.  <a href="#a44f6bac320a0ed884006e25558c6b513">More...</a><br /></td></tr>
<tr class="separator:a44f6bac320a0ed884006e25558c6b513"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b1fe5d650ef8cc31a16f1eaed03e837"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a2b1fe5d650ef8cc31a16f1eaed03e837">itemSelectionChanged</a> (bool isNowSelected)</td></tr>
<tr class="memdesc:a2b1fe5d650ef8cc31a16f1eaed03e837"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the item is selected or deselected.  <a href="#a2b1fe5d650ef8cc31a16f1eaed03e837">More...</a><br /></td></tr>
<tr class="separator:a2b1fe5d650ef8cc31a16f1eaed03e837"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66947aeb8814bc9164422375231ae5d6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a66947aeb8814bc9164422375231ae5d6">ownerViewChanged</a> (<a class="el" href="classTreeView.html">TreeView</a> *newOwner)</td></tr>
<tr class="memdesc:a66947aeb8814bc9164422375231ae5d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the owner view changes.  <a href="#a66947aeb8814bc9164422375231ae5d6">More...</a><br /></td></tr>
<tr class="separator:a66947aeb8814bc9164422375231ae5d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13b0004f086cd20f212d5a33a7c48474"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classString.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a13b0004f086cd20f212d5a33a7c48474">getTooltip</a> ()</td></tr>
<tr class="memdesc:a13b0004f086cd20f212d5a33a7c48474"><td class="mdescLeft">&#160;</td><td class="mdescRight">The item can return a tool tip string here if it wants to.  <a href="#a13b0004f086cd20f212d5a33a7c48474">More...</a><br /></td></tr>
<tr class="separator:a13b0004f086cd20f212d5a33a7c48474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a529dcbb8ef94476d1d78c0069efa6f39"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classvar.html">var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a529dcbb8ef94476d1d78c0069efa6f39">getDragSourceDescription</a> ()</td></tr>
<tr class="memdesc:a529dcbb8ef94476d1d78c0069efa6f39"><td class="mdescLeft">&#160;</td><td class="mdescRight">To allow items from your treeview to be dragged-and-dropped, implement this method.  <a href="#a529dcbb8ef94476d1d78c0069efa6f39">More...</a><br /></td></tr>
<tr class="separator:a529dcbb8ef94476d1d78c0069efa6f39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe8b909ba44b7eac0988b2adc6257c46"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#abe8b909ba44b7eac0988b2adc6257c46">isInterestedInFileDrag</a> (const <a class="el" href="classStringArray.html">StringArray</a> &amp;files)</td></tr>
<tr class="memdesc:abe8b909ba44b7eac0988b2adc6257c46"><td class="mdescLeft">&#160;</td><td class="mdescRight">If you want your item to be able to have files drag-and-dropped onto it, implement this method and return true.  <a href="#abe8b909ba44b7eac0988b2adc6257c46">More...</a><br /></td></tr>
<tr class="separator:abe8b909ba44b7eac0988b2adc6257c46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6149fa51385ef76bfede3481d3646797"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a6149fa51385ef76bfede3481d3646797">filesDropped</a> (const <a class="el" href="classStringArray.html">StringArray</a> &amp;files, int insertIndex)</td></tr>
<tr class="memdesc:a6149fa51385ef76bfede3481d3646797"><td class="mdescLeft">&#160;</td><td class="mdescRight">When files are dropped into this item, this callback is invoked.  <a href="#a6149fa51385ef76bfede3481d3646797">More...</a><br /></td></tr>
<tr class="separator:a6149fa51385ef76bfede3481d3646797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a1d27462d3ddf1fab3dca14e16c2788"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a7a1d27462d3ddf1fab3dca14e16c2788">isInterestedInDragSource</a> (const <a class="el" href="classDragAndDropTarget_1_1SourceDetails.html">DragAndDropTarget::SourceDetails</a> &amp;dragSourceDetails)</td></tr>
<tr class="memdesc:a7a1d27462d3ddf1fab3dca14e16c2788"><td class="mdescLeft">&#160;</td><td class="mdescRight">If you want your item to act as a <a class="el" href="classDragAndDropTarget.html" title="Components derived from this class can have things dropped onto them by a DragAndDropContainer. ">DragAndDropTarget</a>, implement this method and return true.  <a href="#a7a1d27462d3ddf1fab3dca14e16c2788">More...</a><br /></td></tr>
<tr class="separator:a7a1d27462d3ddf1fab3dca14e16c2788"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afade9c99b85939fe8521d55b0b2ab285"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#afade9c99b85939fe8521d55b0b2ab285">itemDropped</a> (const <a class="el" href="classDragAndDropTarget_1_1SourceDetails.html">DragAndDropTarget::SourceDetails</a> &amp;dragSourceDetails, int insertIndex)</td></tr>
<tr class="memdesc:afade9c99b85939fe8521d55b0b2ab285"><td class="mdescLeft">&#160;</td><td class="mdescRight">When a things are dropped into this item, this callback is invoked.  <a href="#afade9c99b85939fe8521d55b0b2ab285">More...</a><br /></td></tr>
<tr class="separator:afade9c99b85939fe8521d55b0b2ab285"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ad6617d063e99ca170d2726ca87c8b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a5ad6617d063e99ca170d2726ca87c8b1">setDrawsInLeftMargin</a> (bool canDrawInLeftMargin) noexcept</td></tr>
<tr class="memdesc:a5ad6617d063e99ca170d2726ca87c8b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a flag to indicate that the item wants to be allowed to draw all the way across to the left edge of the treeview.  <a href="#a5ad6617d063e99ca170d2726ca87c8b1">More...</a><br /></td></tr>
<tr class="separator:a5ad6617d063e99ca170d2726ca87c8b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d74053652a52f66f97aa611a2854c8e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a5d74053652a52f66f97aa611a2854c8e">setDrawsInRightMargin</a> (bool canDrawInRightMargin) noexcept</td></tr>
<tr class="memdesc:a5d74053652a52f66f97aa611a2854c8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a flag to indicate that the item wants to be allowed to draw all the way across to the right edge of the treeview.  <a href="#a5d74053652a52f66f97aa611a2854c8e">More...</a><br /></td></tr>
<tr class="separator:a5d74053652a52f66f97aa611a2854c8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe566c07ace7674ed34fce84c1d7af60"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXmlElement.html">XmlElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#afe566c07ace7674ed34fce84c1d7af60">getOpennessState</a> () const</td></tr>
<tr class="memdesc:afe566c07ace7674ed34fce84c1d7af60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the current state of open/closed nodes so it can be restored later.  <a href="#afe566c07ace7674ed34fce84c1d7af60">More...</a><br /></td></tr>
<tr class="separator:afe566c07ace7674ed34fce84c1d7af60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2543807283072980a45ba62f4f0eed46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#a2543807283072980a45ba62f4f0eed46">restoreOpennessState</a> (const <a class="el" href="classXmlElement.html">XmlElement</a> &amp;xml)</td></tr>
<tr class="memdesc:a2543807283072980a45ba62f4f0eed46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restores the openness of this item and all its sub-items from a saved state.  <a href="#a2543807283072980a45ba62f4f0eed46">More...</a><br /></td></tr>
<tr class="separator:a2543807283072980a45ba62f4f0eed46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad16ec5ae6dd02ed690001ac9a664fa44"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ad16ec5ae6dd02ed690001ac9a664fa44">getIndexInParent</a> () const noexcept</td></tr>
<tr class="memdesc:ad16ec5ae6dd02ed690001ac9a664fa44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of this item in its parent's sub-items.  <a href="#ad16ec5ae6dd02ed690001ac9a664fa44">More...</a><br /></td></tr>
<tr class="separator:ad16ec5ae6dd02ed690001ac9a664fa44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5a379de4cea292f0b66d6c9f4f3da42"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#ab5a379de4cea292f0b66d6c9f4f3da42">isLastOfSiblings</a> () const noexcept</td></tr>
<tr class="memdesc:ab5a379de4cea292f0b66d6c9f4f3da42"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if this item is the last of its parent's sub-itens.  <a href="#ab5a379de4cea292f0b66d6c9f4f3da42">More...</a><br /></td></tr>
<tr class="separator:ab5a379de4cea292f0b66d6c9f4f3da42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af62dcbe9dba30736350e1a9b3bc95d20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classString.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTreeViewItem.html#af62dcbe9dba30736350e1a9b3bc95d20">getItemIdentifierString</a> () const</td></tr>
<tr class="memdesc:af62dcbe9dba30736350e1a9b3bc95d20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a string that can be used to uniquely retrieve this item in the tree.  <a href="#af62dcbe9dba30736350e1a9b3bc95d20">More...</a><br /></td></tr>
<tr class="separator:af62dcbe9dba30736350e1a9b3bc95d20"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An item in a treeview. </p>
<p>A <a class="el" href="classTreeViewItem.html" title="An item in a treeview. ">TreeViewItem</a> can either be a leaf-node in the tree, or it can contain its own sub-items.</p>
<p>To implement an item that contains sub-items, override the <a class="el" href="classTreeViewItem.html#ae675d65af3c2ab3455b98aa6d025d070" title="Called when an item is opened or closed. ">itemOpennessChanged()</a> method so that when it is opened, it adds the new sub-items to itself using the addSubItem method. Depending on the nature of the item it might choose to only do this the first time it's opened, or it might want to refresh itself each time. It also has the option of deleting its sub-items when it is closed, or leaving them in place. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="aeb42402ed8e34ef5af931a762fd55bbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb42402ed8e34ef5af931a762fd55bbd">&sect;&nbsp;</a></span>Openness</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbd">TreeViewItem::Openness</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>An enum of states to describe the explicit or implicit openness of an item. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aeb42402ed8e34ef5af931a762fd55bbdaefa0abae48909ab7a14a0a6484be7d25"></a>opennessDefault&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aeb42402ed8e34ef5af931a762fd55bbdab61b2e3b4e60fb2ba1f6902987596420"></a>opennessClosed&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aeb42402ed8e34ef5af931a762fd55bbda8438197504704ddb2cf2bdb69d53fe57"></a>opennessOpen&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a442058a1c6d9eef0aa6f8b918fcbf8d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a442058a1c6d9eef0aa6f8b918fcbf8d6">&sect;&nbsp;</a></span>TreeViewItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TreeViewItem::TreeViewItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>

</div>
</div>
<a id="a096327dbe3300e99a80eff28f0e20a14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a096327dbe3300e99a80eff28f0e20a14">&sect;&nbsp;</a></span>~TreeViewItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual TreeViewItem::~TreeViewItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae2357524e0d096bcde729ae99b03a38c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2357524e0d096bcde729ae99b03a38c">&sect;&nbsp;</a></span>getNumSubItems()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int TreeViewItem::getNumSubItems </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the number of sub-items that have been added to this item. </p>
<p>Note that this doesn't mean much if the node isn't open.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#ad12c774c2434074f795ba37a5c2d1755" title="Returns one of the item&#39;s sub-items. ">getSubItem</a>, <a class="el" href="classTreeViewItem.html#a1d4dc3f8e9971147e2649a128bd0344d" title="Tells the tree whether this item can potentially be opened. ">mightContainSubItems</a>, <a class="el" href="classTreeViewItem.html#a536e1e4edaf0b0a472c485050d54eb5a" title="Adds a sub-item. ">addSubItem</a> </dd></dl>

</div>
</div>
<a id="ad12c774c2434074f795ba37a5c2d1755"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad12c774c2434074f795ba37a5c2d1755">&sect;&nbsp;</a></span>getSubItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTreeViewItem.html">TreeViewItem</a>* TreeViewItem::getSubItem </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns one of the item's sub-items. </p>
<p>Remember that the object returned might get deleted at any time when its parent item is closed or refreshed, depending on the nature of the items you're using.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#ae2357524e0d096bcde729ae99b03a38c" title="Returns the number of sub-items that have been added to this item. ">getNumSubItems</a> </dd></dl>

</div>
</div>
<a id="a3e5f73cd812c6626047d38307560aaeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e5f73cd812c6626047d38307560aaeb">&sect;&nbsp;</a></span>clearSubItems()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::clearSubItems </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes any sub-items. </p>

</div>
</div>
<a id="a536e1e4edaf0b0a472c485050d54eb5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a536e1e4edaf0b0a472c485050d54eb5a">&sect;&nbsp;</a></span>addSubItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::addSubItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTreeViewItem.html">TreeViewItem</a> *&#160;</td>
          <td class="paramname"><em>newItem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>insertPosition</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a sub-item. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newItem</td><td>the object to add to the item's sub-item list. Once added, these can be found using <a class="el" href="classTreeViewItem.html#ad12c774c2434074f795ba37a5c2d1755" title="Returns one of the item&#39;s sub-items. ">getSubItem()</a>. When the items are later removed with <a class="el" href="classTreeViewItem.html#a80b8910184619d952841a1b93d4b75c4" title="Removes one of the sub-items. ">removeSubItem()</a> (or when this item is deleted), they will be deleted. </td></tr>
    <tr><td class="paramname">insertPosition</td><td>the index which the new item should have when it's added. If this value is less than 0, the item will be added to the end of the list. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="adb5e41812e3efba115ded6bf59fd4f72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb5e41812e3efba115ded6bf59fd4f72">&sect;&nbsp;</a></span>addSubItemSorted()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ElementComparator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::addSubItemSorted </td>
          <td>(</td>
          <td class="paramtype">ElementComparator &amp;&#160;</td>
          <td class="paramname"><em>comparator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classTreeViewItem.html">TreeViewItem</a> *&#160;</td>
          <td class="paramname"><em>newItem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a sub-item with a sort-comparator, assuming that the existing items are already sorted. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">comparator</td><td>the comparator object for sorting - see <a class="el" href="classTreeViewItem.html#a002342e5b39ddf192d445b2bdd16d086" title="Sorts the list of sub-items using a standard array comparator. ">sortSubItems()</a> for details about the methods this class must provide. </td></tr>
    <tr><td class="paramname">newItem</td><td>the object to add to the item's sub-item list. Once added, these can be found using <a class="el" href="classTreeViewItem.html#ad12c774c2434074f795ba37a5c2d1755" title="Returns one of the item&#39;s sub-items. ">getSubItem()</a>. When the items are later removed with <a class="el" href="classTreeViewItem.html#a80b8910184619d952841a1b93d4b75c4" title="Removes one of the sub-items. ">removeSubItem()</a> (or when this item is deleted), they will be deleted. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a80b8910184619d952841a1b93d4b75c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80b8910184619d952841a1b93d4b75c4">&sect;&nbsp;</a></span>removeSubItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::removeSubItem </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">bool&#160;</td>
          <td class="paramname"><em>deleteItem</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes one of the sub-items. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>the item to remove </td></tr>
    <tr><td class="paramname">deleteItem</td><td>if true, the item that is removed will also be deleted. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a002342e5b39ddf192d445b2bdd16d086"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a002342e5b39ddf192d445b2bdd16d086">&sect;&nbsp;</a></span>sortSubItems()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ElementComparator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::sortSubItems </td>
          <td>(</td>
          <td class="paramtype">ElementComparator &amp;&#160;</td>
          <td class="paramname"><em>comparator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sorts the list of sub-items using a standard array comparator. </p>
<p>This will use a comparator object to sort the elements into order. The comparator object must have a method of the form: </p><div class="fragment"><div class="line"><span class="keywordtype">int</span> compareElements (<a class="code" href="classTreeViewItem.html">TreeViewItem</a>* first, <a class="code" href="classTreeViewItem.html">TreeViewItem</a>* second);</div></div><!-- fragment --><p>..and this method must return:</p><ul>
<li>a value of &lt; 0 if the first comes before the second</li>
<li>a value of 0 if the two objects are equivalent</li>
<li>a value of &gt; 0 if the second comes before the first</li>
</ul>
<p>To improve performance, the compareElements() method can be declared as static or const. </p>

</div>
</div>
<a id="af5f9ce78c2bc579d308a7048c59a0a3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5f9ce78c2bc579d308a7048c59a0a3c">&sect;&nbsp;</a></span>getOwnerView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTreeView.html">TreeView</a>* TreeViewItem::getOwnerView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classTreeView.html" title="A tree-view component. ">TreeView</a> to which this item belongs. </p>

</div>
</div>
<a id="a2ab42bc65bc8ad845d6deea5ff4572ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ab42bc65bc8ad845d6deea5ff4572ae">&sect;&nbsp;</a></span>getParentItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTreeViewItem.html">TreeViewItem</a>* TreeViewItem::getParentItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the item within which this item is contained. </p>

</div>
</div>
<a id="aac59d4198c7dc470ef45f705b23621e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac59d4198c7dc470ef45f705b23621e9">&sect;&nbsp;</a></span>isOpen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TreeViewItem::isOpen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>True if this item is currently open in the treeview. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#af91df7aae2d59b7f4e40297e8a8175de" title="Returns the openness state of this item. ">getOpenness</a> </dd></dl>

</div>
</div>
<a id="ae1d86e63026471f8edea97f7dc5fd05f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1d86e63026471f8edea97f7dc5fd05f">&sect;&nbsp;</a></span>setOpen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::setOpen </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shouldBeOpen</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opens or closes the item. </p>
<p>When opened or closed, the item's <a class="el" href="classTreeViewItem.html#ae675d65af3c2ab3455b98aa6d025d070" title="Called when an item is opened or closed. ">itemOpennessChanged()</a> method will be called, and a subclass should use this callback to create and add any sub-items that it needs to.</p>
<p>Note that if this is called when the item is in its default openness state, and this call would not change whether it's open or closed, then no change will be stored. If you want to explicitly set the openness state to be non-default then you should use setOpenness instead.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#adb9512d6c59c0cc89d8e4336a01b9897" title="Opens or closes the item. ">setOpenness</a>, <a class="el" href="classTreeViewItem.html#ae675d65af3c2ab3455b98aa6d025d070" title="Called when an item is opened or closed. ">itemOpennessChanged</a>, <a class="el" href="classTreeViewItem.html#a1d4dc3f8e9971147e2649a128bd0344d" title="Tells the tree whether this item can potentially be opened. ">mightContainSubItems</a> </dd></dl>

</div>
</div>
<a id="af91df7aae2d59b7f4e40297e8a8175de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af91df7aae2d59b7f4e40297e8a8175de">&sect;&nbsp;</a></span>getOpenness()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbd">Openness</a> TreeViewItem::getOpenness </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the openness state of this item. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#aac59d4198c7dc470ef45f705b23621e9" title="True if this item is currently open in the treeview. ">isOpen</a> </dd></dl>

</div>
</div>
<a id="adb9512d6c59c0cc89d8e4336a01b9897"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb9512d6c59c0cc89d8e4336a01b9897">&sect;&nbsp;</a></span>setOpenness()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::setOpenness </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTreeViewItem.html#aeb42402ed8e34ef5af931a762fd55bbd">Openness</a>&#160;</td>
          <td class="paramname"><em>newOpenness</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opens or closes the item. </p>
<p>If this causes the value of <a class="el" href="classTreeViewItem.html#aac59d4198c7dc470ef45f705b23621e9" title="True if this item is currently open in the treeview. ">isOpen()</a> to change, then the item's <a class="el" href="classTreeViewItem.html#ae675d65af3c2ab3455b98aa6d025d070" title="Called when an item is opened or closed. ">itemOpennessChanged()</a> method will be called, and a subclass should use this callback to create and add any sub-items that it needs to.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#ae1d86e63026471f8edea97f7dc5fd05f" title="Opens or closes the item. ">setOpen</a> </dd></dl>

</div>
</div>
<a id="a96351e2c95b73bf170b8818774a63cf6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96351e2c95b73bf170b8818774a63cf6">&sect;&nbsp;</a></span>isSelected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TreeViewItem::isSelected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>True if this item is currently selected. </p>
<p>Use this when painting the node, to decide whether to draw it as selected or not. </p>

</div>
</div>
<a id="a8db67708fff7b1da9fbcaa25a6494aa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8db67708fff7b1da9fbcaa25a6494aa1">&sect;&nbsp;</a></span>setSelected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::setSelected </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shouldBeSelected</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>deselectOtherItemsFirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="juce__NotificationType_8h.html#a25a31a4bdc02a0d0adb743e26dd14ba9">NotificationType</a>&#160;</td>
          <td class="paramname"><em>shouldNotify</em> = <code><a class="el" href="juce__NotificationType_8h.html#a25a31a4bdc02a0d0adb743e26dd14ba9ad9a3eff1d1ddebf33141da7cf581be4c">sendNotification</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selects or deselects the item. </p>
<p>If shouldNotify == sendNotification, then a callback will be made to <a class="el" href="classTreeViewItem.html#a2b1fe5d650ef8cc31a16f1eaed03e837" title="Called when the item is selected or deselected. ">itemSelectionChanged()</a> </p>

</div>
</div>
<a id="a9263a18573cce52347899cb209d4feff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9263a18573cce52347899cb209d4feff">&sect;&nbsp;</a></span>getItemPosition()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classRectangle.html">Rectangle</a>&lt;int&gt; TreeViewItem::getItemPosition </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>relativeToTreeViewTopLeft</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the rectangle that this item occupies. </p>
<p>If relativeToTreeViewTopLeft is true, the coordinates are relative to the top-left of the <a class="el" href="classTreeView.html" title="A tree-view component. ">TreeView</a> comp, so this will depend on the scroll-position of the tree. If false, it is relative to the top-left of the topmost item in the tree (so this would be unaffected by scrolling the view). </p>

</div>
</div>
<a id="aab2752eec271a51384fd10121a911ee1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab2752eec271a51384fd10121a911ee1">&sect;&nbsp;</a></span>treeHasChanged()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::treeHasChanged </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sends a signal to the treeview to make it refresh itself. </p>
<p>Call this if your items have changed and you want the tree to update to reflect this. </p>

</div>
</div>
<a id="aa728a2bcde2b3cd8fca4360dbfe9f99d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa728a2bcde2b3cd8fca4360dbfe9f99d">&sect;&nbsp;</a></span>repaintItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::repaintItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends a repaint message to redraw just this item. </p>
<p>Note that you should only call this if you want to repaint a superficial change. If you're altering the tree's nodes, you should instead call <a class="el" href="classTreeViewItem.html#aab2752eec271a51384fd10121a911ee1" title="Sends a signal to the treeview to make it refresh itself. ">treeHasChanged()</a>. </p>

</div>
</div>
<a id="ae3809bbfa55ccd973205f5580fa0776c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3809bbfa55ccd973205f5580fa0776c">&sect;&nbsp;</a></span>getRowNumberInTree()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int TreeViewItem::getRowNumberInTree </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the row number of this item in the tree. </p>
<p>The row number of an item will change according to which items are open. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeView.html#af37f825a9c33a3350391b1bdd6897c04" title="Returns the number of rows the tree is using. ">TreeView::getNumRowsInTree()</a>, <a class="el" href="classTreeView.html#a1e2aec6fafafd75571bd3c7988352297" title="Returns the item on a particular row of the tree. ">TreeView::getItemOnRow()</a> </dd></dl>

</div>
</div>
<a id="a9c5a3bd296fe6eb6f3edc6310e723a0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c5a3bd296fe6eb6f3edc6310e723a0c">&sect;&nbsp;</a></span>areAllParentsOpen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TreeViewItem::areAllParentsOpen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if all the item's parent nodes are open. </p>
<p>This is useful to check whether the item might actually be visible or not. </p>

</div>
</div>
<a id="a7d398fd97dcd6566043fd1c1da202233"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d398fd97dcd6566043fd1c1da202233">&sect;&nbsp;</a></span>setLinesDrawnForSubItems()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::setLinesDrawnForSubItems </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shouldDrawLines</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Changes whether lines are drawn to connect any sub-items to this item. </p>
<p>By default, line-drawing is turned on according to <a class="el" href="structTreeView_1_1LookAndFeelMethods.html#ad7490df2393ac611eeef8b86438e5133">LookAndFeel::areLinesDrawnForTreeView()</a>. </p>

</div>
</div>
<a id="a1d4dc3f8e9971147e2649a128bd0344d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d4dc3f8e9971147e2649a128bd0344d">&sect;&nbsp;</a></span>mightContainSubItems()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TreeViewItem::mightContainSubItems </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Tells the tree whether this item can potentially be opened. </p>
<p>If your item could contain sub-items, this should return true; if it returns false then the tree will not try to open the item. This determines whether or not the item will be drawn with a 'plus' button next to it. </p>

</div>
</div>
<a id="aaabafd453aa403ab00163c856280c388"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaabafd453aa403ab00163c856280c388">&sect;&nbsp;</a></span>getUniqueName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classString.html">String</a> TreeViewItem::getUniqueName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a string to uniquely identify this item. </p>
<p>If you're planning on using the <a class="el" href="classTreeView.html#a9394821185f1feaaa1a7002b0b4d1ad4" title="Saves the current state of open/closed nodes so it can be restored later. ">TreeView::getOpennessState()</a> method, then these strings will be used to identify which nodes are open. The string should be unique amongst the item's sibling items, but it's ok for there to be duplicates at other levels of the tree.</p>
<p>If you're not going to store the state, then it's ok not to bother implementing this method. </p>

</div>
</div>
<a id="ae675d65af3c2ab3455b98aa6d025d070"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae675d65af3c2ab3455b98aa6d025d070">&sect;&nbsp;</a></span>itemOpennessChanged()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::itemOpennessChanged </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isNowOpen</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Called when an item is opened or closed. </p>
<p>When <a class="el" href="classTreeViewItem.html#ae1d86e63026471f8edea97f7dc5fd05f" title="Opens or closes the item. ">setOpen()</a> is called and the item has specified that it might have sub-items with the <a class="el" href="classTreeViewItem.html#a1d4dc3f8e9971147e2649a128bd0344d" title="Tells the tree whether this item can potentially be opened. ">mightContainSubItems()</a> method, this method is called to let the item create or manage its sub-items.</p>
<p>So when this is called with isNowOpen set to true (i.e. when the item is being opened), a subclass might choose to use <a class="el" href="classTreeViewItem.html#a3e5f73cd812c6626047d38307560aaeb" title="Removes any sub-items. ">clearSubItems()</a> and <a class="el" href="classTreeViewItem.html#a536e1e4edaf0b0a472c485050d54eb5a" title="Adds a sub-item. ">addSubItem()</a> to refresh its sub-item list.</p>
<p>When this is called with isNowOpen set to false, the subclass might want to use <a class="el" href="classTreeViewItem.html#a3e5f73cd812c6626047d38307560aaeb" title="Removes any sub-items. ">clearSubItems()</a> to save on space, or it might choose to leave them, depending on the nature of the tree.</p>
<p>You could also use this callback as a trigger to start a background process which asynchronously creates sub-items and adds them, if that's more appropriate for the task in hand.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#a1d4dc3f8e9971147e2649a128bd0344d" title="Tells the tree whether this item can potentially be opened. ">mightContainSubItems</a> </dd></dl>

</div>
</div>
<a id="af087cb931e9d425fdd46edd2121e9a2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af087cb931e9d425fdd46edd2121e9a2b">&sect;&nbsp;</a></span>getItemWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int TreeViewItem::getItemWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Must return the width required by this item. </p>
<p>If your item needs to have a particular width in pixels, return that value; if you'd rather have it just fill whatever space is available in the treeview, return -1.</p>
<p>If all your items return -1, no horizontal scrollbar will be shown, but if any items have fixed widths and extend beyond the width of the treeview, a scrollbar will appear.</p>
<p>Each item can be a different width, but if they change width, you should call <a class="el" href="classTreeViewItem.html#aab2752eec271a51384fd10121a911ee1" title="Sends a signal to the treeview to make it refresh itself. ">treeHasChanged()</a> to update the tree. </p>

</div>
</div>
<a id="a20fcee0edadfed43cfb2277382887cd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20fcee0edadfed43cfb2277382887cd5">&sect;&nbsp;</a></span>getItemHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int TreeViewItem::getItemHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Must return the height required by this item. </p>
<p>This is the height in pixels that the item will take up. Items in the tree can be different heights, but if they change height, you should call <a class="el" href="classTreeViewItem.html#aab2752eec271a51384fd10121a911ee1" title="Sends a signal to the treeview to make it refresh itself. ">treeHasChanged()</a> to update the tree. </p>

</div>
</div>
<a id="a89e1ecf284bf2bce94cf60b457f7964c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89e1ecf284bf2bce94cf60b457f7964c">&sect;&nbsp;</a></span>canBeSelected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TreeViewItem::canBeSelected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>You can override this method to return false if you don't want to allow the user to select this item. </p>

</div>
</div>
<a id="af821a303a31a9256e00b94ff8fe2595d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af821a303a31a9256e00b94ff8fe2595d">&sect;&nbsp;</a></span>createItemComponent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classComponent.html">Component</a>* TreeViewItem::createItemComponent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a component that will be used to represent this item. </p>
<p>You don't have to implement this method - if it returns nullptr then no component will be used for the item, and you can just draw it using the <a class="el" href="classTreeViewItem.html#adc3e3a7c09443e28b1f48fe10b9569b2" title="Draws the item&#39;s contents. ">paintItem()</a> callback. But if you do return a component, it will be positioned in the treeview so that it can be used to represent this item.</p>
<p>The component returned will be managed by the treeview, so always return a new component, and don't keep a reference to it, as the treeview will delete it later when it goes off the screen or is no longer needed. Also bear in mind that if the component keeps a reference to the item that created it, that item could be deleted before the component. Its position and size will be completely managed by the tree, so don't attempt to move it around.</p>
<p>Something you may want to do with your component is to give it a pointer to the <a class="el" href="classTreeView.html" title="A tree-view component. ">TreeView</a> that created it. This is perfectly safe, and there's no danger of it becoming a dangling pointer because the <a class="el" href="classTreeView.html" title="A tree-view component. ">TreeView</a> will always delete the component before it is itself deleted.</p>
<p>As long as you stick to these rules you can return whatever kind of component you like. It's most useful if you're doing things like drag-and-drop of items, or want to use a <a class="el" href="classLabel.html" title="A component that displays a text string, and can optionally become a text editor when clicked...">Label</a> component to edit item names, etc. </p>

</div>
</div>
<a id="adc3e3a7c09443e28b1f48fe10b9569b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc3e3a7c09443e28b1f48fe10b9569b2">&sect;&nbsp;</a></span>paintItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::paintItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGraphics.html">Graphics</a> &amp;&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draws the item's contents. </p>
<p>You can choose to either implement this method and draw each item, or you can use <a class="el" href="classTreeViewItem.html#af821a303a31a9256e00b94ff8fe2595d" title="Creates a component that will be used to represent this item. ">createItemComponent()</a> to create a component that will represent the item.</p>
<p>If all you need in your tree is to be able to draw the items and detect when the user selects or double-clicks one of them, it's probably enough to use <a class="el" href="classTreeViewItem.html#adc3e3a7c09443e28b1f48fe10b9569b2" title="Draws the item&#39;s contents. ">paintItem()</a>, <a class="el" href="classTreeViewItem.html#a1d16cbc797adba8e7dda4db01f868f72" title="Called when the user clicks on this item. ">itemClicked()</a> and <a class="el" href="classTreeViewItem.html#a44f6bac320a0ed884006e25558c6b513" title="Called when the user double-clicks on this item. ">itemDoubleClicked()</a>. If you need more complicated interactions, you may need to use <a class="el" href="classTreeViewItem.html#af821a303a31a9256e00b94ff8fe2595d" title="Creates a component that will be used to represent this item. ">createItemComponent()</a> instead.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">g</td><td>the graphics context to draw into </td></tr>
    <tr><td class="paramname">width</td><td>the width of the area available for drawing </td></tr>
    <tr><td class="paramname">height</td><td>the height of the area available for drawing </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a23749ce8fd2226cfe5ffda3af36a843d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23749ce8fd2226cfe5ffda3af36a843d">&sect;&nbsp;</a></span>paintOpenCloseButton()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::paintOpenCloseButton </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGraphics.html">Graphics</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>area</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classColour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>backgroundColour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isMouseOver</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draws the item's open/close button. </p>
<p>If you don't implement this method, the default behaviour is to call <a class="el" href="structTreeView_1_1LookAndFeelMethods.html#afd3c7002207226d973a7d2082dadd409">LookAndFeel::drawTreeviewPlusMinusBox()</a>, but you can override it for custom effects. You may want to override it and call the base-class implementation with a different backgroundColour parameter, if your implementation has a background colour other than the default (white). </p>

</div>
</div>
<a id="ac1d9a9fb29727496e4149d9f5593f16e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1d9a9fb29727496e4149d9f5593f16e">&sect;&nbsp;</a></span>paintHorizontalConnectingLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::paintHorizontalConnectingLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGraphics.html">Graphics</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draws the line that connects this item to the vertical line extending below its parent. </p>

</div>
</div>
<a id="aef65553f9c368989185c07be261c3dbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef65553f9c368989185c07be261c3dbd">&sect;&nbsp;</a></span>paintVerticalConnectingLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::paintVerticalConnectingLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGraphics.html">Graphics</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draws the line that extends vertically up towards one of its parents, or down to one of its children. </p>

</div>
</div>
<a id="a1d16cbc797adba8e7dda4db01f868f72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d16cbc797adba8e7dda4db01f868f72">&sect;&nbsp;</a></span>itemClicked()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::itemClicked </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classMouseEvent.html">MouseEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Called when the user clicks on this item. </p>
<p>If you're using <a class="el" href="classTreeViewItem.html#af821a303a31a9256e00b94ff8fe2595d" title="Creates a component that will be used to represent this item. ">createItemComponent()</a> to create a custom component for the item, the mouse-clicks might not make it through to the treeview, but this is how you find out about clicks when just drawing each item individually.</p>
<p>The associated mouse-event details are passed in, so you can find out about which button, where it was, etc.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#a44f6bac320a0ed884006e25558c6b513" title="Called when the user double-clicks on this item. ">itemDoubleClicked</a> </dd></dl>

</div>
</div>
<a id="a44f6bac320a0ed884006e25558c6b513"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44f6bac320a0ed884006e25558c6b513">&sect;&nbsp;</a></span>itemDoubleClicked()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::itemDoubleClicked </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classMouseEvent.html">MouseEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Called when the user double-clicks on this item. </p>
<p>If you're using <a class="el" href="classTreeViewItem.html#af821a303a31a9256e00b94ff8fe2595d" title="Creates a component that will be used to represent this item. ">createItemComponent()</a> to create a custom component for the item, the mouse-clicks might not make it through to the treeview, but this is how you find out about clicks when just drawing each item individually.</p>
<p>The associated mouse-event details are passed in, so you can find out about which button, where it was, etc.</p>
<p>If not overridden, the base class method here will open or close the item as if the 'plus' button had been clicked.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#a1d16cbc797adba8e7dda4db01f868f72" title="Called when the user clicks on this item. ">itemClicked</a> </dd></dl>

</div>
</div>
<a id="a2b1fe5d650ef8cc31a16f1eaed03e837"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b1fe5d650ef8cc31a16f1eaed03e837">&sect;&nbsp;</a></span>itemSelectionChanged()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::itemSelectionChanged </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isNowSelected</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Called when the item is selected or deselected. </p>
<p>Use this if you want to do something special when the item's selectedness changes. By default it'll get repainted when this happens. </p>

</div>
</div>
<a id="a66947aeb8814bc9164422375231ae5d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66947aeb8814bc9164422375231ae5d6">&sect;&nbsp;</a></span>ownerViewChanged()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::ownerViewChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTreeView.html">TreeView</a> *&#160;</td>
          <td class="paramname"><em>newOwner</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Called when the owner view changes. </p>

</div>
</div>
<a id="a13b0004f086cd20f212d5a33a7c48474"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13b0004f086cd20f212d5a33a7c48474">&sect;&nbsp;</a></span>getTooltip()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classString.html">String</a> TreeViewItem::getTooltip </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The item can return a tool tip string here if it wants to. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTooltipClient.html" title="Components that want to use pop-up tooltips should implement this interface. ">TooltipClient</a> </dd></dl>

</div>
</div>
<a id="a529dcbb8ef94476d1d78c0069efa6f39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a529dcbb8ef94476d1d78c0069efa6f39">&sect;&nbsp;</a></span>getDragSourceDescription()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classvar.html">var</a> TreeViewItem::getDragSourceDescription </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>To allow items from your treeview to be dragged-and-dropped, implement this method. </p>
<p>If this returns a non-null variant then when the user drags an item, the treeview will try to find a <a class="el" href="classDragAndDropContainer.html" title="Enables drag-and-drop behaviour for a component and all its sub-components. ">DragAndDropContainer</a> in its parent hierarchy, and will use it to trigger a drag-and-drop operation, using this string as the source description, with the treeview itself as the source component.</p>
<p>If you need more complex drag-and-drop behaviour, you can use custom components for the items, and use those to trigger the drag.</p>
<p>To accept drag-and-drop in your tree, see <a class="el" href="classTreeViewItem.html#a7a1d27462d3ddf1fab3dca14e16c2788" title="If you want your item to act as a DragAndDropTarget, implement this method and return true...">isInterestedInDragSource()</a>, <a class="el" href="classTreeViewItem.html#abe8b909ba44b7eac0988b2adc6257c46" title="If you want your item to be able to have files drag-and-dropped onto it, implement this method and re...">isInterestedInFileDrag()</a>, etc.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDragAndDropContainer.html#a1f05c2d712f9cf0dd2a789817549bf60" title="Begins a drag-and-drop operation. ">DragAndDropContainer::startDragging</a> </dd></dl>

</div>
</div>
<a id="abe8b909ba44b7eac0988b2adc6257c46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe8b909ba44b7eac0988b2adc6257c46">&sect;&nbsp;</a></span>isInterestedInFileDrag()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TreeViewItem::isInterestedInFileDrag </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classStringArray.html">StringArray</a> &amp;&#160;</td>
          <td class="paramname"><em>files</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>If you want your item to be able to have files drag-and-dropped onto it, implement this method and return true. </p>
<p>If you return true and allow some files to be dropped, you'll also need to implement the <a class="el" href="classTreeViewItem.html#a6149fa51385ef76bfede3481d3646797" title="When files are dropped into this item, this callback is invoked. ">filesDropped()</a> method to do something with them.</p>
<p>Note that this will be called often, so make your implementation very quick! There's certainly no time to try opening the files and having a think about what's inside them!</p>
<p>For responding to internal drag-and-drop of other types of object, see <a class="el" href="classTreeViewItem.html#a7a1d27462d3ddf1fab3dca14e16c2788" title="If you want your item to act as a DragAndDropTarget, implement this method and return true...">isInterestedInDragSource()</a>. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classFileDragAndDropTarget.html#a44fa7f7e69dec8119c6b3a6ff9d2ddce" title="Callback to check whether this target is interested in the set of files being offered. ">FileDragAndDropTarget::isInterestedInFileDrag</a>, <a class="el" href="classTreeViewItem.html#a7a1d27462d3ddf1fab3dca14e16c2788" title="If you want your item to act as a DragAndDropTarget, implement this method and return true...">isInterestedInDragSource</a> </dd></dl>

</div>
</div>
<a id="a6149fa51385ef76bfede3481d3646797"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6149fa51385ef76bfede3481d3646797">&sect;&nbsp;</a></span>filesDropped()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::filesDropped </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classStringArray.html">StringArray</a> &amp;&#160;</td>
          <td class="paramname"><em>files</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>insertIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>When files are dropped into this item, this callback is invoked. </p>
<p>For this to work, you'll need to have also implemented <a class="el" href="classTreeViewItem.html#abe8b909ba44b7eac0988b2adc6257c46" title="If you want your item to be able to have files drag-and-dropped onto it, implement this method and re...">isInterestedInFileDrag()</a>. The insertIndex value indicates where in the list of sub-items the files were dropped. If files are dropped onto an area of the tree where there are no visible items, this method is called on the root item of the tree, with an insert index of 0. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classFileDragAndDropTarget.html#adc7848885ab2d9380f242c6445b019d4" title="Callback to indicate that the user has dropped the files onto this component. ">FileDragAndDropTarget::filesDropped</a>, <a class="el" href="classTreeViewItem.html#abe8b909ba44b7eac0988b2adc6257c46" title="If you want your item to be able to have files drag-and-dropped onto it, implement this method and re...">isInterestedInFileDrag</a> </dd></dl>

</div>
</div>
<a id="a7a1d27462d3ddf1fab3dca14e16c2788"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a1d27462d3ddf1fab3dca14e16c2788">&sect;&nbsp;</a></span>isInterestedInDragSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TreeViewItem::isInterestedInDragSource </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDragAndDropTarget_1_1SourceDetails.html">DragAndDropTarget::SourceDetails</a> &amp;&#160;</td>
          <td class="paramname"><em>dragSourceDetails</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>If you want your item to act as a <a class="el" href="classDragAndDropTarget.html" title="Components derived from this class can have things dropped onto them by a DragAndDropContainer. ">DragAndDropTarget</a>, implement this method and return true. </p>
<p>If you implement this method, you'll also need to implement <a class="el" href="classTreeViewItem.html#afade9c99b85939fe8521d55b0b2ab285" title="When a things are dropped into this item, this callback is invoked. ">itemDropped()</a> in order to handle the items when they are dropped. To respond to drag-and-drop of files from external applications, see <a class="el" href="classTreeViewItem.html#abe8b909ba44b7eac0988b2adc6257c46" title="If you want your item to be able to have files drag-and-dropped onto it, implement this method and re...">isInterestedInFileDrag()</a>. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classDragAndDropTarget.html#a53853ec7aac70f5590a590b84c3f4f12" title="Callback to check whether this target is interested in the type of object being dragged. ">DragAndDropTarget::isInterestedInDragSource</a>, <a class="el" href="classTreeViewItem.html#afade9c99b85939fe8521d55b0b2ab285" title="When a things are dropped into this item, this callback is invoked. ">itemDropped</a> </dd></dl>

</div>
</div>
<a id="afade9c99b85939fe8521d55b0b2ab285"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afade9c99b85939fe8521d55b0b2ab285">&sect;&nbsp;</a></span>itemDropped()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TreeViewItem::itemDropped </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDragAndDropTarget_1_1SourceDetails.html">DragAndDropTarget::SourceDetails</a> &amp;&#160;</td>
          <td class="paramname"><em>dragSourceDetails</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>insertIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>When a things are dropped into this item, this callback is invoked. </p>
<p>For this to work, you need to have also implemented <a class="el" href="classTreeViewItem.html#a7a1d27462d3ddf1fab3dca14e16c2788" title="If you want your item to act as a DragAndDropTarget, implement this method and return true...">isInterestedInDragSource()</a>. The insertIndex value indicates where in the list of sub-items the new items should be placed. If files are dropped onto an area of the tree where there are no visible items, this method is called on the root item of the tree, with an insert index of 0. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#a7a1d27462d3ddf1fab3dca14e16c2788" title="If you want your item to act as a DragAndDropTarget, implement this method and return true...">isInterestedInDragSource</a>, <a class="el" href="classDragAndDropTarget.html#ac2240ffc2dd0ccf61670780a15b66017" title="Callback to indicate that the user has dropped something onto this component. ">DragAndDropTarget::itemDropped</a> </dd></dl>

</div>
</div>
<a id="a5ad6617d063e99ca170d2726ca87c8b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ad6617d063e99ca170d2726ca87c8b1">&sect;&nbsp;</a></span>setDrawsInLeftMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::setDrawsInLeftMargin </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>canDrawInLeftMargin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets a flag to indicate that the item wants to be allowed to draw all the way across to the left edge of the treeview. </p>
<p>By default this is false, which means that when the <a class="el" href="classTreeViewItem.html#adc3e3a7c09443e28b1f48fe10b9569b2" title="Draws the item&#39;s contents. ">paintItem()</a> method is called, its graphics context is clipped to only allow drawing within the item's rectangle. If this flag is set to true, then the graphics context isn't clipped on its left side, so it can draw all the way across to the left margin. Note that the context will still have its origin in the same place though, so the coordinates of anything to its left will be negative. It's mostly useful if you want to draw a wider bar behind the highlighted item. </p>

</div>
</div>
<a id="a5d74053652a52f66f97aa611a2854c8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d74053652a52f66f97aa611a2854c8e">&sect;&nbsp;</a></span>setDrawsInRightMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::setDrawsInRightMargin </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>canDrawInRightMargin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets a flag to indicate that the item wants to be allowed to draw all the way across to the right edge of the treeview. </p>
<p>Similar to setDrawsInLeftMargin: when this flag is set to true, then the graphics context isn't clipped on the right side. Unlike setDrawsInLeftMargin, you will very rarely need to use this function, as this method won't clip the right margin unless your <a class="el" href="classTreeViewItem.html" title="An item in a treeview. ">TreeViewItem</a> overrides getItemWidth to return a positive value.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeViewItem.html#a5ad6617d063e99ca170d2726ca87c8b1" title="Sets a flag to indicate that the item wants to be allowed to draw all the way across to the left edge...">setDrawsInLeftMargin</a>, <a class="el" href="classTreeViewItem.html#af087cb931e9d425fdd46edd2121e9a2b" title="Must return the width required by this item. ">getItemWidth</a> </dd></dl>

</div>
</div>
<a id="afe566c07ace7674ed34fce84c1d7af60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe566c07ace7674ed34fce84c1d7af60">&sect;&nbsp;</a></span>getOpennessState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classXmlElement.html">XmlElement</a>* TreeViewItem::getOpennessState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Saves the current state of open/closed nodes so it can be restored later. </p>
<p>This takes a snapshot of which sub-nodes have been explicitly opened or closed, and records it as XML. To identify node objects it uses the <a class="el" href="classTreeViewItem.html#aaabafd453aa403ab00163c856280c388" title="Returns a string to uniquely identify this item. ">TreeViewItem::getUniqueName()</a> method to create named paths. This means that the same state of open/closed nodes can be restored to a completely different instance of the tree, as long as it contains nodes whose unique names are the same.</p>
<p>You'd normally want to use <a class="el" href="classTreeView.html#a9394821185f1feaaa1a7002b0b4d1ad4" title="Saves the current state of open/closed nodes so it can be restored later. ">TreeView::getOpennessState()</a> rather than call it for a specific item, but this can be handy if you need to briefly save the state for a section of the tree.</p>
<p>The caller is responsible for deleting the object that is returned.</p>
<p>Note that if all nodes of the tree are in their default state, then this may return a nullptr.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeView.html#a9394821185f1feaaa1a7002b0b4d1ad4" title="Saves the current state of open/closed nodes so it can be restored later. ">TreeView::getOpennessState</a>, <a class="el" href="classTreeViewItem.html#a2543807283072980a45ba62f4f0eed46" title="Restores the openness of this item and all its sub-items from a saved state. ">restoreOpennessState</a> </dd></dl>

</div>
</div>
<a id="a2543807283072980a45ba62f4f0eed46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2543807283072980a45ba62f4f0eed46">&sect;&nbsp;</a></span>restoreOpennessState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TreeViewItem::restoreOpennessState </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classXmlElement.html">XmlElement</a> &amp;&#160;</td>
          <td class="paramname"><em>xml</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Restores the openness of this item and all its sub-items from a saved state. </p>
<p>See <a class="el" href="classTreeView.html#a0e88906665c57b672def512e355af4f8" title="Restores a previously saved arrangement of open/closed nodes. ">TreeView::restoreOpennessState</a> for more details.</p>
<p>You'd normally want to use <a class="el" href="classTreeView.html#a0e88906665c57b672def512e355af4f8" title="Restores a previously saved arrangement of open/closed nodes. ">TreeView::restoreOpennessState()</a> rather than call it for a specific item, but this can be handy if you need to briefly save the state for a section of the tree.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeView.html#a0e88906665c57b672def512e355af4f8" title="Restores a previously saved arrangement of open/closed nodes. ">TreeView::restoreOpennessState</a>, <a class="el" href="classTreeViewItem.html#afe566c07ace7674ed34fce84c1d7af60" title="Saves the current state of open/closed nodes so it can be restored later. ">getOpennessState</a> </dd></dl>

</div>
</div>
<a id="ad16ec5ae6dd02ed690001ac9a664fa44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad16ec5ae6dd02ed690001ac9a664fa44">&sect;&nbsp;</a></span>getIndexInParent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int TreeViewItem::getIndexInParent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the index of this item in its parent's sub-items. </p>

</div>
</div>
<a id="ab5a379de4cea292f0b66d6c9f4f3da42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5a379de4cea292f0b66d6c9f4f3da42">&sect;&nbsp;</a></span>isLastOfSiblings()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TreeViewItem::isLastOfSiblings </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if this item is the last of its parent's sub-itens. </p>

</div>
</div>
<a id="af62dcbe9dba30736350e1a9b3bc95d20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af62dcbe9dba30736350e1a9b3bc95d20">&sect;&nbsp;</a></span>getItemIdentifierString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classString.html">String</a> TreeViewItem::getItemIdentifierString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a string that can be used to uniquely retrieve this item in the tree. </p>
<p>The string that is returned can be passed to <a class="el" href="classTreeView.html#a8bb0fbf94579270cc13cd9fa413022df" title="Searches the tree for an item with the specified identifier. ">TreeView::findItemFromIdentifierString()</a>. The string takes the form of a path, constructed from the <a class="el" href="classTreeViewItem.html#aaabafd453aa403ab00163c856280c388" title="Returns a string to uniquely identify this item. ">getUniqueName()</a> of this item and all its parents, so these must all be correctly implemented for it to work. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classTreeView.html#a8bb0fbf94579270cc13cd9fa413022df" title="Searches the tree for an item with the specified identifier. ">TreeView::findItemFromIdentifierString</a>, <a class="el" href="classTreeViewItem.html#aaabafd453aa403ab00163c856280c388" title="Returns a string to uniquely identify this item. ">getUniqueName</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__TreeView_8h.html">juce_TreeView.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content &copy ROLI Ltd.</small></address><br/>
</body>
</html>