Rename DownloadListener to DownloadProgressTracker

This commit is contained in:
Mike Hearn
2014-12-18 13:37:05 +01:00
parent 36850b1d0e
commit b25899de58
7 changed files with 14 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
package wallettemplate;
import org.bitcoinj.core.Coin;
import org.bitcoinj.core.DownloadListener;
import org.bitcoinj.core.DownloadProgressTracker;
import org.bitcoinj.utils.MonetaryFormat;
import com.subgraph.orchid.TorClient;
import com.subgraph.orchid.TorInitializationListener;
@@ -121,7 +121,7 @@ public class MainController {
group.play();
}
public DownloadListener progressBarUpdater() {
return model.getDownloadListener();
public DownloadProgressTracker progressBarUpdater() {
return model.getDownloadProgressTracker();
}
}

View File

@@ -41,7 +41,7 @@ public class BitcoinUIModel {
address.set(wallet.currentReceiveAddress());
}
private class ProgressBarUpdater extends DownloadListener {
private class ProgressBarUpdater extends DownloadProgressTracker {
@Override
protected void progress(double pct, int blocksLeft, Date date) {
super.progress(pct, blocksLeft, date);
@@ -55,7 +55,7 @@ public class BitcoinUIModel {
}
}
public DownloadListener getDownloadListener() { return syncProgressUpdater; }
public DownloadProgressTracker getDownloadProgressTracker() { return syncProgressUpdater; }
public ReadOnlyDoubleProperty syncProgressProperty() { return syncProgress; }