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

Quick Search    Search Deep

net.jxta.ext.config.ui
Class TransportTableModel  view TransportTableModel download TransportTableModel.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byjavax.swing.table.DefaultTableModel
          extended bynet.jxta.ext.config.ui.TransportTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
HttpTransportTableModel, TcpTransportTableModel

abstract class TransportTableModel
extends javax.swing.table.DefaultTableModel

Abstract base class for JXTA transport tables in ext:config:ui

Version:

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
(package private) TransportTableModel()
           
 
Method Summary
 void addRow(java.lang.Object[] obj)
          Adds a new row containing the specified data to the table and sends a TableModelEvent to all registered listeners.
 void deleteRow(int row)
           
 java.lang.Class getColumnClass(int col)
          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)
          Get the name of the column.
(package private) abstract  java.lang.String[] getColumns()
           
 int getRowCount()
          Returns the number of rows in the model.
(package private) abstract  java.util.Vector getRows()
           
 java.lang.Object getValueAt(int row, int col)
          Returns the value at the specified cell in the table.
 boolean isCellEditable(int row, int col)
          Returns true if the specified cell can be modified, and false otherwise.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
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
 

Constructor Detail

TransportTableModel

TransportTableModel()
Method Detail

getColumns

abstract java.lang.String[] getColumns()

getRows

abstract java.util.Vector getRows()

getColumnName

public java.lang.String getColumnName(int col)
Description copied from class: javax.swing.table.DefaultTableModel
Get the name of the column. If the column has the column identifier set, the return value is the result of the .toString() method call on that identifier. If the identifier is not explicitly set, the returned value is calculated by AbstractTableModel.getColumnName(int)>AbstractTableModel.getColumnName(int) 55 .


getColumnCount

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


getRowCount

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


getColumnClass

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


getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Description copied from class: javax.swing.table.DefaultTableModel
Returns the value at the specified cell in the table.


isCellEditable

public boolean isCellEditable(int row,
                              int col)
Description copied from class: javax.swing.table.DefaultTableModel
Returns true if the specified cell can be modified, and false otherwise. For this implementation, the method always returns true.


addRow

public void addRow(java.lang.Object[] obj)
Description copied from class: javax.swing.table.DefaultTableModel
Adds a new row containing the specified data to the table and sends a javax.swing.event.TableModelEvent to all registered listeners.


deleteRow

public void deleteRow(int row)