Libraryless. Click here for Pure Java version (5855L/32K).
static <A extends JComponent> A bindHasChangeListenersToComponent(A component, IHasChangeListeners hcl, Runnable listener) { if (hcl != null) bindToComponent(component, -> hcl.onChangeAndNow(listener), -> hcl.removeChangeListener(listener)); ret component; }
Began life as a copy of #1016236
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034683 |
Snippet name: | bindHasChangeListenersToComponent |
Eternal ID of this version: | #1034683/1 |
Text MD5: | 88c39d153ff6998400ab8eb67ac7f757 |
Transpilation MD5: | f7f5083b6037d62b448b367ed12488de |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-03 14:10:59 |
Source code size: | 284 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 236 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |