mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-21 08:06:33 -04:00
Rename BlockChainForm to CryptoCurrencyForm
This commit is contained in:
parent
f61ca3dd5a
commit
89a9300c8a
@ -44,8 +44,8 @@ import java.util.Optional;
|
||||
|
||||
import static io.bitsquare.gui.util.FormBuilder.*;
|
||||
|
||||
public class BlockChainForm extends PaymentMethodForm {
|
||||
private static final Logger log = LoggerFactory.getLogger(BlockChainForm.class);
|
||||
public class CryptoCurrencyForm extends PaymentMethodForm {
|
||||
private static final Logger log = LoggerFactory.getLogger(CryptoCurrencyForm.class);
|
||||
|
||||
private final CryptoCurrencyAccount cryptoCurrencyAccount;
|
||||
private final AltCoinAddressValidator altCoinAddressValidator;
|
||||
@ -62,8 +62,8 @@ public class BlockChainForm extends PaymentMethodForm {
|
||||
return gridRow;
|
||||
}
|
||||
|
||||
public BlockChainForm(PaymentAccount paymentAccount, AltCoinAddressValidator altCoinAddressValidator, InputValidator inputValidator, GridPane gridPane,
|
||||
int gridRow, BSFormatter formatter) {
|
||||
public CryptoCurrencyForm(PaymentAccount paymentAccount, AltCoinAddressValidator altCoinAddressValidator, InputValidator inputValidator, GridPane gridPane,
|
||||
int gridRow, BSFormatter formatter) {
|
||||
super(paymentAccount, inputValidator, gridPane, gridRow, formatter);
|
||||
this.cryptoCurrencyAccount = (CryptoCurrencyAccount) paymentAccount;
|
||||
this.altCoinAddressValidator = altCoinAddressValidator;
|
@ -22,7 +22,7 @@ import io.bitsquare.common.util.Tuple2;
|
||||
import io.bitsquare.gui.common.view.ActivatableViewAndModel;
|
||||
import io.bitsquare.gui.common.view.FxmlView;
|
||||
import io.bitsquare.gui.components.TitledGroupBg;
|
||||
import io.bitsquare.gui.components.paymentmethods.BlockChainForm;
|
||||
import io.bitsquare.gui.components.paymentmethods.CryptoCurrencyForm;
|
||||
import io.bitsquare.gui.components.paymentmethods.PaymentMethodForm;
|
||||
import io.bitsquare.gui.main.overlays.popups.Popup;
|
||||
import io.bitsquare.gui.util.BSFormatter;
|
||||
@ -259,7 +259,7 @@ public class AltCoinAccountsView extends ActivatableViewAndModel<GridPane, AltCo
|
||||
}
|
||||
|
||||
private PaymentMethodForm getPaymentMethodForm(PaymentAccount paymentAccount) {
|
||||
return new BlockChainForm(paymentAccount, altCoinAddressValidator, inputValidator, root, gridRow, formatter);
|
||||
return new CryptoCurrencyForm(paymentAccount, altCoinAddressValidator, inputValidator, root, gridRow, formatter);
|
||||
}
|
||||
|
||||
private void removeNewAccountForm() {
|
||||
|
@ -163,7 +163,7 @@ public class BuyerStep2View extends TradeStepView {
|
||||
break;
|
||||
case PaymentMethod.BLOCK_CHAINS_ID:
|
||||
String labelTitle = "Sellers " + CurrencyUtil.getNameByCode(trade.getOffer().getCurrencyCode()) + " address:";
|
||||
gridRow = BlockChainForm.addFormForBuyer(gridPane, gridRow, paymentAccountContractData, labelTitle);
|
||||
gridRow = CryptoCurrencyForm.addFormForBuyer(gridPane, gridRow, paymentAccountContractData, labelTitle);
|
||||
break;
|
||||
default:
|
||||
log.error("Not supported PaymentMethod: " + paymentMethodName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user