// - Bind the amount pledged to the label.
pledgedValue = LighthouseBackend.bindTotalPledgedProperty(pledges);
raisedAmountLabel.textProperty().bind(createStringBinding(() -> Coin.valueOf(pledgedValue.get()).toPlainString(), pledgedValue));
numPledgersLabel.textProperty().bind(Bindings.size(pledges).asString());
StringExpression format = Bindings.format("%.0f%%", pledgedValue.divide(1.0 * goalAmount).multiply(100.0));
percentFundedLabel.textProperty().bind(format);
// - Make the action button update when the amount pledged changes.
pledgedValue.addListener(o -> pledgedValueChanged(goalAmount, pledgedValue));
pledgedValueChanged(goalAmount, pledgedValue);