mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Clean up UpholdForm
This commit is contained in:
parent
25bffbafac
commit
0d85252960
1 changed files with 4 additions and 16 deletions
|
@ -32,15 +32,10 @@ import bisq.core.payment.payload.UpholdAccountPayload;
|
||||||
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 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,24 +76,17 @@ public class UpholdForm extends PaymentMethodForm {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addCurrenciesGrid(boolean isEditable) {
|
private void addCurrenciesGrid(boolean isEditable) {
|
||||||
Label label = addLabel(gridPane, ++gridRow, Res.get("payment.supportedCurrencies"), 0);
|
|
||||||
GridPane.setValignment(label, VPos.TOP);
|
FlowPane flowPane = FormBuilder.addTopLabelFlowPane(gridPane, ++gridRow,
|
||||||
FlowPane flowPane = new FlowPane();
|
Res.get("payment.supportedCurrencies"), 0).second;
|
||||||
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");
|
||||||
else
|
else
|
||||||
flowPane.setId("flow-pane-checkboxes-non-editable-bg");
|
flowPane.setId("flow-pane-checkboxes-non-editable-bg");
|
||||||
|
|
||||||
CurrencyUtil.getAllUpholdCurrencies().stream().forEach(e ->
|
CurrencyUtil.getAllUpholdCurrencies().forEach(e ->
|
||||||
fillUpFlowPaneWithCurrencies(isEditable, flowPane, e, upholdAccount));
|
fillUpFlowPaneWithCurrencies(isEditable, flowPane, e, upholdAccount));
|
||||||
|
|
||||||
GridPane.setRowIndex(flowPane, gridRow);
|
|
||||||
GridPane.setColumnIndex(flowPane, 1);
|
|
||||||
gridPane.getChildren().add(flowPane);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue