Libraryless. Click here for Pure Java version (10119L/72K).
1 | static IVF1<JPopupMenu> mapMethodLike dm_boolFieldPopupMenuItem(S field, O... _) { |
2 | final DynModule m = dm_current_mandatory(); |
3 | S humanized = humanizeFormLabel(field); |
4 | ret menu -> |
5 | menu.add(jCheckBoxMenuItem(humanized, (bool) _get(m, field), voidfunc(bool b) { |
6 | m.setField(field, b); |
7 | callF(optPar(_, 'onSet)); |
8 | })); |
9 | } |
Began life as a copy of #1019442
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027360 |
Snippet name: | dm_boolFieldPopupMenuItem |
Eternal ID of this version: | #1027360/3 |
Text MD5: | 323f8f02b8cacdc3cdd0458bf0f6f709 |
Transpilation MD5: | 20cad40a96ec4e8e4034bbc0790f2500 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-11 18:54:39 |
Source code size: | 347 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 297 |
Version history: | 2 change(s) |
Referenced in: | [show references] |