1 | // params: column index, Comparator, column index, Comparator, ... |
2 | svoid rowSorter_setComparatorForAllColumns(JTable table, final Comparator comparator) {
|
3 | please include function setTableModel. |
4 | if (table == null) ret; |
5 | setTableModel_fixSorter.put(table, voidfunc(JTable table, RowSorter sorter) {
|
6 | if (sorter cast TableRowSorter) {
|
7 | int n = tableColumnCount(table); |
8 | for i to n: |
9 | sorter.setComparator(i, comparator); |
10 | } |
11 | }); |
12 | } |
Began life as a copy of #1019463
download show line numbers debug dex old transpilations
Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019680 |
| Snippet name: | rowSorter_setComparatorForAllColumns |
| Eternal ID of this version: | #1019680/2 |
| Text MD5: | daaca571ed6bad8e5de75fd6f6be0463 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-17 18:41:22 |
| Source code size: | 468 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 581 / 628 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |