static IProgressShower tempProgressBar(S text) { ret tempProgressBar(text, 1); } static IProgressShower tempProgressBar(S text, double total) { JProgressBar bar = showProgressWindow(text, total); ret new IProgressShower { public void setValue(double value) { setProgressBarValue(bar, iround(value)); } public void setTotal(double total) { setProgressBarTotal(bar, iround(total)); } public void setText(S text) { setProgressBarText(bar, print(text)); } public void close { disposePIFrame(bar); } }; }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1022691 |
| Snippet name: | tempProgressBar |
| Eternal ID of this version: | #1022691/4 |
| Text MD5: | 6b8f3acd649ec1e12784da185ef95dd6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-21 14:46:15 |
| Source code size: | 602 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 558 / 617 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |