void () { ProgressIndicatorEx ui = new ProgressIndicatorBase(); RelayUiToDelegateIndicator relay = new RelayUiToDelegateIndicator(ui); ProgressIndicatorBase indicator = new ProgressIndicatorBase(true); indicator.addStateDelegate(relay); indicator.start(); indicator.cancel(); indicator.stop(); indicator.start(); indicator.cancel(); indicator.removeStateDelegate(relay); }