Search in sources :

Example 51 with TextField

use of javafx.scene.control.TextField in project bitsquare by bitsquare.

the class FasterPaymentsForm method addFormForDisplayAccount.

@Override
public void addFormForDisplayAccount() {
    gridRowFrom = gridRow;
    addLabelTextField(gridPane, gridRow, "Account name:", fasterPaymentsAccount.getAccountName(), Layout.FIRST_ROW_AND_GROUP_DISTANCE);
    addLabelTextField(gridPane, ++gridRow, "Payment method:", BSResources.get(fasterPaymentsAccount.getPaymentMethod().getId()));
    addLabelTextField(gridPane, ++gridRow, "UK Sort code:", fasterPaymentsAccount.getSortCode());
    TextField field = addLabelTextField(gridPane, ++gridRow, "Account number:", fasterPaymentsAccount.getAccountNr()).second;
    field.setMouseTransparent(false);
    addLabelTextField(gridPane, ++gridRow, "Currency:", fasterPaymentsAccount.getSingleTradeCurrency().getNameAndCode());
    addAllowedPeriod();
}
Also used : FormBuilder.addLabelInputTextField(io.bitsquare.gui.util.FormBuilder.addLabelInputTextField) InputTextField(io.bitsquare.gui.components.InputTextField) TextField(javafx.scene.control.TextField) FormBuilder.addLabelTextField(io.bitsquare.gui.util.FormBuilder.addLabelTextField)

Example 52 with TextField

use of javafx.scene.control.TextField in project bitsquare by bitsquare.

the class PerfectMoneyForm method addFormForDisplayAccount.

@Override
public void addFormForDisplayAccount() {
    gridRowFrom = gridRow;
    addLabelTextField(gridPane, gridRow, "Account name:", perfectMoneyAccount.getAccountName(), Layout.FIRST_ROW_AND_GROUP_DISTANCE);
    addLabelTextField(gridPane, ++gridRow, "Payment method:", BSResources.get(perfectMoneyAccount.getPaymentMethod().getId()));
    TextField field = addLabelTextField(gridPane, ++gridRow, "Account no.:", perfectMoneyAccount.getAccountNr()).second;
    field.setMouseTransparent(false);
    addLabelTextField(gridPane, ++gridRow, "Currency:", perfectMoneyAccount.getSingleTradeCurrency().getNameAndCode());
    addAllowedPeriod();
}
Also used : InputTextField(io.bitsquare.gui.components.InputTextField) TextField(javafx.scene.control.TextField)

Example 53 with TextField

use of javafx.scene.control.TextField in project bitsquare by bitsquare.

the class SameBankForm method addHolderNameAndIdForDisplayAccount.

@Override
protected void addHolderNameAndIdForDisplayAccount() {
    Tuple2<Label, TextField> tuple = addLabelTextField(gridPane, ++gridRow, "Account holder name:");
    TextField holderNameTextField = tuple.second;
    holderNameTextField.setMinWidth(300);
    holderNameTextField.setText(bankAccountContractData.getHolderName());
}
Also used : Label(javafx.scene.control.Label) FormBuilder.addLabelInputTextField(io.bitsquare.gui.util.FormBuilder.addLabelInputTextField) InputTextField(io.bitsquare.gui.components.InputTextField) TextField(javafx.scene.control.TextField) FormBuilder.addLabelTextField(io.bitsquare.gui.util.FormBuilder.addLabelTextField)

Example 54 with TextField

use of javafx.scene.control.TextField in project bitsquare by bitsquare.

the class SpecificBankForm method addAcceptedBanksForAddAccount.

@Override
protected void addAcceptedBanksForAddAccount() {
    Tuple3<Label, InputTextField, Button> addBankTuple = addLabelInputTextFieldButton(gridPane, ++gridRow, "Name of accepted bank:", "Add accepted bank");
    InputTextField addBankInputTextField = addBankTuple.second;
    Button addButton = addBankTuple.third;
    addButton.setMinWidth(200);
    addButton.disableProperty().bind(Bindings.createBooleanBinding(() -> addBankInputTextField.getText().isEmpty(), addBankInputTextField.textProperty()));
    Tuple3<Label, TextField, Button> acceptedBanksTuple = addLabelTextFieldButton(gridPane, ++gridRow, "Accepted banks:", "Clear accepted banks");
    acceptedBanksTextField = acceptedBanksTuple.second;
    acceptedBanksTextField.setMouseTransparent(false);
    acceptedBanksTooltip = new Tooltip();
    acceptedBanksTextField.setTooltip(acceptedBanksTooltip);
    Button clearButton = acceptedBanksTuple.third;
    clearButton.setMinWidth(200);
    clearButton.setDefaultButton(false);
    clearButton.disableProperty().bind(Bindings.createBooleanBinding(() -> acceptedBanksTextField.getText().isEmpty(), acceptedBanksTextField.textProperty()));
    addButton.setOnAction(e -> {
        specificBanksAccountContractData.addAcceptedBank(addBankInputTextField.getText());
        addBankInputTextField.setText("");
        String value = Joiner.on(", ").join(specificBanksAccountContractData.getAcceptedBanks());
        acceptedBanksTextField.setText(value);
        acceptedBanksTooltip.setText(value);
        updateAllInputsValid();
    });
    clearButton.setOnAction(e -> resetAcceptedBanks());
}
Also used : Button(javafx.scene.control.Button) InputTextField(io.bitsquare.gui.components.InputTextField) Tooltip(javafx.scene.control.Tooltip) Label(javafx.scene.control.Label) InputTextField(io.bitsquare.gui.components.InputTextField) TextField(javafx.scene.control.TextField)

Example 55 with TextField

use of javafx.scene.control.TextField in project bitsquare by bitsquare.

the class SwishForm method addFormForDisplayAccount.

@Override
public void addFormForDisplayAccount() {
    gridRowFrom = gridRow;
    addLabelTextField(gridPane, gridRow, "Account name:", swishAccount.getAccountName(), Layout.FIRST_ROW_AND_GROUP_DISTANCE);
    addLabelTextField(gridPane, ++gridRow, "Payment method:", BSResources.get(swishAccount.getPaymentMethod().getId()));
    addLabelTextField(gridPane, ++gridRow, "Account holder name:", swishAccount.getHolderName());
    TextField field = addLabelTextField(gridPane, ++gridRow, "Mobile no.:", swishAccount.getMobileNr()).second;
    field.setMouseTransparent(false);
    addLabelTextField(gridPane, ++gridRow, "Currency:", swishAccount.getSingleTradeCurrency().getNameAndCode());
    addAllowedPeriod();
}
Also used : FormBuilder.addLabelInputTextField(io.bitsquare.gui.util.FormBuilder.addLabelInputTextField) InputTextField(io.bitsquare.gui.components.InputTextField) TextField(javafx.scene.control.TextField) FormBuilder.addLabelTextField(io.bitsquare.gui.util.FormBuilder.addLabelTextField)

Aggregations

TextField (javafx.scene.control.TextField)64 Label (javafx.scene.control.Label)24 Button (javafx.scene.control.Button)16 Scene (javafx.scene.Scene)15 InputTextField (io.bitsquare.gui.components.InputTextField)13 Insets (javafx.geometry.Insets)11 GridPane (javafx.scene.layout.GridPane)11 Tooltip (javafx.scene.control.Tooltip)8 Pair (javafx.util.Pair)8 BorderPane (javafx.scene.layout.BorderPane)7 VBox (javafx.scene.layout.VBox)7 ArrayList (java.util.ArrayList)5 List (java.util.List)5 Dialog (javafx.scene.control.Dialog)5 Color (javafx.scene.paint.Color)5 Stage (javafx.stage.Stage)5 FormBuilder.addLabelInputTextField (io.bitsquare.gui.util.FormBuilder.addLabelInputTextField)4 FormBuilder.addLabelTextField (io.bitsquare.gui.util.FormBuilder.addLabelTextField)4 File (java.io.File)4 ObjectProperty (javafx.beans.property.ObjectProperty)4