@Override
  public void activate() {
    super.activate();

    model.getTxId().addListener(txIdChangeListener);
    txIdTextField.setup(model.getWalletService(), model.getTxId().get());
  }
Exemplo n.º 2
0
  public static Tuple2<Label, TxIdTextField> addLabelTxIdTextField(
      GridPane gridPane, int rowIndex, String title, String value, double top) {
    Label label = addLabel(gridPane, rowIndex, title, top);

    TxIdTextField txTextField = new TxIdTextField();
    txTextField.setup(value);
    GridPane.setRowIndex(txTextField, rowIndex);
    GridPane.setColumnIndex(txTextField, 1);
    gridPane.getChildren().add(txTextField);

    return new Tuple2<>(label, txTextField);
  }
  public ConfirmFiatReceivedView(PendingTradesViewModel model) {
    super(model);

    txIdChangeListener =
        (ov, oldValue, newValue) -> txIdTextField.setup(model.getWalletService(), newValue);
  }