1 | static IProgressShower tempProgressBar(S text) { |
2 | ret tempProgressBar(text, 1); |
3 | } |
4 | |
5 | static IProgressShower tempProgressBar(S text, double total) { |
6 | JProgressBar bar = showProgressWindow(text, total); |
7 | ret new IProgressShower { |
8 | public void setValue(double value) { |
9 | setProgressBarValue(bar, iround(value)); |
10 | } |
11 | |
12 | public void setTotal(double total) { |
13 | setProgressBarTotal(bar, iround(total)); |
14 | } |
15 | |
16 | public void setText(S text) { |
17 | setProgressBarText(bar, print(text)); |
18 | } |
19 | |
20 | public void close { |
21 | disposePIFrame(bar); |
22 | } |
23 | }; |
24 | } |
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: | 319 / 370 |
Version history: | 3 change(s) |
Referenced in: | [show references] |