MCPcopy Create free account
hub / github.com/HumbleUI/JWM / setProgressBar

Method setProgressBar

examples/dashboard/java/Example.java:236–245  ·  view source on GitHub ↗
(String type)

Source from the content-addressed store, hash-verified

234 }
235
236 public void setProgressBar(String type) {
237 progressBars.set(type);
238 window.setProgressBar(switch (type) {
239 case "0%" -> 0f;
240 case "50%" -> 0.5f;
241 case "100%" -> 1f;
242 case "Indeterminate" -> 2f;
243 default -> -1f;
244 });
245 }
246
247 public static void main(String[] args) {
248 App.start(() -> {

Callers 1

acceptMethod · 0.95

Calls 1

setMethod · 0.45

Tested by

no test coverage detected