Libraryless. Click here for Pure Java version (2651L/17K).
1 | static void cleanExitOnFrameClose_ifStillInSameFrame(Component c) {
|
2 | cleanExitOnFrameClose_ifStillInSameFrame(c, null); |
3 | } |
4 | |
5 | static void cleanExitOnFrameClose_ifStillInSameFrame(final Component c, IF0<Bool> confirm) {
|
6 | final Window w = getWindow(c); |
7 | if (w == null) ret; |
8 | onWindowClosing(w, r {
|
9 | if (getWindow(c) == w) thread {
|
10 | if (!isFalse(callF(confirm))) |
11 | cleanKillVM(); |
12 | } |
13 | }); |
14 | } |
Began life as a copy of #1009945
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016096 |
| Snippet name: | cleanExitOnFrameClose_ifStillInSameFrame |
| Eternal ID of this version: | #1016096/3 |
| Text MD5: | 08083a16e055ab4c870e2d63ff1d31ac |
| Transpilation MD5: | 2c084dead196ca3b12ed4d261cfd9291 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-29 18:12:36 |
| Source code size: | 418 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 912 / 1131 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |