Libraryless. Click here for Pure Java version (5786L/32K).
svoid bindCheckBoxMenuItemToVar(JCheckBoxMenuItem cb, IVarWithNotify<Bool> lv) { bindChangeListenerToComponent(cb, lv, r { setChecked(cb, isTrue(lv!)); }); onChange(cb, r { lv.set(isChecked(cb)); }); }
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: | 166 / 207 |
Referenced in: | [show references] |