de.upb.swtpra05.group03.companycontrol.plugin.ShuttleInformation
Class RoutingTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byde.upb.swtpra05.group03.companycontrol.plugin.ShuttleInformation.RoutingTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

class RoutingTableModel
extends javax.swing.table.AbstractTableModel

Version:
$Revision: 1.3 $

Field Summary
private  java.lang.String[] columnNames
          the headers of the columns of the table
private  java.lang.Object[][] data
          an array for the data to be filled in the table
private  int rowCount
          counter for the number of rows
private static long serialVersionUID
          Comment for serialVersionUID
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
(package private) RoutingTableModel()
           
 
Method Summary
 void emptyTable()
          empties the whole table
 java.lang.Class getColumnClass(int c)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
          Don't need to implement this method unless your table's editable.
 void setData(java.lang.Object[][] data)
          This method causes the table to get filled with given data and updates the counter for the rows
 void setValueAt(java.lang.Object value, int row, int col)
           
 
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

serialVersionUID

private static final long serialVersionUID
Comment for serialVersionUID

See Also:
Constant Field Values

columnNames

private java.lang.String[] columnNames
the headers of the columns of the table


data

private java.lang.Object[][] data
an array for the data to be filled in the table


rowCount

private int rowCount
counter for the number of rows

Constructor Detail

RoutingTableModel

RoutingTableModel()
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getColumnName

public java.lang.String getColumnName(int col)

getValueAt

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

getColumnClass

public java.lang.Class getColumnClass(int c)

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Don't need to implement this method unless your table's editable.


setData

public void setData(java.lang.Object[][] data)
This method causes the table to get filled with given data and updates the counter for the rows

Parameters:
data - the new data to be filled in the table

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)

emptyTable

public void emptyTable()
empties the whole table