@Override public String getText() { if (stockPrice != null) { return Bank.format(stockPrice.getPrice()) + " (" + stockPrice.getName() + ")"; } return ""; }
@Override public Object getUpdate() { if (stockPrice != null) { return new ViewUpdate(getText()).addObject(ViewUpdate.BGCOLOUR, stockPrice.getColour()); } else { return getText(); } }