static <A> CloseableIterableIterator<A> iterate_progressWindow(final Collection<A> l) { final JProgressBar bar = showProgressWindow(l(l)); ret iteratorFromFunction_withEndMarker_f0_autoCloseable(new F0 { int i; Iterator<A> it = iterator(l); NotTooOften nto = onlyTenTimesASecond(); public O get() { if (!it.hasNext()) ret endMarker(); if (i > 0 && nto.yo()) { setProgressBarValue(bar, i); // TODO: set window title too } ++i; ret it.next(); } }, tempDisposePIFrame(bar)); }
Began life as a copy of #1019088
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020973 |
| Snippet name: | iterate_progressWindow - iterate and show a progress window. make sure to dispose it properly (use temp statement) |
| Eternal ID of this version: | #1020973/4 |
| Text MD5: | 2f3f3b8f8548633f87de18bc67d23d79 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-01-15 17:00:34 |
| Source code size: | 567 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 531 / 548 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |