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); }
@Override public void activate() { super.activate(); model.getTxId().addListener(txIdChangeListener); txIdTextField.setup(model.getWalletService(), model.getTxId().get()); }
@Override public void deactivate() { super.deactivate(); model.getTxId().removeListener(txIdChangeListener); txIdTextField.cleanup(); if (root != null) root.setMouseTransparent(false); }
public ConfirmFiatReceivedView(PendingTradesViewModel model) { super(model); txIdChangeListener = (ov, oldValue, newValue) -> txIdTextField.setup(model.getWalletService(), newValue); }