private static class TabbedAddeManager.LocalAddeTableModel extends javax.swing.table.AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
columnNames
Labels that appear as the column headers.
|
private java.util.List<LocalAddeEntry> |
entries
Entries that currently populate the server manager.
|
private EntryStore |
entryStore
EntryStore used to query and apply changes. |
| Constructor and Description |
|---|
LocalAddeTableModel(EntryStore entryStore) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Returns the length of
columnNames. |
java.lang.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 java.util.List<LocalAddeEntry> |
getSelectedEntries(int[] rows) |
java.lang.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, setValueAtprivate final java.lang.String[] columnNames
private final java.util.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 java.util.List<LocalAddeEntry> getSelectedEntries(int[] rows)
public void refreshEntries()
public int getColumnCount()
columnNames.public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row - Table row.column - Table column.row and column
coordinatesjava.lang.IndexOutOfBoundsException - if row or column
refer to an invalid table cell.public java.lang.String getColumnName(int column)
column.getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumnNames.