HiRISE

HiRISE.HiCat.HiTList
Class HiTList_Table_Model

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by HiRISE.HiCat.HiTList.HiTList_Table_Model
All Implemented Interfaces:
Serializable, TableModel

public class HiTList_Table_Model
extends AbstractTableModel

A simple table model for displaying the target lists retrieved for HiTList.

Version:
1.3
Author:
Rodney Heyd UA/HiRISE
See Also:
Serialized Form

Field Summary
static String ID
          The class identification
static String NEARBY_OBSERVATIONS_COLUMN_NAME
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
HiTList_Table_Model()
           
HiTList_Table_Model(Vector Data, Vector Column_Names)
          Construct a new table model given a Vector of Vectors containing tabular data and a second Vector of Strings containing the column names.
 
Method Summary
 void Data(Vector Data, Vector Column_Names)
          Updates the model with new data.
 int getColumnCount()
          Returns the number of columns in the current table model.
 String getColumnName(int column_index)
           
 int getRowCount()
          Returns the number of rows in the current model.
 Object getValueAt(int row_index, int column_index)
          Returns the value of the cell at the specified row and column index
 boolean isCellEditable(int row_index, int column_index)
          Indicates if the specified cell is editable.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
The class identification

See Also:
Constant Field Values

NEARBY_OBSERVATIONS_COLUMN_NAME

public static final String NEARBY_OBSERVATIONS_COLUMN_NAME
See Also:
Constant Field Values
Constructor Detail

HiTList_Table_Model

public HiTList_Table_Model(Vector Data,
                           Vector Column_Names)
Construct a new table model given a Vector of Vectors containing tabular data and a second Vector of Strings containing the column names.

Parameters:
Data - - the tabular data to be displayed
Column_Names - - the column names

HiTList_Table_Model

public HiTList_Table_Model()
Method Detail

Data

public void Data(Vector Data,
                 Vector Column_Names)
Updates the model with new data.

Parameters:
Data -
Column_Names -

getColumnCount

public int getColumnCount()
Returns the number of columns in the current table model.


getRowCount

public int getRowCount()
Returns the number of rows in the current model.


getValueAt

public Object getValueAt(int row_index,
                         int column_index)
Returns the value of the cell at the specified row and column index


getColumnName

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

isCellEditable

public boolean isCellEditable(int row_index,
                              int column_index)
Indicates if the specified cell is editable.

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona