private static class TabbedAddeManager.RemoteAddeTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
private static int |
ACCT |
private String[] |
columnNames
Labels that appear as the column headers.
|
private static int |
DATASET |
private EntryStore |
entryStore
EntryStore used to query and apply changes. |
private List<String> |
servers |
private static int |
SOURCE |
private static int |
TYPES |
private static int |
VALID |
listenerList
Constructor and Description |
---|
TabbedAddeManager.RemoteAddeTableModel(EntryStore entryStore) |
Modifier and Type | Method and Description |
---|---|
private static String |
formattedAccounting(String serv,
EntryStore manager) |
private static String |
formattedSource(String serv,
EntryStore manager) |
private static String |
formattedTypes(String serv,
EntryStore manager) |
private static String |
formattedValidity(String serv,
EntryStore manager) |
Class<?> |
getColumnClass(int column) |
int |
getColumnCount()
Returns the length of
columnNames . |
String |
getColumnName(int column)
Returns the column name associated with
column . |
protected List<RemoteAddeEntry> |
getEntriesAtRow(int row)
Returns the
RemoteAddeEntry at the given index. |
int |
getRowCount()
Returns the number of entries being managed.
|
protected int |
getRowForEntry(RemoteAddeEntry entry)
Returns the index of the given
entry . |
protected int |
getRowForEntry(String entryText) |
Object |
getValueAt(int row,
int column)
Finds the value at the given coordinates.
|
private static boolean |
hasType(String serv,
EntryStore manager,
AddeEntry.EntryType type) |
boolean |
isCellEditable(int row,
int column) |
void |
refreshEntries()
Clears and re-adds all
RemoteAddeEntry s within #entries . |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
private static final int VALID
private static final int SOURCE
private static final int DATASET
private static final int ACCT
private static final int TYPES
private final String[] columnNames
private final EntryStore entryStore
EntryStore
used to query and apply changes.public TabbedAddeManager.RemoteAddeTableModel(EntryStore entryStore)
entryStore
- protected List<RemoteAddeEntry> getEntriesAtRow(int row)
RemoteAddeEntry
at the given index.row
- Index of the entry.RemoteAddeEntry
at the index specified by row
.protected int getRowForEntry(RemoteAddeEntry entry)
entry
.List.indexOf(Object)
protected int getRowForEntry(String entryText)
public void refreshEntries()
RemoteAddeEntry
s within #entries
.public int getColumnCount()
columnNames
.public int getRowCount()
public Object getValueAt(int row, int column)
row
- column
- IndexOutOfBoundsException
private static String formattedSource(String serv, EntryStore manager)
private static String formattedValidity(String serv, EntryStore manager)
private static String formattedAccounting(String serv, EntryStore manager)
private static boolean hasType(String serv, EntryStore manager, AddeEntry.EntryType type)
private static String formattedTypes(String serv, EntryStore manager)
public String getColumnName(int column)
column
.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
columnNames
.public Class<?> getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel