Libraryless. Click here for Pure Java version (5786L/32K).
1 | svoid bindCheckBoxMenuItemToVar(JCheckBoxMenuItem cb, IVarWithNotify<Bool> lv) { |
2 | bindChangeListenerToComponent(cb, lv, r { |
3 | setChecked(cb, isTrue(lv!)); |
4 | }); |
5 | onChange(cb, r { |
6 | lv.set(isChecked(cb)); |
7 | }); |
8 | } |
Began life as a copy of #1017125
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034940 |
Snippet name: | bindCheckBoxMenuItemToVar |
Eternal ID of this version: | #1034940/1 |
Text MD5: | bc9dc2ed107d2b9e890fc4010c3b94d8 |
Transpilation MD5: | 08ba67991e77f1cd976280dacd4954fa |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-17 17:29:19 |
Source code size: | 224 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 210 |
Referenced in: | [show references] |