コード例 #1
0
  public CurrencyCalculatorLink(
      @Nonnull final CurrencyAmountView btcAmountView,
      @Nonnull final CurrencyAmountView localAmountView) {
    this.btcAmountView = btcAmountView;
    this.btcAmountView.setListener(btcAmountViewListener);

    this.localAmountView = localAmountView;
    this.localAmountView.setListener(localAmountViewListener);

    update();
  }
コード例 #2
0
  public void setExchangeRate(@Nonnull final ExchangeRate exchangeRate) {
    this.exchangeRate = exchangeRate;

    update();
  }
コード例 #3
0
  public void setEnabled(final boolean enabled) {
    this.enabled = enabled;

    update();
  }
コード例 #4
0
  public void setExchangeDirection(final boolean exchangeDirection) {
    this.exchangeDirection = exchangeDirection;

    update();
  }