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 EntryStore
EntryStore
used to query and apply changes.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the length ofcolumnNames
.getColumnName
(int column) Returns the column name associated withcolumn
.protected LocalAddeEntry
getEntryAtRow
(int row) Returns theLocalAddeEntry
at the given index.int
Returns the number of entries being managed.protected int
getRowForEntry
(LocalAddeEntry entry) protected List
<LocalAddeEntry> getSelectedEntries
(int[] rows) getValueAt
(int row, int column) Finds the value at the given coordinates.void
Methods 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
EntryStore
used to query and apply changes.
-
-
Constructor Details
-
LocalAddeTableModel
-
-
Method Details
-
getEntryAtRow
Returns theLocalAddeEntry
at the given index.- Parameters:
row
- Index of the entry.- Returns:
LocalAddeEntry
at 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
row
andcolumn
coordinates - Throws:
IndexOutOfBoundsException
- ifrow
orcolumn
refer to an invalid table cell.
-
getColumnName
Returns the column name associated withcolumn
.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Returns:
- One of
columnNames
.
-