com.lowagie.rups.view.models

Interface JTableAutoModelInterface

public interface JTableAutoModelInterface

Tables that contain the information necessary for creating their model should implement this interface, so that they can use the JTableAutoModel class as TableModel.
Method Summary
intgetColumnCount()
StringgetColumnName(int columnIndex)
intgetRowCount()
ObjectgetValueAt(int rowIndex, int columnIndex)

Method Detail

getColumnCount

public int getColumnCount()

Returns: int the number of columns

See Also: javax.swing.table.TableModel#getColumnCount()

getColumnName

public String getColumnName(int columnIndex)

Parameters: columnIndex a column number.

Returns: the name of the column

See Also: javax.swing.table.AbstractTableModel#getColumnName(int)

getRowCount

public int getRowCount()

Returns: int the number of rows

See Also: javax.swing.table.TableModel#getRowCount()

getValueAt

public Object getValueAt(int rowIndex, int columnIndex)

Parameters: rowIndex int a row number columnIndex int a column number

Returns: Object an object corresponding with a cell in the table

See Also: javax.swing.table.TableModel#getValueAt(int, int)