1 | static void awtCalcOnConceptChanges(JComponent component, int delay, final O runnable, final bool runOnFirstTime) { |
2 | awtCalcOnConceptChanges(component, delay, 0, runnable, runOnFirstTime); |
3 | } |
4 | |
5 | static void awtCalcOnConceptChanges(JComponent component, int delay, int firstDelay, final O runnable, final bool runOnFirstTime) { |
6 | installTimer(component, delay, firstDelay, new Runnable { |
7 | long c = runOnFirstTime ? -1 : changeCount(); |
8 | new SingleThread thread; |
9 | |
10 | public void run() { |
11 | long _c = changeCount(); |
12 | if (_c != c && !thread.running()) { |
13 | c = _c; |
14 | thread.go(runnable); |
15 | } |
16 | } |
17 | }); |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006110 |
Snippet name: | awtCalcOnConceptChanges - it triggers reliably through special logic |
Eternal ID of this version: | #1006110/3 |
Text MD5: | ef8c225c7192c2c2e63e9d20984966ec |
Author: | stefan |
Category: | javax / concepts / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-23 13:54:59 |
Source code size: | 649 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 514 / 552 |
Version history: | 2 change(s) |
Referenced in: | [show references] |