private static class TabbedAddeManager.LocalAddeTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
private String[] |
columnNames
Labels that appear as the column headers.
|
private List<LocalAddeEntry> |
entries
Entries that currently populate the server manager.
|
private EntryStore |
entryStore
EntryStore used to query and apply changes. |
listenerList
Constructor and Description |
---|
LocalAddeTableModel(EntryStore entryStore) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Returns the length of
columnNames . |
String |
getColumnName(int column)
Returns the column name associated with
column . |
protected LocalAddeEntry |
getEntryAtRow(int row)
Returns the
LocalAddeEntry at the given index. |
int |
getRowCount()
Returns the number of entries being managed.
|
protected int |
getRowForEntry(LocalAddeEntry entry) |
protected List<LocalAddeEntry> |
getSelectedEntries(int[] rows) |
Object |
getValueAt(int row,
int column)
Finds the value at the given coordinates.
|
void |
refreshEntries() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
private final String[] columnNames
private final List<LocalAddeEntry> entries
private final EntryStore entryStore
EntryStore
used to query and apply changes.public LocalAddeTableModel(EntryStore entryStore)
protected LocalAddeEntry getEntryAtRow(int row)
LocalAddeEntry
at the given index.row
- Index of the entry.LocalAddeEntry
at index specified by row
.protected int getRowForEntry(LocalAddeEntry entry)
protected List<LocalAddeEntry> getSelectedEntries(int[] rows)
public void refreshEntries()
public int getColumnCount()
columnNames
.public int getRowCount()
public Object getValueAt(int row, int column)
row
- Table row.column
- Table column.row
and column
coordinatesIndexOutOfBoundsException
- if row
or column
refer to an invalid table cell.public String getColumnName(int column)
column
.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
columnNames
.