Libraryless. Click here for Pure Java version (5855L/32K).
1 | static <A extends JComponent> A bindHasChangeListenersToComponent(A component, IHasChangeListeners hcl, Runnable listener) {
|
2 | if (hcl != null) |
3 | bindToComponent(component, |
4 | -> hcl.onChangeAndNow(listener), |
5 | -> hcl.removeChangeListener(listener)); |
6 | ret component; |
7 | } |
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: | 425 / 502 |
| Referenced in: | [show references] |