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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::Ext::TableView Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="namespaceWt_1_1Ext.html">Ext</a>::<a class="el" href="classWt_1_1Ext_1_1TableView.html">TableView</a>
</div>
</div>
<div class="contents">
<h1>Wt::Ext::TableView Class Reference<br>
<small>
[<a class="el" href="group__ext.html">Ext widgets</a>]</small>
</h1><!-- doxytag: class="Wt::Ext::TableView" --><!-- doxytag: inherits="Wt::Ext::Panel" -->A widget that displays data in a table.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/Ext/TableView></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::Ext::TableView:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1Ext_1_1TableView__inherit__graph.png" border="0" usemap="#Wt_1_1Ext_1_1TableView__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1Ext_1_1TableView__inherit__map">
<area shape="rect" href="classWt_1_1Ext_1_1Panel.html" title="A container with a title and standard GUI elements." alt="" coords="21,453,128,480"><area shape="rect" href="classWt_1_1Ext_1_1Container.html" title="A container class which manages its contents using layout managers." alt="" coords="11,379,139,405"><area shape="rect" href="classWt_1_1Ext_1_1Component.html" title="An abstract base class for widgets that can be visually disabled." alt="" coords="5,304,144,331"><area shape="rect" href="classWt_1_1Ext_1_1Widget.html" title="An abstract base class for all Ext widgets." alt="" coords="19,229,131,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="13,155,136,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="27,80,123,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="27,5,123,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1Ext_1_1TableView-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#f982555ad58c7e846dbe829f10a5e09b">TableView</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new table view. <a href="#f982555ad58c7e846dbe829f10a5e09b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#e749720b6992ecf62a900bbc45a5607d">setModel</a> (<a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *model)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specify the model. <a href="#e749720b6992ecf62a900bbc45a5607d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#a28bbad6fef68f903fed1aa01303c3ce">model</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the model. <a href="#a28bbad6fef68f903fed1aa01303c3ce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#300cede33cdf30af4f7543de794e72f2">resizeColumnsToContents</a> (bool onResize=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Let the table view resize columns to fit their contents. <a href="#300cede33cdf30af4f7543de794e72f2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#88f1de406a741b47533311d249a168dc">setAutoExpandColumn</a> (int column, int minWidth=50, int maxWidth=1000)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the column which will auto-expand to take the remaining space. <a href="#88f1de406a741b47533311d249a168dc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4616220e3e1153b6825e1a7d5cd8b374"></a><!-- doxytag: member="Wt::Ext::TableView::autoExpandColumn" ref="4616220e3e1153b6825e1a7d5cd8b374" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#4616220e3e1153b6825e1a7d5cd8b374">autoExpandColumn</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the column index of the column that auto-expands. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#11f1507b4db23da74cf54741a4b40b00">setDataLocation</a> (<a class="el" href="group__ext.html#g5bc908c6e6aa90646cca1276d68cb2b2">DataLocation</a> dataLocation)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Configure the location of the data. <a href="#11f1507b4db23da74cf54741a4b40b00"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#d8527a57c1004097937befe83633d998">setColumnsMovable</a> (bool movable)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Allow the user to move columns using drag and drop. <a href="#d8527a57c1004097937befe83633d998"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#ab8ed89a0c658fffad2f3e4cb575450d">columnsMovable</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if columns are movable. <a href="#ab8ed89a0c658fffad2f3e4cb575450d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#eca778394c0c4165cb890624e7f26f68">setAlternatingRowColors</a> (bool enable)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Render rows with alternating colors. <a href="#eca778394c0c4165cb890624e7f26f68"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#36e7290ea7fb21f7785ce4825e4c6222">alternatingRowColors</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if rows are rendered with alternating colors. <a href="#36e7290ea7fb21f7785ce4825e4c6222"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#82aa7b9fd7931c064a85624167777dde">setHighlightMouseOver</a> (bool highlight)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Configure if the row under the mouse will be highlighted. <a href="#82aa7b9fd7931c064a85624167777dde"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bbf14ebf04eba309570653f22a6ff22e"></a><!-- doxytag: member="Wt::Ext::TableView::highlightMouseOver" ref="bbf14ebf04eba309570653f22a6ff22e" args="() const " -->
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#bbf14ebf04eba309570653f22a6ff22e">highlightMouseOver</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if the row under the mouse will be highlighted. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#e6f70012b68f37b8acaa16042f805178">setColumnHidden</a> (int column, bool hide)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Change the visibility of a column. <a href="#e6f70012b68f37b8acaa16042f805178"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#ee2e7e8094023cd8c001b01cf520d7d2">isColumnHidden</a> (int column) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if a column is hidden. <a href="#ee2e7e8094023cd8c001b01cf520d7d2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#1c9f10b2affca162eca145d624d0f49e">hideColumn</a> (int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Hide a column. <a href="#1c9f10b2affca162eca145d624d0f49e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#6fba01c5bc5bf18b2d28a5ea394292b7">showColumn</a> (int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Show a column. <a href="#6fba01c5bc5bf18b2d28a5ea394292b7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#0618d71520e5c0c5da46beb30100e634">setColumnWidth</a> (int column, int pixels)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the column width (in pixels) for a column. <a href="#0618d71520e5c0c5da46beb30100e634"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#e3892620e188e2b95cec6af949fa3a07">columnWidth</a> (int column) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the column width. <a href="#e3892620e188e2b95cec6af949fa3a07"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#c4dfbc43791653d6aa4fa1e7517d7523">setColumnAlignment</a> (int column, <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> alignment)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the horizontal content alignment of a column. <a href="#c4dfbc43791653d6aa4fa1e7517d7523"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#44ad9387f03c949018642effbc444146">columnAlignment</a> (int column) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the horizontal content alignment of a column. <a href="#44ad9387f03c949018642effbc444146"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#bb2e0f5c6576335c86141183a10029ec">setColumnSortable</a> (int column, bool sortable)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Allow a column to be sorted by the user. <a href="#bb2e0f5c6576335c86141183a10029ec"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#20d295f97b290e9afb4568e026e4c965">isColumnSortable</a> (int column) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if a column is sortable. <a href="#20d295f97b290e9afb4568e026e4c965"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#cc3f7c2dbae0a063eed5fad7892c77a2">enableColumnHiding</a> (int column, bool enable)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Allow a column to be hidden through its context menu. <a href="#cc3f7c2dbae0a063eed5fad7892c77a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#5b6670edddd105298c67d37167d330fd">isColumnHidingEnabled</a> (int column) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return if a column may be hidden through its context menu. <a href="#5b6670edddd105298c67d37167d330fd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#8fce08c9e2b06463377342e03f2970d2">setEditor</a> (int column, <a class="el" href="classWt_1_1Ext_1_1FormField.html">FormField</a> *editor)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Configure an editor for the given column. <a href="#8fce08c9e2b06463377342e03f2970d2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#cd1c2e98bd5420e398053ab6b6d4e7f0">setRenderer</a> (int column, const std::string &rendererJS)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Configure a custom renderer for the given column. <a href="#cd1c2e98bd5420e398053ab6b6d4e7f0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#9b8be64acea3d9df598fd418d0b0e55a">setPageSize</a> (int pageSize)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Configure a page size to browse the data page by page. <a href="#9b8be64acea3d9df598fd418d0b0e55a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#71bcd2818831c21a68202fe4e53552ab">pageSize</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the page size. <a href="#71bcd2818831c21a68202fe4e53552ab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Ext_1_1ToolBar.html">ToolBar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#0e09b1cd5b493f577f5a89c4b4916c44">createPagingToolBar</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a paging tool bar. <a href="#0e09b1cd5b493f577f5a89c4b4916c44"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#925ffae0caed4dff0e0bb9da0440e20a">refresh</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Refresh the widget. <a href="#925ffae0caed4dff0e0bb9da0440e20a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#51279c7d091a0060bde4f26845202a33">setCurrentCell</a> (int row, int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Give a cell focus. <a href="#51279c7d091a0060bde4f26845202a33"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#cedafc837958034d15616eb14992b374">currentRow</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the index of the row currently selected. <a href="#cedafc837958034d15616eb14992b374"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#e19b1700dbf51bf26f06a14865b2486a">currentColumn</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the index of the column currently selected. <a href="#e19b1700dbf51bf26f06a14865b2486a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::vector< int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#0fb09470c5ee23ee95e07fdfda027590">selectedRows</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The list of rows that are currently selected. <a href="#0fb09470c5ee23ee95e07fdfda027590"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#6988a1b768e8f0ec59b1a9ea06c6afd0">clearSelection</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Clear the current selection. <a href="#6988a1b768e8f0ec59b1a9ea06c6afd0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceWt.html#74b3f7eb1689a3cbf0ea514ffd20bccc">SelectionMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#630019b3fcfdfdb109cb9c89168b554c">selectionMode</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the current selection mode. <a href="#630019b3fcfdfdb109cb9c89168b554c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#fd0f8697b8f4e3e0a63d6a3bb236e4da">setSelectionMode</a> (<a class="el" href="namespaceWt.html#74b3f7eb1689a3cbf0ea514ffd20bccc">SelectionMode</a> mode)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the selection mode. <a href="#fd0f8697b8f4e3e0a63d6a3bb236e4da"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#2cccbab98d2639aea94a041bd144d3aa">setSelectionBehavior</a> (<a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13">SelectionBehavior</a> behavior)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the selection behaviour. <a href="#2cccbab98d2639aea94a041bd144d3aa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13">SelectionBehavior</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062">selectionBehavior</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the current selection behaviour. <a href="#4eece626861dd19a6b4ec903a46f5062"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>< int, int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#bc2bed9a030c38f6545c904dd14872eb">cellClicked</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signal emitted when a cell is clicked. <a href="#bc2bed9a030c38f6545c904dd14872eb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>< int, int, int, int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#95fc2f78d5f4d8f2befc3af41e777c3b">currentCellChanged</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signal emitted when a new cell received focus. <a href="#95fc2f78d5f4d8f2befc3af41e777c3b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#e35765d2483d419d5cb2df06247d44de">itemSelectionChanged</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signal emitted when the selection changes. <a href="#e35765d2483d419d5cb2df06247d44de"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1TableView.html#4be5b4bb37a248e695a0b6398abb7e53">dateRenderer</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &format)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a date renderer for the given format. <a href="#4be5b4bb37a248e695a0b6398abb7e53"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A widget that displays data in a table.
<p>
This class is an MVC view widget, which works in conjunction with a <a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt's view classes.">WAbstractItemModel</a> for the data. The model may be set (and changed) using <a class="el" href="classWt_1_1Ext_1_1TableView.html#e749720b6992ecf62a900bbc45a5607d" title="Specify the model.">setModel()</a>.<p>
The widget may be configured to allow the user to hide or resize columns, sort on column data, or reorder columns using drag&drop.<p>
By default, the table is not editable. Use <a class="el" href="classWt_1_1Ext_1_1TableView.html#8fce08c9e2b06463377342e03f2970d2" title="Configure an editor for the given column.">setEditor()</a> to specify a form field that may be used for inline editing for a particular column. Changes are then reflected in the <a class="el" href="classWt_1_1Ext_1_1TableView.html#a28bbad6fef68f903fed1aa01303c3ce" title="Return the model.">model()</a>.<p>
The table supports single and multiple selection modes, that work on a row-level, or cell-level. The latter option is enforced when the table is editable.<p>
By default, the data of the model is stored client-side, but this may be changed using <a class="el" href="classWt_1_1Ext_1_1TableView.html#11f1507b4db23da74cf54741a4b40b00" title="Configure the location of the data.">setDataLocation()</a> to be server-side. The latter option allows, in conjunction with a paging tool bar (see <a class="el" href="classWt_1_1Ext_1_1TableView.html#0e09b1cd5b493f577f5a89c4b4916c44" title="Create a paging tool bar.">createPagingToolBar()</a>) to support viewing (and editing) of large data sets.<p>
Although <a class="el" href="classWt_1_1Ext_1_1TableView.html" title="A widget that displays data in a table.">TableView</a> inherits from <a class="el" href="classWt_1_1Ext_1_1Container.html" title="A container class which manages its contents using layout managers.">Container</a> (through <a class="el" href="classWt_1_1Ext_1_1Panel.html" title="A container with a title and standard GUI elements.">Panel</a>), specifying a layout for adding or removing widgets is not supported. The <a class="el" href="classWt_1_1Ext_1_1Panel.html" title="A container with a title and standard GUI elements.">Panel</a> methods to specify tool bars, titles, and buttons are however supported.<p>
<div align="center">
<img src="ExtTableView-1.png" alt="ExtTableView-1.png">
<p><strong>Example of a TableView</strong></p></div>
<div align="center">
<img src="ExtTableView-2.png" alt="ExtTableView-2.png">
<p><strong>Example of a editing in a TableView using a ComboBox</strong></p></div>
<h3>CSS</h3>
<p>
A <a class="el" href="classWt_1_1Ext_1_1TableView.html" title="A widget that displays data in a table.">TableView</a> has the <code>table.x-grid3-row-table</code> style classes. <hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="f982555ad58c7e846dbe829f10a5e09b"></a><!-- doxytag: member="Wt::Ext::TableView::TableView" ref="f982555ad58c7e846dbe829f10a5e09b" args="(WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::Ext::TableView::TableView </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> * </td>
<td class="paramname"> <em>parent</em> = <code>0</code> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create a new table view.
<p>
You should specify a model using <a class="el" href="classWt_1_1Ext_1_1TableView.html#e749720b6992ecf62a900bbc45a5607d" title="Specify the model.">setModel(WAbstractItemModel *)</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e749720b6992ecf62a900bbc45a5607d"></a><!-- doxytag: member="Wt::Ext::TableView::setModel" ref="e749720b6992ecf62a900bbc45a5607d" args="(WAbstractItemModel *model)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setModel </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> * </td>
<td class="paramname"> <em>model</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Specify the model.
<p>
You can change the model at any time, with the contraint that you should keep the same column configuration.<p>
You may also reset the same model. This will result in retransmission of the model from scratch. In some cases, this could result in a higher preformance when you have removed many rows or modified a lot of data.
</div>
</div><p>
<a class="anchor" name="a28bbad6fef68f903fed1aa01303c3ce"></a><!-- doxytag: member="Wt::Ext::TableView::model" ref="a28bbad6fef68f903fed1aa01303c3ce" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>* Wt::Ext::TableView::model </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the model.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#e749720b6992ecf62a900bbc45a5607d" title="Specify the model.">setModel(WAbstractItemModel *)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="300cede33cdf30af4f7543de794e72f2"></a><!-- doxytag: member="Wt::Ext::TableView::resizeColumnsToContents" ref="300cede33cdf30af4f7543de794e72f2" args="(bool onResize=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::resizeColumnsToContents </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>onResize</em> = <code>false</code> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Let the table view resize columns to fit their contents.
<p>
By default, columns are sized using the column sizes that are provided. Using this method, this is changed to let columns expand to fit the entire table. By setting <em>onResize</em>, this is done also whenever the entire table or one of the columns is resized.
</div>
</div><p>
<a class="anchor" name="88f1de406a741b47533311d249a168dc"></a><!-- doxytag: member="Wt::Ext::TableView::setAutoExpandColumn" ref="88f1de406a741b47533311d249a168dc" args="(int column, int minWidth=50, int maxWidth=1000)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setAutoExpandColumn </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>minWidth</em> = <code>50</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>maxWidth</em> = <code>1000</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set the column which will auto-expand to take the remaining space.
<p>
By default the last column will do that.
</div>
</div><p>
<a class="anchor" name="11f1507b4db23da74cf54741a4b40b00"></a><!-- doxytag: member="Wt::Ext::TableView::setDataLocation" ref="11f1507b4db23da74cf54741a4b40b00" args="(DataLocation dataLocation)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setDataLocation </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ext.html#g5bc908c6e6aa90646cca1276d68cb2b2">DataLocation</a> </td>
<td class="paramname"> <em>dataLocation</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Configure the location of the data.
<p>
By default, data is stored at the client, and therefore entirely transmitted when rendering the table for the first time. Alternatively, the data may be kept at the server. Unless a paging tool bar is configured however, this will still cause the entire table to be anyway, after the table is rendered. When a paging tool bar is configured, only a single page of data is displayed, and transmitted, giving the best performance for big data sets.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#0e09b1cd5b493f577f5a89c4b4916c44" title="Create a paging tool bar.">createPagingToolBar()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="d8527a57c1004097937befe83633d998"></a><!-- doxytag: member="Wt::Ext::TableView::setColumnsMovable" ref="d8527a57c1004097937befe83633d998" args="(bool movable)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setColumnsMovable </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>movable</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Allow the user to move columns using drag and drop.
<p>
Setting movable to true, enables the user to move columns around by drag and drop.<p>
<em>Note: this currently breaks the CellSelection mode to record the view column number, but not the data column number.</em><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#ab8ed89a0c658fffad2f3e4cb575450d" title="Return if columns are movable.">columnsMovable()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="ab8ed89a0c658fffad2f3e4cb575450d"></a><!-- doxytag: member="Wt::Ext::TableView::columnsMovable" ref="ab8ed89a0c658fffad2f3e4cb575450d" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::Ext::TableView::columnsMovable </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return if columns are movable.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#d8527a57c1004097937befe83633d998" title="Allow the user to move columns using drag and drop.">setColumnsMovable(bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="eca778394c0c4165cb890624e7f26f68"></a><!-- doxytag: member="Wt::Ext::TableView::setAlternatingRowColors" ref="eca778394c0c4165cb890624e7f26f68" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setAlternatingRowColors </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>enable</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Render rows with alternating colors.
<p>
By defaults, all rows are rendered using the same color.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#36e7290ea7fb21f7785ce4825e4c6222" title="Return if rows are rendered with alternating colors.">alternatingRowColors()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="36e7290ea7fb21f7785ce4825e4c6222"></a><!-- doxytag: member="Wt::Ext::TableView::alternatingRowColors" ref="36e7290ea7fb21f7785ce4825e4c6222" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::Ext::TableView::alternatingRowColors </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return if rows are rendered with alternating colors.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#eca778394c0c4165cb890624e7f26f68" title="Render rows with alternating colors.">setAlternatingRowColors(bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="82aa7b9fd7931c064a85624167777dde"></a><!-- doxytag: member="Wt::Ext::TableView::setHighlightMouseOver" ref="82aa7b9fd7931c064a85624167777dde" args="(bool highlight)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setHighlightMouseOver </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>highlight</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Configure if the row under the mouse will be highlighted.
<p>
By default, the row under the mouse is not highlighted.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#bbf14ebf04eba309570653f22a6ff22e" title="Return if the row under the mouse will be highlighted.">highlightMouseOver()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="e6f70012b68f37b8acaa16042f805178"></a><!-- doxytag: member="Wt::Ext::TableView::setColumnHidden" ref="e6f70012b68f37b8acaa16042f805178" args="(int column, bool hide)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setColumnHidden </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>hide</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Change the visibility of a column.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>isColumnHidden(int), <a class="el" href="classWt_1_1Ext_1_1TableView.html#cc3f7c2dbae0a063eed5fad7892c77a2" title="Allow a column to be hidden through its context menu.">enableColumnHiding(int, bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="ee2e7e8094023cd8c001b01cf520d7d2"></a><!-- doxytag: member="Wt::Ext::TableView::isColumnHidden" ref="ee2e7e8094023cd8c001b01cf520d7d2" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::Ext::TableView::isColumnHidden </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return if a column is hidden.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#e6f70012b68f37b8acaa16042f805178" title="Change the visibility of a column.">setColumnHidden(int, bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="1c9f10b2affca162eca145d624d0f49e"></a><!-- doxytag: member="Wt::Ext::TableView::hideColumn" ref="1c9f10b2affca162eca145d624d0f49e" args="(int column)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::hideColumn </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Hide a column.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#6fba01c5bc5bf18b2d28a5ea394292b7" title="Show a column.">showColumn(int)</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#e6f70012b68f37b8acaa16042f805178" title="Change the visibility of a column.">setColumnHidden(int, bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="6fba01c5bc5bf18b2d28a5ea394292b7"></a><!-- doxytag: member="Wt::Ext::TableView::showColumn" ref="6fba01c5bc5bf18b2d28a5ea394292b7" args="(int column)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::showColumn </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Show a column.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#1c9f10b2affca162eca145d624d0f49e" title="Hide a column.">hideColumn(int)</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#e6f70012b68f37b8acaa16042f805178" title="Change the visibility of a column.">setColumnHidden(int, bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="0618d71520e5c0c5da46beb30100e634"></a><!-- doxytag: member="Wt::Ext::TableView::setColumnWidth" ref="0618d71520e5c0c5da46beb30100e634" args="(int column, int pixels)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setColumnWidth </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pixels</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set the column width (in pixels) for a column.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>columnWidth(int) </dd></dl>
</div>
</div><p>
<a class="anchor" name="e3892620e188e2b95cec6af949fa3a07"></a><!-- doxytag: member="Wt::Ext::TableView::columnWidth" ref="e3892620e188e2b95cec6af949fa3a07" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::Ext::TableView::columnWidth </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the column width.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#0618d71520e5c0c5da46beb30100e634" title="Set the column width (in pixels) for a column.">setColumnWidth(int, int)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c4dfbc43791653d6aa4fa1e7517d7523"></a><!-- doxytag: member="Wt::Ext::TableView::setColumnAlignment" ref="c4dfbc43791653d6aa4fa1e7517d7523" args="(int column, AlignmentFlag alignment)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setColumnAlignment </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> </td>
<td class="paramname"> <em>alignment</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set the horizontal content alignment of a column.
<p>
The default value is <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143fd033ef69b45d0b75633be34168c9b606">AlignLeft</a>. The alignment parameter is a horizontal alignment flag.
</div>
</div><p>
<a class="anchor" name="44ad9387f03c949018642effbc444146"></a><!-- doxytag: member="Wt::Ext::TableView::columnAlignment" ref="44ad9387f03c949018642effbc444146" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> Wt::Ext::TableView::columnAlignment </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the horizontal content alignment of a column.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#c4dfbc43791653d6aa4fa1e7517d7523" title="Set the horizontal content alignment of a column.">setColumnAlignment(int, AlignmentFlag)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="bb2e0f5c6576335c86141183a10029ec"></a><!-- doxytag: member="Wt::Ext::TableView::setColumnSortable" ref="bb2e0f5c6576335c86141183a10029ec" args="(int column, bool sortable)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setColumnSortable </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>sortable</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Allow a column to be sorted by the user.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>isColumnSortable(int) </dd></dl>
</div>
</div><p>
<a class="anchor" name="20d295f97b290e9afb4568e026e4c965"></a><!-- doxytag: member="Wt::Ext::TableView::isColumnSortable" ref="20d295f97b290e9afb4568e026e4c965" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::Ext::TableView::isColumnSortable </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return if a column is sortable.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#bb2e0f5c6576335c86141183a10029ec" title="Allow a column to be sorted by the user.">setColumnSortable(int, bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="cc3f7c2dbae0a063eed5fad7892c77a2"></a><!-- doxytag: member="Wt::Ext::TableView::enableColumnHiding" ref="cc3f7c2dbae0a063eed5fad7892c77a2" args="(int column, bool enable)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::enableColumnHiding </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>enable</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Allow a column to be hidden through its context menu.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>isColumnHidingEnabled(int) </dd></dl>
</div>
</div><p>
<a class="anchor" name="5b6670edddd105298c67d37167d330fd"></a><!-- doxytag: member="Wt::Ext::TableView::isColumnHidingEnabled" ref="5b6670edddd105298c67d37167d330fd" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::Ext::TableView::isColumnHidingEnabled </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return if a column may be hidden through its context menu.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#cc3f7c2dbae0a063eed5fad7892c77a2" title="Allow a column to be hidden through its context menu.">enableColumnHiding(int, bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="8fce08c9e2b06463377342e03f2970d2"></a><!-- doxytag: member="Wt::Ext::TableView::setEditor" ref="8fce08c9e2b06463377342e03f2970d2" args="(int column, FormField *editor)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setEditor </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1Ext_1_1FormField.html">FormField</a> * </td>
<td class="paramname"> <em>editor</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Configure an editor for the given column.
<p>
Sets an inline editor that will be used to edit values in this column. The edited value will be reflected in the data model.<p>
When configuring an editor, the selectionBehaviour() is set to <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13fcf79c96af1f3bd64b7b143fd1ec1126">SelectItems</a> mode.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1LineEdit.html" title="A line edit.">LineEdit</a>, <a class="el" href="classWt_1_1Ext_1_1NumberField.html" title="A form field for editing a number.">NumberField</a>, <a class="el" href="classWt_1_1Ext_1_1DateField.html" title="A form field for conveniently editing a date using a calendar popup.">DateField</a>, <a class="el" href="classWt_1_1Ext_1_1ComboBox.html" title="A widget that provides a drop-down combo-box control.">ComboBox</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="cd1c2e98bd5420e398053ab6b6d4e7f0"></a><!-- doxytag: member="Wt::Ext::TableView::setRenderer" ref="cd1c2e98bd5420e398053ab6b6d4e7f0" args="(int column, const std::string &rendererJS)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setRenderer </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>rendererJS</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Configure a custom renderer for the given column.
<p>
Sets a JavaScript function to render values in the given column. The JavaScript function takes one argument (the value), which has a type that corresponds to the C++ type: <table border="1" cellspacing="3" cellpadding="3">
<tr>
<td><b>C++ type</b></td><td><b>JavaScript type</b> </td></tr>
<tr>
<td><a class="el" href="classWt_1_1WString.html" title="A unicode string class, with support for localization.">WString</a></td><td>string </td></tr>
<tr>
<td><a class="el" href="classWt_1_1WDate.html" title="A gregorian calendar date.">WDate</a></td><td>Ext.Date </td></tr>
<tr>
<td><em>number</em> type</td><td>number </td></tr>
</table>
<p>
An example of rendererJS for numerical data, which renders positive values in green and negative values in red could be: <div class="fragment"><pre class="fragment"> function change(val) {
<span class="keywordflow">if</span> (val > 0){
<span class="keywordflow">return</span> <span class="stringliteral">'<span style="color:green;">'</span> + val + <span class="stringliteral">'</span>'</span>;
} <span class="keywordflow">else</span> <span class="keywordflow">if</span>(val < 0) {
<span class="keywordflow">return</span> <span class="stringliteral">'<span style="color:red;">'</span> + val + <span class="stringliteral">'</span>'</span>;
}
<span class="keywordflow">return</span> val;
}
</pre></div><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#4be5b4bb37a248e695a0b6398abb7e53" title="Create a date renderer for the given format.">dateRenderer()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9b8be64acea3d9df598fd418d0b0e55a"></a><!-- doxytag: member="Wt::Ext::TableView::setPageSize" ref="9b8be64acea3d9df598fd418d0b0e55a" args="(int pageSize)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setPageSize </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pageSize</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Configure a page size to browse the data page by page.
<p>
By setting a <em>pageSize</em> that is different from -1, the table view will display only single pages of the whole data set. You should probably add a paging tool bar to allow the user to scroll through the pages.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#71bcd2818831c21a68202fe4e53552ab" title="Return the page size.">pageSize()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#0e09b1cd5b493f577f5a89c4b4916c44" title="Create a paging tool bar.">createPagingToolBar()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="71bcd2818831c21a68202fe4e53552ab"></a><!-- doxytag: member="Wt::Ext::TableView::pageSize" ref="71bcd2818831c21a68202fe4e53552ab" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::Ext::TableView::pageSize </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the page size.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#9b8be64acea3d9df598fd418d0b0e55a" title="Configure a page size to browse the data page by page.">setPageSize(int)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="0e09b1cd5b493f577f5a89c4b4916c44"></a><!-- doxytag: member="Wt::Ext::TableView::createPagingToolBar" ref="0e09b1cd5b493f577f5a89c4b4916c44" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1Ext_1_1ToolBar.html">ToolBar</a> * Wt::Ext::TableView::createPagingToolBar </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create a paging tool bar.
<p>
Create a toolbar that provides paging controls for this table. You should configure the page size using <a class="el" href="classWt_1_1Ext_1_1TableView.html#9b8be64acea3d9df598fd418d0b0e55a" title="Configure a page size to browse the data page by page.">setPageSize(int)</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#9b8be64acea3d9df598fd418d0b0e55a" title="Configure a page size to browse the data page by page.">setPageSize(int)</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#11f1507b4db23da74cf54741a4b40b00" title="Configure the location of the data.">setDataLocation(DataLocation)</a> <p>
<a class="el" href="classWt_1_1Ext_1_1Panel.html#9436b9da7ee336136027fe4914a5a381" title="Set a tool bar at the bottom of the panel.">setBottomToolBar(ToolBar *)</a>, <a class="el" href="classWt_1_1Ext_1_1Panel.html#16b203f3b26cc5ffb82e036e6419e60f" title="Set a tool bar at the top of the panel.">setTopToolBar(ToolBar *)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="925ffae0caed4dff0e0bb9da0440e20a"></a><!-- doxytag: member="Wt::Ext::TableView::refresh" ref="925ffae0caed4dff0e0bb9da0440e20a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::refresh </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Refresh the widget.
<p>
The refresh method is invoked when the locale is changed using <a class="el" href="classWt_1_1WApplication.html#5c9cc1350019d69f154a2b44cdaf2596" title="Changes the locale.">WApplication::setLocale()</a> or when the user hit the refresh button.<p>
The widget must actualize its contents in response.
<p>Reimplemented from <a class="el" href="classWt_1_1Ext_1_1Panel.html#960a266d0c5427a2786cc45a4b05ffa1">Wt::Ext::Panel</a>.</p>
</div>
</div><p>
<a class="anchor" name="4be5b4bb37a248e695a0b6398abb7e53"></a><!-- doxytag: member="Wt::Ext::TableView::dateRenderer" ref="4be5b4bb37a248e695a0b6398abb7e53" args="(const WString &format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string Wt::Ext::TableView::dateRenderer </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td>
<td class="paramname"> <em>format</em> </td>
<td> ) </td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create a date renderer for the given format.
<p>
The result is a JavaScript function that renders <a class="el" href="classWt_1_1WDate.html" title="A gregorian calendar date.">WDate</a> (or more precisely, Ext.Date) values according to the given format, for use in <a class="el" href="classWt_1_1Ext_1_1TableView.html#cd1c2e98bd5420e398053ab6b6d4e7f0" title="Configure a custom renderer for the given column.">setRenderer()</a><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#cd1c2e98bd5420e398053ab6b6d4e7f0" title="Configure a custom renderer for the given column.">setRenderer()</a> <p>
<a class="el" href="classWt_1_1WDate.html#2be436babc9c5cb836901f4b2805f7ff">WDate::toString(const WString& format) </a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="51279c7d091a0060bde4f26845202a33"></a><!-- doxytag: member="Wt::Ext::TableView::setCurrentCell" ref="51279c7d091a0060bde4f26845202a33" args="(int row, int column)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setCurrentCell </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>row</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Give a cell focus.
<p>
When <a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> is <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13f392e7f86ea1d0807e54de5739011239">SelectRows</a>, only the <em>row</em> argument is used, and the effect is to select a particular row.<p>
Even when <a class="el" href="classWt_1_1Ext_1_1TableView.html#630019b3fcfdfdb109cb9c89168b554c" title="Return the current selection mode.">selectionMode()</a> is <a class="el" href="namespaceWt.html#74b3f7eb1689a3cbf0ea514ffd20bccc7784d55577e92022399052c3d4d69954">ExtendedSelection</a>, this method will first clear selection, and the result is that the given <em>row</em>,<em>column</em> will be the only selected cell.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#cedafc837958034d15616eb14992b374" title="Return the index of the row currently selected.">currentRow()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#e19b1700dbf51bf26f06a14865b2486a" title="Return the index of the column currently selected.">currentColumn()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#95fc2f78d5f4d8f2befc3af41e777c3b" title="Signal emitted when a new cell received focus.">currentCellChanged()</a> signal <p>
<a class="el" href="classWt_1_1Ext_1_1TableView.html#fd0f8697b8f4e3e0a63d6a3bb236e4da" title="Set the selection mode.">setSelectionMode(SelectionMode)</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#2cccbab98d2639aea94a041bd144d3aa" title="Set the selection behaviour.">setSelectionBehavior(SelectionBehavior)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="cedafc837958034d15616eb14992b374"></a><!-- doxytag: member="Wt::Ext::TableView::currentRow" ref="cedafc837958034d15616eb14992b374" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::Ext::TableView::currentRow </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the index of the row currently selected.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#e19b1700dbf51bf26f06a14865b2486a" title="Return the index of the column currently selected.">currentColumn()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#51279c7d091a0060bde4f26845202a33" title="Give a cell focus.">setCurrentCell(int, int)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="e19b1700dbf51bf26f06a14865b2486a"></a><!-- doxytag: member="Wt::Ext::TableView::currentColumn" ref="e19b1700dbf51bf26f06a14865b2486a" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::Ext::TableView::currentColumn </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the index of the column currently selected.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#cedafc837958034d15616eb14992b374" title="Return the index of the row currently selected.">currentRow()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#51279c7d091a0060bde4f26845202a33" title="Give a cell focus.">setCurrentCell(int, int)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="0fb09470c5ee23ee95e07fdfda027590"></a><!-- doxytag: member="Wt::Ext::TableView::selectedRows" ref="0fb09470c5ee23ee95e07fdfda027590" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::vector<int>& Wt::Ext::TableView::selectedRows </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The list of rows that are currently selected.
<p>
This is the way to retrieve the list of currently selected rows when <a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> is <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13f392e7f86ea1d0807e54de5739011239">SelectRows</a>. This list is always empty when <a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> is <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13fcf79c96af1f3bd64b7b143fd1ec1126">SelectItems</a> and you should use <a class="el" href="classWt_1_1Ext_1_1TableView.html#cedafc837958034d15616eb14992b374" title="Return the index of the row currently selected.">currentRow()</a> and <a class="el" href="classWt_1_1Ext_1_1TableView.html#e19b1700dbf51bf26f06a14865b2486a" title="Return the index of the column currently selected.">currentColumn()</a> instead.
</div>
</div><p>
<a class="anchor" name="6988a1b768e8f0ec59b1a9ea06c6afd0"></a><!-- doxytag: member="Wt::Ext::TableView::clearSelection" ref="6988a1b768e8f0ec59b1a9ea06c6afd0" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::clearSelection </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Clear the current selection.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#51279c7d091a0060bde4f26845202a33" title="Give a cell focus.">setCurrentCell(int, int)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="630019b3fcfdfdb109cb9c89168b554c"></a><!-- doxytag: member="Wt::Ext::TableView::selectionMode" ref="630019b3fcfdfdb109cb9c89168b554c" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceWt.html#74b3f7eb1689a3cbf0ea514ffd20bccc">SelectionMode</a> Wt::Ext::TableView::selectionMode </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the current selection mode.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#fd0f8697b8f4e3e0a63d6a3bb236e4da" title="Set the selection mode.">setSelectionMode(SelectionMode)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="fd0f8697b8f4e3e0a63d6a3bb236e4da"></a><!-- doxytag: member="Wt::Ext::TableView::setSelectionMode" ref="fd0f8697b8f4e3e0a63d6a3bb236e4da" args="(SelectionMode mode)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setSelectionMode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceWt.html#74b3f7eb1689a3cbf0ea514ffd20bccc">SelectionMode</a> </td>
<td class="paramname"> <em>mode</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set the selection mode.
<p>
The selection mode determines if no, only one, or multiple items may be selected.<p>
<em>When <a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> is <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13fcf79c96af1f3bd64b7b143fd1ec1126">SelectItems</a>, <a class="el" href="namespaceWt.html#74b3f7eb1689a3cbf0ea514ffd20bccc7784d55577e92022399052c3d4d69954">ExtendedSelection</a> is not supported.</em>
</div>
</div><p>
<a class="anchor" name="2cccbab98d2639aea94a041bd144d3aa"></a><!-- doxytag: member="Wt::Ext::TableView::setSelectionBehavior" ref="2cccbab98d2639aea94a041bd144d3aa" args="(SelectionBehavior behavior)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Ext::TableView::setSelectionBehavior </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13">SelectionBehavior</a> </td>
<td class="paramname"> <em>behavior</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set the selection behaviour.
<p>
The selection behavior defines the unit of selection. The selection behavior also determines the set of methods that must be used to inspect the current selection.<p>
You may either:<ul>
<li>use <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13f392e7f86ea1d0807e54de5739011239">SelectRows</a> to only select whole rows, and use the method <a class="el" href="classWt_1_1Ext_1_1TableView.html#0fb09470c5ee23ee95e07fdfda027590" title="The list of rows that are currently selected.">selectedRows()</a> to inspect the current selection.</li><li>or use <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13fcf79c96af1f3bd64b7b143fd1ec1126">SelectItems</a> to select (a single) individual item, and use the methods <a class="el" href="classWt_1_1Ext_1_1TableView.html#e19b1700dbf51bf26f06a14865b2486a" title="Return the index of the column currently selected.">currentColumn()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#cedafc837958034d15616eb14992b374" title="Return the index of the row currently selected.">currentRow()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#51279c7d091a0060bde4f26845202a33" title="Give a cell focus.">setCurrentCell()</a> to inspect and modify the current selection. </li></ul>
</div>
</div><p>
<a class="anchor" name="4eece626861dd19a6b4ec903a46f5062"></a><!-- doxytag: member="Wt::Ext::TableView::selectionBehavior" ref="4eece626861dd19a6b4ec903a46f5062" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13">SelectionBehavior</a> Wt::Ext::TableView::selectionBehavior </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return the current selection behaviour.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="bc2bed9a030c38f6545c904dd14872eb"></a><!-- doxytag: member="Wt::Ext::TableView::cellClicked" ref="bc2bed9a030c38f6545c904dd14872eb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a><int, int>& Wt::Ext::TableView::cellClicked </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Signal emitted when a cell is clicked.
<p>
The signal arguments are row and column of the cell that is clicked.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#95fc2f78d5f4d8f2befc3af41e777c3b" title="Signal emitted when a new cell received focus.">currentCellChanged()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="95fc2f78d5f4d8f2befc3af41e777c3b"></a><!-- doxytag: member="Wt::Ext::TableView::currentCellChanged" ref="95fc2f78d5f4d8f2befc3af41e777c3b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a><int, int, int, int>& Wt::Ext::TableView::currentCellChanged </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Signal emitted when a new cell received focus.
<p>
This signal is only emitted when <a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> is <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13fcf79c96af1f3bd64b7b143fd1ec1126">SelectItems</a>. The four arguments are <em>row</em>, <em>column</em>, <em>prevrow</em>, <em>prevcolumn</em> which hold respectively the location of the new focussed cell, and the previously focussed cell.<p>
Values of -1 indicate 'no selection'.
</div>
</div><p>
<a class="anchor" name="e35765d2483d419d5cb2df06247d44de"></a><!-- doxytag: member="Wt::Ext::TableView::itemSelectionChanged" ref="e35765d2483d419d5cb2df06247d44de" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>& Wt::Ext::TableView::itemSelectionChanged </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Signal emitted when the selection changes.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1TableView.html#cedafc837958034d15616eb14992b374" title="Return the index of the row currently selected.">currentRow()</a>, <a class="el" href="classWt_1_1Ext_1_1TableView.html#e19b1700dbf51bf26f06a14865b2486a" title="Return the index of the column currently selected.">currentColumn()</a> when <a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> is <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13fcf79c96af1f3bd64b7b143fd1ec1126">SelectItems</a> <p>
<a class="el" href="classWt_1_1Ext_1_1TableView.html#0fb09470c5ee23ee95e07fdfda027590" title="The list of rows that are currently selected.">selectedRows()</a> when <a class="el" href="classWt_1_1Ext_1_1TableView.html#4eece626861dd19a6b4ec903a46f5062" title="Return the current selection behaviour.">selectionBehavior()</a> is <a class="el" href="namespaceWt.html#04aecd34ae0810219e82208a9890de13f392e7f86ea1d0807e54de5739011239">SelectRows</a>. </dd></dl>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|