1 | !1000805 // awt |
2 | |
3 | !636 // to process next line - yes it's hacky... |
4 | !include #1000915 // Flag |
5 | |
6 | // must be called from a non-awt thread! |
7 | static S slte(final S description) { |
8 | return slte(description, ""); |
9 | } |
10 | |
11 | // must be called from a non-awt thread! |
12 | static S slte(final S description, final S defaultInput) { |
13 | final new Flag done; |
14 | |
15 | final Class prog = hotwire("#1000897"); |
16 | awt { |
17 | set(prog, "input", defaultInput); |
18 | set(prog, "description", description); |
19 | setOpt(prog, "_noExit", true); |
20 | set(prog, "onOK", runnable { done.raise(); }); |
21 | set(prog, "onCancel", runnable { done.raise(); }); |
22 | callMain(prog); |
23 | } |
24 | |
25 | done.waitUntilUp(); |
26 | |
27 | return (Boolean) get(prog, "ok") ? (S) get(prog, "input") : null; |
28 | } |
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: | #1000916 |
Snippet name: | slte function |
Eternal ID of this version: | #1000916/1 |
Text MD5: | cdc0cdf2d9f2d6d2ad3474c956a98bca |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-22 17:49:59 |
Source code size: | 754 bytes / 28 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 753 / 1051 |
Referenced in: | [show references] |