Skip to main content

How to enable or disable SUICIrcularProgressBar text by script using Java

In your Java class, do the following:

public class YourClass extends Component {

// boolean to control the activation of SUICircularProgressBar text
public boolean value; // select the value (true or false) from the properties

// creates a new SUICircularProgressBar, @AutoWired selects the component from this object
@AutoWired
private SUICircularProgressBar progressBar;

@Override
public void start() {

}

@Override
public void repeat() {

// sets the activation of the SUICircularProgressBar text according to the value of the Boolean (true or false) "value"
progressBar.setTextEnabled(value);
}
}