/* * (non-Javadoc) * * @see javax.swing.table.TableModel#getValueAt(int, int) */ @Override public Object getValueAt(int rowIndex, int columnIndex) { switch (columnIndex) { case COLUMN_SYMBOL: return (String) _items.getObjectAt(rowIndex); default: return null; } }
/** * Sets a new value to the item list. * * @param items new value to set. */ public void setItems(ObjectList items) { // Clears the item list _items.clear(); for (int index = 0; index < items.size(); index++) _items.insert(index, (String) items.getObjectAt(index)); // Updates the model fireTableDataChanged(); }