Class TabbedAddeManager.LocalAddeTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.wisc.ssec.mcidasv.servermanager.TabbedAddeManager.LocalAddeTableModel
- All Implemented Interfaces:
Serializable,TableModel
- Enclosing class:
TabbedAddeManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]Labels that appear as the column headers.private final List<LocalAddeEntry> Entries that currently populate the server manager.private final EntryStoreEntryStoreused to query and apply changes.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the length ofcolumnNames.getColumnName(int column) Returns the column name associated withcolumn.protected LocalAddeEntrygetEntryAtRow(int row) Returns theLocalAddeEntryat the given index.intReturns the number of entries being managed.protected intgetRowForEntry(LocalAddeEntry entry) protected List<LocalAddeEntry> getSelectedEntries(int[] rows) getValueAt(int row, int column) Finds the value at the given coordinates.voidMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
columnNames
Labels that appear as the column headers. -
entries
Entries that currently populate the server manager. -
entryStore
EntryStoreused to query and apply changes.
-
-
Constructor Details
-
LocalAddeTableModel
-
-
Method Details
-
getEntryAtRow
Returns theLocalAddeEntryat the given index.- Parameters:
row- Index of the entry.- Returns:
LocalAddeEntryat index specified byrow.
-
getRowForEntry
-
getSelectedEntries
-
refreshEntries
-
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.
-
getColumnName
Returns the column name associated withcolumn.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel- Returns:
- One of
columnNames.
-