Example usage for org.springframework.amqp.rabbit.stocks.domain TradeResponse getPrice

List of usage examples for org.springframework.amqp.rabbit.stocks.domain TradeResponse getPrice

Introduction

In this page you can find the example usage for org.springframework.amqp.rabbit.stocks.domain TradeResponse getPrice.

Prototype

public BigDecimal getPrice() 

Source Link

Usage

From source file:org.springframework.amqp.rabbit.stocks.ui.StockPanel.java

public void update(final TradeResponse tradeResponse) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            tradeRequestTextField.setForeground(Color.GREEN);
            tradeRequestTextField.setText("Confirmed. " + tradeResponse.getTicker() + " "
                    + frmt.format(tradeResponse.getPrice().doubleValue()));
        }/*from   ww  w  .ja  v a  2  s.  com*/
    });
}