1 | static SS autoGetDataFromForm(Component form) { |
2 | SS data = new LinkedHashMap; |
3 | for (Component c : allChildren(form)) { |
4 | S id = componentID(c); |
5 | if (id == null) continue; |
6 | S value = null; |
7 | for (Component c2 : allChildren(c)) |
8 | if (c2 instanceof JTextComponent) |
9 | value = getText((JTextComponent) c2); |
10 | mapPut(data, id, value); |
11 | } |
12 | ret data; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014734 |
Snippet name: | autoGetDataFromForm |
Eternal ID of this version: | #1014734/4 |
Text MD5: | 88effbe6848bfa45cec711aecaae3484 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-01 15:37:40 |
Source code size: | 382 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 414 / 436 |
Version history: | 3 change(s) |
Referenced in: | [show references] |