Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class DefaultListData  view DefaultListData download DefaultListData.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.mitre.cvw.DefaultListData
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

class DefaultListData
extends javax.swing.table.AbstractTableModel


Field Summary
(package private)  java.util.Vector data
           
(package private)  java.lang.String[] headers
           
(package private)  int ncol
           
(package private)  java.lang.String[] tableLine
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DefaultListData(int ncol)
           
 
Method Summary
 void addRow(java.lang.String[] rowdata)
           
 void clear()
           
 void dataUpdated()
           
 int getColumnCount()
          Returns the number of columns in the model.
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.Object getValueAt(int row, int column)
          Returns the value (Object) at a particular cell in the table.
 boolean isCellEditable(int row, int col)
          Returns true if the specified cell is editable, and false if it is not.
 void removeRow(int pos)
           
 void setRow(java.lang.String[] rowdata, int row)
           
 void setValueAt(java.lang.Object value, int row, int col)
          Sets the value of the given cell.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ncol

int ncol

data

java.util.Vector data

tableLine

java.lang.String[] tableLine

headers

java.lang.String[] headers
Constructor Detail

DefaultListData

public DefaultListData(int ncol)
Method Detail

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Description copied from class: javax.swing.table.AbstractTableModel
Returns true if the specified cell is editable, and false if it is not. This implementation returns false for all arguments, subclasses should override the method if necessary.


setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Description copied from class: javax.swing.table.AbstractTableModel
Sets the value of the given cell. This implementation ignores all arguments and does nothing, subclasses should override the method if necessary.


getRowCount

public int getRowCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of rows in the model.


getColumnCount

public int getColumnCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of columns in the model.


getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Description copied from interface: javax.swing.table.TableModel
Returns the value (Object) at a particular cell in the table.


setRow

public void setRow(java.lang.String[] rowdata,
                   int row)

addRow

public void addRow(java.lang.String[] rowdata)

removeRow

public void removeRow(int pos)

dataUpdated

public void dataUpdated()

clear

public void clear()