1 | static int searchInTable(final S pat, final JTable table) { |
2 | ret (int) swingAndWait(func { |
3 | L<Map<S, S>> data = getTableData(table); |
4 | |
5 | for (int i = 0; i < l(data); i++) |
6 | if (anyValueContainsIgnoreCase(data.get(i), pat)) { |
7 | selectRow(table, i); |
8 | ret i; |
9 | } |
10 | |
11 | ret -1; |
12 | }); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004325 |
Snippet name: | searchInTable |
Eternal ID of this version: | #1004325/1 |
Text MD5: | bf63c19726189f936515d4f3f4329cdc |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-13 15:41:02 |
Source code size: | 328 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 619 / 604 |
Referenced in: | [show references] |