dist1.acb.ACBpoint
Class SearchResultTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bydist1.acb.ACBpoint.SearchResultTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SearchResultTableModel
extends javax.swing.table.AbstractTableModel

Purpose: It is used for displaying the search result

Author:
Lazar Adzigogov
See Also:
Serialized Form

Field Summary
static java.lang.String[] colNames
           
static java.lang.Class[] colTypes
           
static int DESCRIPTION_COL
           
static int FILE_NAME_COL
           
static int OWNER_COL
           
static int PRICE_COL
           
static int TOPIC_COL
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SearchResultTableModel()
           
SearchResultTableModel(java.util.LinkedList mData)
          Creates a new instance of PublishingTable
 
Method Summary
 void addElement(ResponseSearch.SearchInfo Data)
           
 java.lang.Class getColumnClass(int col)
           
 int getColumnCount()
          getColumnCount Number columns same as the column array length
 java.lang.String getColumnName(int col)
           
 java.util.LinkedList getData()
           
 int getRowCount()
          getRowCount Row count same as the size of data vector
 java.lang.Object getValueAt(int row, int col)
          getValueAt This function updates the JTable depending upon the data in the TableModel
 boolean isCellEditable(int row, int column)
           
 void removeElement(int index)
           
 void setValueAt(java.lang.Object value, int row, int col)
          setValueAt This function updates the data in the TableModel depending upon the change in the JTable
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OWNER_COL

public static final int OWNER_COL
See Also:
Constant Field Values

FILE_NAME_COL

public static final int FILE_NAME_COL
See Also:
Constant Field Values

PRICE_COL

public static final int PRICE_COL
See Also:
Constant Field Values

DESCRIPTION_COL

public static final int DESCRIPTION_COL
See Also:
Constant Field Values

TOPIC_COL

public static final int TOPIC_COL
See Also:
Constant Field Values

colNames

public static final java.lang.String[] colNames

colTypes

public static final java.lang.Class[] colTypes
Constructor Detail

SearchResultTableModel

public SearchResultTableModel(java.util.LinkedList mData)
Creates a new instance of PublishingTable


SearchResultTableModel

public SearchResultTableModel()
Method Detail

getColumnCount

public int getColumnCount()
getColumnCount Number columns same as the column array length


getRowCount

public int getRowCount()
getRowCount Row count same as the size of data vector


setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
setValueAt This function updates the data in the TableModel depending upon the change in the JTable


getColumnName

public java.lang.String getColumnName(int col)

getColumnClass

public java.lang.Class getColumnClass(int col)

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
getValueAt This function updates the JTable depending upon the data in the TableModel


addElement

public void addElement(ResponseSearch.SearchInfo Data)

removeElement

public void removeElement(int index)

getData

public java.util.LinkedList getData()

isCellEditable

public boolean isCellEditable(int row,
                              int column)


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.