1 | static <A extends Component> A setFormData(SS data, A form) { |
2 | ret setFormData(form, data); |
3 | } |
4 | |
5 | static <A extends Component> A setFormData(A form, SS data) { |
6 | if (!empty(data)) |
7 | for (Component c : allChildren(form)) { |
8 | S id = componentID(c); |
9 | if (id == null) continue; |
10 | S value = data.get(id); |
11 | if (value == null) continue; |
12 | for (Component c2 : allChildren(c)) |
13 | if (c2 instanceof JTextComponent) |
14 | setText((JTextComponent) c2, value); |
15 | } |
16 | ret form; |
17 | } |
Began life as a copy of #1014734
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: | #1014742 |
Snippet name: | setFormData - see autoSetDataFromForm |
Eternal ID of this version: | #1014742/4 |
Text MD5: | e0f66cdde46378bf8ea3e966c65e835d |
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 16:07:30 |
Source code size: | 514 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 352 / 392 |
Version history: | 3 change(s) |
Referenced in: | [show references] |