edu.isi.powerloom.gui.components
Class QueryTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--edu.isi.powerloom.gui.components.PLTableModel
              |
              +--edu.isi.powerloom.gui.components.QueryTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class QueryTableModel
extends PLTableModel

Table model used for displaying query results.

Since:
Thu May 23 12:31:31 2002
Author:
Eric Melz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
QueryTableModel()
           
QueryTableModel(PLQueryResult queryResult)
           
QueryTableModel(PLQueryResult queryResult, java.lang.String[] columnNames)
           
 
Method Summary
 int getColumnCount()
           
 java.lang.String getColumnName(int i)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 int rowToModelIndex(int row)
          Convert row index to model index, i.e., row before the user sorts the results.
 void setQueryResult(PLQueryResult result)
           
 void sortColumn(int columnIndex)
           
 
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
 

Constructor Detail

QueryTableModel

public QueryTableModel()

QueryTableModel

public QueryTableModel(PLQueryResult queryResult)

QueryTableModel

public QueryTableModel(PLQueryResult queryResult,
                       java.lang.String[] columnNames)
Method Detail

sortColumn

public void sortColumn(int columnIndex)

getColumnCount

public int getColumnCount()

getColumnName

public java.lang.String getColumnName(int i)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)

setQueryResult

public void setQueryResult(PLQueryResult result)

rowToModelIndex

public int rowToModelIndex(int row)
Convert row index to model index, i.e., row before the user sorts the results.

Specified by:
rowToModelIndex in class PLTableModel


Copyright © 2002 University of Southern California Information Sciences Institute. All Rights Reserved.