Exemplo n.º 1
0
  public void addStock(int i, Stock stock) {
    if (i == -1) return;

    this.stocks.getStockList().add(i, stock);
    this.state.add(i, stock.isTriggered());
    this.fireTableRowsInserted(i, i);
    selector.select(i);
  }
Exemplo n.º 2
0
 public void addLastStock(Stock stock) {
   stocks.add(stock);
   state.add(stock.isTriggered());
   this.fireTableRowsInserted(stocks.getStockList().size() - 1, stocks.getStockList().size() - 1);
   selector.select(stocks.getStockList().size() - 1);
 }