|
|
@ -83,6 +83,9 @@ public class UtxosController extends WalletFormController implements Initializab |
|
|
|
@FXML |
|
|
|
private Button mixTo; |
|
|
|
|
|
|
|
@FXML |
|
|
|
private Button selectAll; |
|
|
|
|
|
|
|
@FXML |
|
|
|
private Button clear; |
|
|
|
|
|
|
@ -194,6 +197,7 @@ public class UtxosController extends WalletFormController implements Initializab |
|
|
|
balance.setValue(walletUtxosEntry.getBalance()); |
|
|
|
mempoolBalance.setValue(walletUtxosEntry.getMempoolBalance()); |
|
|
|
utxoCount.setText(walletUtxosEntry.getChildren() != null ? Integer.toString(walletUtxosEntry.getChildren().size()) : "0"); |
|
|
|
selectAll.setDisable(walletUtxosEntry.getChildren() == null || walletUtxosEntry.getChildren().size() == 0); |
|
|
|
} |
|
|
|
|
|
|
|
private boolean canWalletMix() { |
|
|
@ -203,6 +207,7 @@ public class UtxosController extends WalletFormController implements Initializab |
|
|
|
private void updateButtons(BitcoinUnit unit) { |
|
|
|
List<Entry> selectedEntries = getSelectedEntries(); |
|
|
|
|
|
|
|
selectAll.setDisable(utxosTable.getRoot().getChildren().size() == utxosTable.getSelectionModel().getSelectedCells().size()); |
|
|
|
clear.setDisable(selectedEntries.isEmpty()); |
|
|
|
sendSelected.setDisable(selectedEntries.isEmpty()); |
|
|
|
mixSelected.setDisable(selectedEntries.isEmpty() || !AppServices.isConnected()); |
|
|
@ -374,6 +379,10 @@ public class UtxosController extends WalletFormController implements Initializab |
|
|
|
.collect(Collectors.toList()); |
|
|
|
} |
|
|
|
|
|
|
|
public void selectAll(ActionEvent event) { |
|
|
|
utxosTable.getSelectionModel().selectAll(); |
|
|
|
} |
|
|
|
|
|
|
|
public void clear(ActionEvent event) { |
|
|
|
utxosTable.getSelectionModel().clearSelection(); |
|
|
|
} |
|
|
|