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

Quick Search    Search Deep

Misc
Class SATTableModel  view SATTableModel download SATTableModel.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byMisc.SATTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SATTableModel
extends javax.swing.table.AbstractTableModel


Field Summary
private  java.lang.String[] columnNames
           
private  java.util.Vector packets
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SATTableModel()
          Creates a new instance of PacketTableModel
 
Method Summary
 void addPacket(PacketF.SATDataPacket pkt)
           
private  long calculateTime(int row)
           
 java.lang.Class getColumnClass(int c)
          Returns the Class for all Object instances in the specified column.
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int col)
          Returns the name of the specified column.
 PacketF.SATDataPacket getPacket(int index)
           
 int getRowCount()
          Returns the number of rows in the model.
 long getTimeDataPacket(int index)
           
 java.lang.Object getValueAt(int row, int col)
          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.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

private final java.lang.String[] columnNames

packets

private java.util.Vector packets
Constructor Detail

SATTableModel

public SATTableModel()
Creates a new instance of PacketTableModel

Method Detail

getColumnCount

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


getRowCount

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


getColumnName

public java.lang.String getColumnName(int col)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the name of the specified column. This method generates default names in a sequence (starting with column 0): A, B, C, ..., Z, AA, AB, AC, ..., AZ, BA, BB, BC, and so on. Subclasses may override this method to allow column names to be specified on some other basis.


getValueAt

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


calculateTime

private long calculateTime(int row)

getTimeDataPacket

public long getTimeDataPacket(int index)

getColumnClass

public java.lang.Class getColumnClass(int c)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the Class for all Object instances in the specified column.


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.


addPacket

public void addPacket(PacketF.SATDataPacket pkt)

getPacket

public PacketF.SATDataPacket getPacket(int index)