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 intprivate final String[]Labels that appear as the column headers.private static final intprivate static final Patternprivate final EntryStoreEntryStoreused to query and apply changes.private static final intprivate static final intprivate static final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionRemoteAddeTableModel(EntryStore entryStore) Builds anAbstractTableModelwith some extensions that facilitate working withRemoteAddeEntrys. -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringformattedAccounting(String serv, EntryStore manager) private static StringformattedSource(String serv, EntryStore manager) private static StringformattedTypes(String serv, EntryStore manager) private static StringformattedValidity(String serv, EntryStore manager) Class<?> getColumnClass(int column) intReturns the length ofcolumnNames.getColumnName(int column) Returns the column name associated withcolumn.protected List<RemoteAddeEntry> getEntriesAtRow(int row) Returns theRemoteAddeEntryat the given index.intReturns the number of entries being managed.protected intgetRowForEntry(RemoteAddeEntry entry) Returns the index of the givenentry.protected intgetRowForEntry(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 booleanhasType(String serv, EntryStore manager, AddeEntry.EntryType type) booleanisCellEditable(int row, int column) voidClears and re-adds allRemoteAddeEntrys 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
EntryStoreused to query and apply changes.
-
-
Constructor Details
-
RemoteAddeTableModel
Builds anAbstractTableModelwith some extensions that facilitate working withRemoteAddeEntrys.- Parameters:
entryStore- Server manager object.
-
-
Method Details
-
getEntriesAtRow
Returns theRemoteAddeEntryat the given index.- Parameters:
row- Index of the entry.- Returns:
RemoteAddeEntryat index specified byrow.
-
getRowForEntry
Returns the index of the givenentry.- Parameters:
entry-RemoteAddeEntrywhose row is desired.- Returns:
- Index of the desired
entry, or-1if 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
-1if the entry was not found. - See Also:
-
refreshEntries
Clears and re-adds allRemoteAddeEntrys 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
rowandcolumncoordinates - Throws:
IndexOutOfBoundsException- ifroworcolumnrefer to an invalid table cell.
-
formattedSource
-
formattedValidity
-
formattedAccounting
-
hasType
-
formattedTypes
-
getColumnName
Returns the column name associated withcolumn.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel- Returns:
- One of
columnNames.
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-