mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Clean up RevolutForm
This commit is contained in:
parent
05277f8c5e
commit
543559f0d4
@ -32,15 +32,11 @@ import bisq.core.payment.payload.RevolutAccountPayload;
|
|||||||
import bisq.core.util.BSFormatter;
|
import bisq.core.util.BSFormatter;
|
||||||
import bisq.core.util.validation.InputValidator;
|
import bisq.core.util.validation.InputValidator;
|
||||||
|
|
||||||
import javafx.scene.control.Label;
|
|
||||||
import javafx.scene.control.TextField;
|
import javafx.scene.control.TextField;
|
||||||
import javafx.scene.layout.FlowPane;
|
import javafx.scene.layout.FlowPane;
|
||||||
import javafx.scene.layout.GridPane;
|
import javafx.scene.layout.GridPane;
|
||||||
|
|
||||||
import javafx.geometry.Insets;
|
import static bisq.desktop.util.FormBuilder.addTopLabelFlowPane;
|
||||||
import javafx.geometry.VPos;
|
|
||||||
|
|
||||||
import static bisq.desktop.util.FormBuilder.addLabel;
|
|
||||||
import static bisq.desktop.util.FormBuilder.addTopLabelTextField;
|
import static bisq.desktop.util.FormBuilder.addTopLabelTextField;
|
||||||
import static bisq.desktop.util.FormBuilder.addTopLabelTextFieldWithCopyIcon;
|
import static bisq.desktop.util.FormBuilder.addTopLabelTextFieldWithCopyIcon;
|
||||||
|
|
||||||
@ -81,12 +77,8 @@ public class RevolutForm extends PaymentMethodForm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void addCurrenciesGrid(boolean isEditable) {
|
private void addCurrenciesGrid(boolean isEditable) {
|
||||||
Label label = addLabel(gridPane, ++gridRow, Res.get("payment.supportedCurrencies"), 0);
|
FlowPane flowPane = addTopLabelFlowPane(gridPane, ++gridRow,
|
||||||
GridPane.setValignment(label, VPos.TOP);
|
Res.get("payment.supportedCurrencies"), 0).second;
|
||||||
FlowPane flowPane = new FlowPane();
|
|
||||||
flowPane.setPadding(new Insets(10, 10, 10, 10));
|
|
||||||
flowPane.setVgap(10);
|
|
||||||
flowPane.setHgap(10);
|
|
||||||
|
|
||||||
if (isEditable)
|
if (isEditable)
|
||||||
flowPane.setId("flow-pane-checkboxes-bg");
|
flowPane.setId("flow-pane-checkboxes-bg");
|
||||||
@ -95,10 +87,6 @@ public class RevolutForm extends PaymentMethodForm {
|
|||||||
|
|
||||||
CurrencyUtil.getAllRevolutCurrencies().forEach(e ->
|
CurrencyUtil.getAllRevolutCurrencies().forEach(e ->
|
||||||
fillUpFlowPaneWithCurrencies(isEditable, flowPane, e, account));
|
fillUpFlowPaneWithCurrencies(isEditable, flowPane, e, account));
|
||||||
|
|
||||||
GridPane.setRowIndex(flowPane, gridRow);
|
|
||||||
GridPane.setColumnIndex(flowPane, 1);
|
|
||||||
gridPane.getChildren().add(flowPane);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user