static SS autoGetDataFromForm(Component form) { SS data = new LinkedHashMap; for (Component c : allChildren(form)) { S id = componentID(c); if (id == null) continue; S value = null; for (Component c2 : allChildren(c)) if (c2 instanceof JTextComponent) value = getText((JTextComponent) c2); mapPut(data, id, value); } ret data; }
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: | 412 / 433 |
Version history: | 3 change(s) |
Referenced in: | [show references] |