Class TabbedAddeManager.RemoteAddeTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.wisc.ssec.mcidasv.servermanager.TabbedAddeManager.RemoteAddeTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- Enclosing class:
TabbedAddeManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final String[]
Labels that appear as the column headers.private static final int
private static final Pattern
private final EntryStore
EntryStore
used to query and apply changes.private static final int
private static final int
private static final int
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteAddeTableModel
(EntryStore entryStore) Builds anAbstractTableModel
with some extensions that facilitate working withRemoteAddeEntrys
. -
Method Summary
Modifier and TypeMethodDescriptionprivate 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
Returns the length ofcolumnNames
.getColumnName
(int column) Returns the column name associated withcolumn
.protected List
<RemoteAddeEntry> getEntriesAtRow
(int row) Returns theRemoteAddeEntry
at the given index.int
Returns the number of entries being managed.protected int
getRowForEntry
(RemoteAddeEntry entry) Returns the index of the givenentry
.protected int
getRowForEntry
(String entryText) Returns the index of the given entry text within the table.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
Clears and re-adds allRemoteAddeEntry
s withinentryStore
.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Field Details
-
VALID
- See Also:
-
SOURCE
- See Also:
-
DATASET
- See Also:
-
ACCT
- See Also:
-
TYPES
- See Also:
-
ENTRY_ID_SPLITTER
-
columnNames
Labels that appear as the column headers. -
servers
-
entryStore
EntryStore
used to query and apply changes.
-
-
Constructor Details
-
RemoteAddeTableModel
Builds anAbstractTableModel
with some extensions that facilitate working withRemoteAddeEntrys
.- Parameters:
entryStore
- Server manager object.
-
-
Method Details
-
getEntriesAtRow
Returns theRemoteAddeEntry
at the given index.- Parameters:
row
- Index of the entry.- Returns:
RemoteAddeEntry
at index specified byrow
.
-
getRowForEntry
Returns the index of the givenentry
.- Parameters:
entry
-RemoteAddeEntry
whose row is desired.- Returns:
- Index of the desired
entry
, or-1
if the entry wasn't found.
-
getRowForEntry
Returns the index of the given entry text within the table.- Parameters:
entryText
- String representation of the desired entry.- Returns:
- Index of the desired entry, or
-1
if the entry was not found. - See Also:
-
refreshEntries
Clears and re-adds allRemoteAddeEntry
s withinentryStore
. -
getColumnCount
Returns the length ofcolumnNames
.- Returns:
- The number of columns.
-
getRowCount
Returns the number of entries being managed. -
getValueAt
Finds the value at the given coordinates.- Parameters:
row
- Table row.column
- Table column.- Returns:
- Value stored at the given
row
andcolumn
coordinates - Throws:
IndexOutOfBoundsException
- ifrow
orcolumn
refer to an invalid table cell.
-
formattedSource
-
formattedValidity
-
formattedAccounting
-
hasType
-
formattedTypes
-
getColumnName
Returns the column name associated withcolumn
.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Returns:
- One of
columnNames
.
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-