edu.wisc.ssec.mcidasv.servermanager
Class TabbedAddeManager.LocalAddeTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by edu.wisc.ssec.mcidasv.servermanager.TabbedAddeManager.LocalAddeTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
TabbedAddeManager

private static class TabbedAddeManager.LocalAddeTableModel
extends AbstractTableModel


Field Summary
private  String[] columnNames
          Labels that appear as the column headers.
private  List<LocalAddeEntry> entries
          Entries that currently populate the server manager.
private  EntryStore entryStore
          EntryStore used to query and apply changes.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TabbedAddeManager.LocalAddeTableModel(EntryStore entryStore)
           
 
Method Summary
 int getColumnCount()
          Returns the length of columnNames.
 String getColumnName(int column)
          Returns the column name associated with column.
protected  LocalAddeEntry getEntryAtRow(int row)
          Returns the LocalAddeEntry at the given index.
 int getRowCount()
          Returns the number of entries being managed.
protected  int getRowForEntry(LocalAddeEntry entry)
           
protected  List<LocalAddeEntry> getSelectedEntries(int[] rows)
           
 Object getValueAt(int row, int column)
          Finds the value at the given coordinates.
 void refreshEntries()
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

private final String[] columnNames
Labels that appear as the column headers.


entries

private final List<LocalAddeEntry> entries
Entries that currently populate the server manager.


entryStore

private final EntryStore entryStore
EntryStore used to query and apply changes.

Constructor Detail

TabbedAddeManager.LocalAddeTableModel

public TabbedAddeManager.LocalAddeTableModel(EntryStore entryStore)
Method Detail

getEntryAtRow

protected LocalAddeEntry getEntryAtRow(int row)
Returns the LocalAddeEntry at the given index.

Parameters:
row - Index of the entry.
Returns:
The LocalAddeEntry at the index specified by row.

getRowForEntry

protected int getRowForEntry(LocalAddeEntry entry)

getSelectedEntries

protected List<LocalAddeEntry> getSelectedEntries(int[] rows)

refreshEntries

public void refreshEntries()

getColumnCount

public int getColumnCount()
Returns the length of columnNames.

Returns:
The number of columns.

getRowCount

public int getRowCount()
Returns the number of entries being managed.


getValueAt

public Object getValueAt(int row,
                         int column)
Finds the value at the given coordinates.

Parameters:
row - Table row.
column - Table column.
Returns:
Value stored at the given row and column coordinates
Throws:
IndexOutOfBoundsException - if row or column refer to an invalid table cell.

getColumnName

public String getColumnName(int column)
Returns the column name associated with column.

Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel
Returns:
One of columnNames.