Transpiled version (5014L) is out of date.
1 | // legacy |
2 | static <A extends Window> A onWindowClosing(A w, O r) {
|
3 | ret onWindowClosing(w, toRunnable(r)); |
4 | } |
5 | |
6 | static <A extends Window> A onWindowClosing(A w, Runnable r) {
|
7 | if (w != null) swing {
|
8 | w.addWindowListener(new WindowAdapter {
|
9 | public void windowClosing(WindowEvent e) {
|
10 | temp tempRememberListener(w, 'removeWindowListener, this); |
11 | pcallF(r); |
12 | } |
13 | }); |
14 | } |
15 | ret w; |
16 | } |
17 | |
18 | static <A extends Window> A onWindowClosing(Runnable r, A w) {
|
19 | ret onWindowClosing(w, r); |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1009661 |
| Snippet name: | onWindowClosing |
| Eternal ID of this version: | #1009661/10 |
| Text MD5: | ff9623ae426325c4c13c7e187c7f4717 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-05 05:16:27 |
| Source code size: | 521 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1119 / 1262 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |