java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JTable
|
+----OldJTable
public OldJTable()
public int getColumnIndex(Object identifier)
public TableColumn addColumn(Object columnIdentifier,
int width)
public TableColumn addColumn(Object columnIdentifier,
Vector columnData)
public TableColumn addColumn(Object columnIdentifier,
int width,
TableCellRenderer renderer,
TableCellEditor editor)
public TableColumn addColumn(Object columnIdentifier,
int width,
TableCellRenderer renderer,
TableCellEditor editor,
Vector columnData)
public void removeColumn(Object columnIdentifier)
public void addRow(Object rowData[])
public void addRow(Vector rowData)
public void removeRow(int rowIndex)
public void moveRow(int startIndex,
int endIndex,
int toIndex)
public void insertRow(int rowIndex,
Object rowData[])
public void insertRow(int rowIndex,
Vector rowData)
public void setNumRows(int newSize)
public void setDataVector(Vector newData,
Vector columnIds)
public void setDataVector(Object newData[][],
Object columnIds[])
protected void checkDefaultTableModel()
public Object getValueAt(Object columnIdentifier,
int rowIndex)
public boolean isCellEditable(Object columnIdentifier,
int rowIndex)
public void setValueAt(Object aValue,
Object columnIdentifier,
int rowIndex)
public boolean editColumnRow(Object identifier,
int row)
public void moveColumn(Object columnIdentifier,
Object targetColumnIdentifier)
public boolean isColumnSelected(Object identifier)
public TableColumn addColumn(int modelColumn,
int width)
public TableColumn addColumn(int modelColumn)
public TableColumn addColumn(int modelColumn,
int width,
TableCellRenderer renderer,
TableCellEditor editor)
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.
public boolean editColumnRow(int columnIndex,
int rowIndex)
public boolean editColumnRow(int columnIndex,
int rowIndex,
EventObject e)