NASA World Wind

gov.nasa.worldwindx.applications.dataimporter
Class FileSetTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by gov.nasa.worldwindx.applications.dataimporter.FileSetTableModel
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener, TableModel

public class FileSetTableModel
extends AbstractTableModel
implements PropertyChangeListener

The table model for the file-set table.

See Also:
Serialized Form

Field Summary
protected static String[] columnTitles
           
protected  Set<FileSet> fileSets
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FileSetTableModel(FileSetMap fileSetMap)
           
 
Method Summary
protected  void clearFileSets()
           
 Class getColumnClass(int col)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
protected  ImageIcon getImageIcon(int row)
           
 FileSet getRow(int row)
           
 int getRowCount()
           
 Integer getRowForFileSet(FileSet fileSet)
           
 Object getValueAt(int row, int col)
           
 void propertyChange(PropertyChangeEvent propertyChangeEvent)
           
 void setFileSetMap(FileSetMap fileSetMap)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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

columnTitles

protected static final String[] columnTitles

fileSets

protected Set<FileSet> fileSets
Constructor Detail

FileSetTableModel

public FileSetTableModel(FileSetMap fileSetMap)
Method Detail

clearFileSets

protected void clearFileSets()

getColumnClass

public Class getColumnClass(int col)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getImageIcon

protected ImageIcon getImageIcon(int row)

getRow

public FileSet getRow(int row)

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getRowForFileSet

public Integer getRowForFileSet(FileSet fileSet)

getValueAt

public Object getValueAt(int row,
                         int col)
Specified by:
getValueAt in interface TableModel

propertyChange

public void propertyChange(PropertyChangeEvent propertyChangeEvent)
Specified by:
propertyChange in interface PropertyChangeListener

setFileSetMap

public void setFileSetMap(FileSetMap fileSetMap)

NASA World Wind