this.indeterminateLoopTimeline = new Timeline(this);
Integer cycleDuration = UIManager.getInt("ProgressBar.cycleTime");
if (cycleDuration == null)
cycleDuration = 1000;
this.indeterminateLoopTimeline.setDuration(cycleDuration);
this.indeterminateLoopTimeline.addCallback(new TimelineCallback() {
@Override
public void onTimelineStateChanged(TimelineState oldState,
TimelineState newState, float durationFraction,
float timelinePosition) {
if ((progressBar != null) && progressBar.isVisible())