Transpiled version (5060L) is out of date.
1 | static AutoCloseable tempAddPopupButtonListener(IVF1<MouseEvent> onEvent) {
|
2 | if (onEvent == null) null; |
3 | ret tempAddGlobalMouseListener(evt -> {
|
4 | if (evt.getID() == MouseEvent.MOUSE_PRESSED |
5 | && isNotLeftMouseButton(evt)) |
6 | onEvent.get(evt); |
7 | }); |
8 | } |
Began life as a copy of #1020885
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034617 |
| Snippet name: | tempAddPopupButtonListener - add a global AWT popup menu mouse button listener |
| Eternal ID of this version: | #1034617/6 |
| Text MD5: | 02496289c8f93b1373973f351f46ef94 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-11 22:50:49 |
| Source code size: | 269 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 429 / 556 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |