Class OldJTable

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JTable
                                   |
                                   +----OldJTable

public class OldJTable
extends JTable
The OldJTable is an unsupported class containing some methods that were deleted from the JTable between releases 0.6 and 0.7


Constructor Index

 o OldJTable()

Method Index

 o addColumn(int)
 o addColumn(int, int)
 o addColumn(int, int, TableCellRenderer, TableCellEditor)
Creates a new column with modelColumn, width, renderer, and editor and adds it to the end of the JTable's array of columns.
 o addColumn(Object, int)
 o addColumn(Object, int, TableCellRenderer, TableCellEditor)
 o addColumn(Object, int, TableCellRenderer, TableCellEditor, Vector)
 o addColumn(Object, Vector)
 o addRow(Object[])
 o addRow(Vector)
 o checkDefaultTableModel()
 o editColumnRow(int, int)
 o editColumnRow(int, int, EventObject)
 o editColumnRow(Object, int)
 o getColumnIndex(Object)
 o getValueAt(Object, int)
 o insertRow(int, Object[])
 o insertRow(int, Vector)
 o isCellEditable(Object, int)
 o isColumnSelected(Object)
 o moveColumn(Object, Object)
 o moveRow(int, int, int)
 o removeColumn(Object)
 o removeRow(int)
 o setDataVector(Object[][], Object[])
 o setDataVector(Vector, Vector)
 o setNumRows(int)
 o setValueAt(Object, Object, int)

Constructors

 o OldJTable
 public OldJTable()

Methods

 o getColumnIndex
 public int getColumnIndex(Object identifier)
 o addColumn
 public TableColumn addColumn(Object columnIdentifier,
                              int width)
 o addColumn
 public TableColumn addColumn(Object columnIdentifier,
                              Vector columnData)
 o addColumn
 public TableColumn addColumn(Object columnIdentifier,
                              int width,
                              TableCellRenderer renderer,
                              TableCellEditor editor)
 o addColumn
 public TableColumn addColumn(Object columnIdentifier,
                              int width,
                              TableCellRenderer renderer,
                              TableCellEditor editor,
                              Vector columnData)
 o removeColumn
 public void removeColumn(Object columnIdentifier)
 o addRow
 public void addRow(Object rowData[])
 o addRow
 public void addRow(Vector rowData)
 o removeRow
 public void removeRow(int rowIndex)
 o moveRow
 public void moveRow(int startIndex,
                     int endIndex,
                     int toIndex)
 o insertRow
 public void insertRow(int rowIndex,
                       Object rowData[])
 o insertRow
 public void insertRow(int rowIndex,
                       Vector rowData)
 o setNumRows
 public void setNumRows(int newSize)
 o setDataVector
 public void setDataVector(Vector newData,
                           Vector columnIds)
 o setDataVector
 public void setDataVector(Object newData[][],
                           Object columnIds[])
 o checkDefaultTableModel
 protected void checkDefaultTableModel()
 o getValueAt
 public Object getValueAt(Object columnIdentifier,
                          int rowIndex)
 o isCellEditable
 public boolean isCellEditable(Object columnIdentifier,
                               int rowIndex)
 o setValueAt
 public void setValueAt(Object aValue,
                        Object columnIdentifier,
                        int rowIndex)
 o editColumnRow
 public boolean editColumnRow(Object identifier,
                              int row)
 o moveColumn
 public void moveColumn(Object columnIdentifier,
                        Object targetColumnIdentifier)
 o isColumnSelected
 public boolean isColumnSelected(Object identifier)
 o addColumn
 public TableColumn addColumn(int modelColumn,
                              int width)
 o addColumn
 public TableColumn addColumn(int modelColumn)
 o addColumn
 public TableColumn addColumn(int modelColumn,
                              int width,
                              TableCellRenderer renderer,
                              TableCellEditor editor)
Creates a new column with modelColumn, width, renderer, and editor and adds it to the end of the JTable's array of columns. This method also retrieves the name of the column using the model's getColumnName(modelColumn) method, and sets the both the header value and the identifier for this TableColumn accordingly.

The modelColumn is the index of the column in the model which will supply the data for this column in the table. This, like the columnIdentifier in previous releases, does not change as the columns are moved in the view.

For the rest of the JTable API, and all of its associated classes, columns are referred to in the co-ordinate system of the view, the index of the column in the model is kept inside the TableColumn and is used only to retrieve the information from the appropraite column in the model.

Parameters:
modelColumn - The index of the column in the model
width - The new column's width. Or -1 to use the default width
renderer - The renderer used with the new column. Or null to use the default renderer.
editor - The editor used with the new column. Or null to use the default editor.
 o editColumnRow
 public boolean editColumnRow(int columnIndex,
                              int rowIndex)
 o editColumnRow
 public boolean editColumnRow(int columnIndex,
                              int rowIndex,
                              EventObject e)